diff --git a/eng/packages/http-client-csharp-mgmt/emitter/src/resource-detection.ts b/eng/packages/http-client-csharp-mgmt/emitter/src/resource-detection.ts index ee4144433b37..e059cd665ecc 100644 --- a/eng/packages/http-client-csharp-mgmt/emitter/src/resource-detection.ts +++ b/eng/packages/http-client-csharp-mgmt/emitter/src/resource-detection.ts @@ -69,23 +69,16 @@ export async function updateClients( resourceModels.map((m) => [m.crossLanguageDefinitionId, m]) ); - const resourceModelToMetadataMap = new Map( - resourceModels.map((m) => [ - m.crossLanguageDefinitionId, - { - resourceIdPattern: "", // this will be populated later - resourceType: "", // this will be populated later - singletonResourceName: getSingletonResource( - m.decorators?.find((d) => d.name == singleton) - ), - resourceScope: ResourceScope.Tenant, // temporary default to Tenant, will be properly set later after methods are populated - methods: [], - parentResourceId: undefined, // this will be populated later - parentResourceModelId: undefined, - resourceName: m.name - } as ResourceMetadata - ]) - ); + // Map to track resource metadata by unique key (modelId + resourcePath) + // This allows multiple resources to share the same model but have different paths + const resourcePathToMetadataMap = new Map(); + + // Map to track which resource models are used (for backward compatibility) + const resourceModelIds = new Set(resourceModels.map(m => m.crossLanguageDefinitionId)); + + // Track client names associated with each resource path for name derivation + const resourcePathToClientName = new Map(); + const nonResourceMethods: Map = new Map(); // first we flatten all possible clients in the code model @@ -102,31 +95,97 @@ export async function updateClients( const [kind, modelId] = parseResourceOperation(serviceMethod, sdkContext) ?? []; - if (modelId && kind) { - const entry = resourceModelToMetadataMap.get(modelId); - if (entry) { - entry.methods.push({ - methodId: method.crossLanguageDefinitionId, - kind, - operationPath: method.operation.path, - operationScope: getOperationScope(method.operation.path) - }); - if (!entry.resourceType) { - entry.resourceType = calculateResourceTypeFromPath( - method.operation.path - ); + if (modelId && kind && resourceModelIds.has(modelId)) { + // Determine the resource path from the CRUD operation + let resourcePath = ""; + if (isCRUDKind(kind)) { + resourcePath = method.operation.path; + } else { + // For non-CRUD operations like List, try to match with existing resource paths for the same model + const operationPath = method.operation.path; + for (const [existingKey] of resourcePathToMetadataMap) { + const [existingModelId, existingPath] = existingKey.split('|'); + // Check if this is for the same model + if (existingModelId === modelId && existingPath) { + // Try to match based on resource type segments + // Extract the resource type part (after "/providers/") + const existingResourceType = calculateResourceTypeFromPath(existingPath); + let operationResourceType = ""; + try { + operationResourceType = calculateResourceTypeFromPath(operationPath); + } catch { + // If we can't calculate resource type, try string matching + } + + // If resource types match, this list operation belongs to this resource + if (existingResourceType && operationResourceType === existingResourceType) { + resourcePath = existingPath; + break; + } + + // Fallback: check if the operation path ends with a segment that matches the existing path + const existingParentPath = existingPath.substring(0, existingPath.lastIndexOf('/')); + if (operationPath.startsWith(existingParentPath)) { + resourcePath = existingPath; + break; + } + } } - if (!entry.resourceIdPattern && isCRUDKind(kind)) { - entry.resourceIdPattern = method.operation.path; + // If no match found, use the operation path + if (!resourcePath) { + resourcePath = operationPath; } - } else { - // no resource model found for this modelId, treat as non-resource method - nonResourceMethods.set(method.crossLanguageDefinitionId, { - methodId: method.crossLanguageDefinitionId, - operationPath: method.operation.path, - operationScope: getOperationScope(method.operation.path) - }); } + + // Create a unique key combining model ID and resource path + const metadataKey = `${modelId}|${resourcePath}`; + + // Get or create metadata entry for this resource path + let entry = resourcePathToMetadataMap.get(metadataKey); + if (!entry) { + const model = resourceModelMap.get(modelId); + // Store the client name for this resource path for later use + if (!resourcePathToClientName.has(metadataKey)) { + resourcePathToClientName.set(metadataKey, client.name); + } + + entry = { + resourceIdPattern: "", // this will be populated later + resourceType: "", // this will be populated later + singletonResourceName: getSingletonResource( + model?.decorators?.find((d) => d.name == singleton) + ), + resourceScope: ResourceScope.Tenant, // temporary default to Tenant, will be properly set later after methods are populated + methods: [], + parentResourceId: undefined, // this will be populated later + parentResourceModelId: undefined, + // Use model name as default; will be updated later if multiple paths exist + resourceName: model?.name ?? "Unknown" + } as ResourceMetadata; + resourcePathToMetadataMap.set(metadataKey, entry); + } + + entry.methods.push({ + methodId: method.crossLanguageDefinitionId, + kind, + operationPath: method.operation.path, + operationScope: getOperationScope(method.operation.path) + }); + if (!entry.resourceType) { + entry.resourceType = calculateResourceTypeFromPath( + method.operation.path + ); + } + if (!entry.resourceIdPattern && isCRUDKind(kind)) { + entry.resourceIdPattern = method.operation.path; + } + } else if (modelId && kind) { + // no resource model found for this modelId, treat as non-resource method + nonResourceMethods.set(method.crossLanguageDefinitionId, { + methodId: method.crossLanguageDefinitionId, + operationPath: method.operation.path, + operationScope: getOperationScope(method.operation.path) + }); } else { // we add a methodMetadata decorator to this method nonResourceMethods.set(method.crossLanguageDefinitionId, { @@ -139,24 +198,32 @@ export async function updateClients( } // after the resourceIdPattern has been populated, we can set the parentResourceId and the resource scope of each resource method - for (const [modelId, metadata] of resourceModelToMetadataMap) { + for (const [metadataKey, metadata] of resourcePathToMetadataMap) { + // Extract model ID from the key (format: "modelId|resourcePath") + const modelId = metadataKey.split('|')[0]; + // get parent resource model id const parentResourceModelId = getParentResourceModelId( sdkContext, models.get(modelId) ); if (parentResourceModelId) { - metadata.parentResourceId = resourceModelToMetadataMap.get( - parentResourceModelId - )?.resourceIdPattern; - metadata.parentResourceModelId = parentResourceModelId; + // Find parent metadata entry - there might be multiple, so we need to find the right one + for (const [parentKey, parentMetadata] of resourcePathToMetadataMap) { + const parentModelId = parentKey.split('|')[0]; + if (parentModelId === parentResourceModelId && parentMetadata.resourceIdPattern) { + metadata.parentResourceId = parentMetadata.resourceIdPattern; + metadata.parentResourceModelId = parentResourceModelId; + break; + } + } } // figure out the resourceScope of all resource methods for (const method of metadata.methods) { method.resourceScope = getResourceScopeOfMethod( method.operationPath, - resourceModelToMetadataMap.values() + resourcePathToMetadataMap.values() ); } @@ -168,23 +235,78 @@ export async function updateClients( } // after the parentResourceId and resource scopes are populated, we can reorganize the metadata that is missing resourceIdPattern - for (const [modelId, metadata] of resourceModelToMetadataMap) { - // TODO: handle the case where there is no parentResourceId but resourceIdPattern is missing - if (metadata.resourceIdPattern === "" && metadata.parentResourceModelId) { - resourceModelToMetadataMap - .get(metadata.parentResourceModelId) - ?.methods.push(...metadata.methods); - resourceModelToMetadataMap.delete(modelId); + const metadataKeysToDelete: string[] = []; + for (const [metadataKey, metadata] of resourcePathToMetadataMap) { + const modelId = metadataKey.split('|')[0]; + + // If this entry has no resourceIdPattern, try to merge it with another entry for the same model that does + if (metadata.resourceIdPattern === "") { + // First try to merge with parent if it exists + if (metadata.parentResourceModelId) { + for (const [parentKey, parentMetadata] of resourcePathToMetadataMap) { + const parentModelId = parentKey.split('|')[0]; + if (parentModelId === metadata.parentResourceModelId && parentMetadata.resourceIdPattern) { + parentMetadata.methods.push(...metadata.methods); + metadataKeysToDelete.push(metadataKey); + break; + } + } + } else { + // No parent - try to find another entry for the same model with a resourceIdPattern + for (const [otherKey, otherMetadata] of resourcePathToMetadataMap) { + const otherModelId = otherKey.split('|')[0]; + if (otherKey !== metadataKey && otherModelId === modelId && otherMetadata.resourceIdPattern) { + // Merge this metadata into the other one + otherMetadata.methods.push(...metadata.methods); + metadataKeysToDelete.push(metadataKey); + break; + } + } + } } } + + // Remove entries that were merged + for (const key of metadataKeysToDelete) { + resourcePathToMetadataMap.delete(key); + } // the last step, add the decorator to the resource model + // Group metadata by model ID to add all metadata entries to their respective models + const modelIdToMetadataList = new Map(); + for (const [metadataKey, metadata] of resourcePathToMetadataMap) { + const modelId = metadataKey.split('|')[0]; + if (!modelIdToMetadataList.has(modelId)) { + modelIdToMetadataList.set(modelId, []); + } + modelIdToMetadataList.get(modelId)!.push(metadata); + } + + // Update resource names: if a model has multiple different resource paths, derive names from client names + // This handles the scenario where the same model is used by multiple resource interfaces with different paths + for (const [modelId, metadataList] of modelIdToMetadataList) { + if (metadataList.length > 1) { + // Multiple resource paths for the same model - derive names from client names + for (const [metadataKey, metadata] of resourcePathToMetadataMap) { + const keyModelId = metadataKey.split('|')[0]; + if (keyModelId === modelId) { + const clientName = resourcePathToClientName.get(metadataKey); + if (clientName) { + metadata.resourceName = deriveResourceNameFromClient(clientName); + } + } + } + } + // If there's only one metadata entry for this model, keep using the model name (already set) + } + + // Add decorators to models for (const model of resourceModels) { - const metadata = resourceModelToMetadataMap.get( - model.crossLanguageDefinitionId - ); - if (metadata) { - addResourceMetadata(sdkContext, model, metadata); + const metadataList = modelIdToMetadataList.get(model.crossLanguageDefinitionId); + if (metadataList) { + for (const metadata of metadataList) { + addResourceMetadata(sdkContext, model, metadata); + } } } // and add the methodMetadata decorator to the non-resource methods @@ -561,6 +683,28 @@ function getResourceScopeOfMethod( return undefined; } +function deriveResourceNameFromClient(clientName: string): string { + // Derive resource name from client/interface name by removing pluralization + // For example: "Practices" -> "Practice", "PracticeVersions" -> "PracticeVersion" + // "Employees" -> "Employee" + + // Handle common plural endings + if (clientName.endsWith("ies") && clientName.length > 3) { + // "Practices" -> "Practice", "Companies" -> "Company" + return clientName.substring(0, clientName.length - 3) + "y"; + } else if (clientName.endsWith("sses") || clientName.endsWith("xes") || clientName.endsWith("ches") || clientName.endsWith("shes")) { + // "Boxes" -> "Box", "Classes" -> "Class", "Watches" -> "Watch", "Bushes" -> "Bush" + return clientName.substring(0, clientName.length - 2); + } else if (clientName.endsWith("s") && clientName.length > 1 && !clientName.endsWith("ss")) { + // "Employees" -> "Employee", "Dogs" -> "Dog" + // But not "Class" -> "Clas" + return clientName.substring(0, clientName.length - 1); + } + + // If no plural pattern matches, return the name as-is + return clientName; +} + function getOperationScope(path: string): ResourceScope { if (path.startsWith("/{resourceUri}") || path.startsWith("/{scope}")) { return ResourceScope.Extension; diff --git a/eng/packages/http-client-csharp-mgmt/emitter/test/resource-detection.test.ts b/eng/packages/http-client-csharp-mgmt/emitter/test/resource-detection.test.ts index 9327bd17598a..7c6a744a6dae 100644 --- a/eng/packages/http-client-csharp-mgmt/emitter/test/resource-detection.test.ts +++ b/eng/packages/http-client-csharp-mgmt/emitter/test/resource-detection.test.ts @@ -1220,4 +1220,141 @@ interface Employees { "ManagementGroup" ); }); + + it("multiple resources sharing same model", async () => { + // This test validates the scenario where the SAME model is used by two different + // resource interfaces operating at different paths using LegacyOperations (similar to the legacy-operations example) + const program = await typeSpecCompile( + ` +/** A best practice resource - used by both interfaces */ +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For sample purpose" +@tenantResource +model BestPractice is ProxyResource { + ...ResourceNameParameter< + Resource = BestPractice, + KeyName = "bestPracticeName", + SegmentName = "bestPractices", + NamePattern = "" + >; + ...Azure.ResourceManager.Legacy.ExtendedLocationOptionalProperty; +} + +/** Best practice properties */ +model BestPracticeProperties { + ...DefaultProvisioningStateProperty; + description?: string; +} + +// Define operation aliases with different path patterns using LegacyOperations +alias BestPracticeOps = Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter; + ...Azure.ResourceManager.Legacy.Provider; + }, + { + @segment("bestPractices") + @key + @TypeSpec.Http.path + bestPracticeName: string; + } +>; + +alias BestPracticesVersionOps = Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter; + ...Azure.ResourceManager.Legacy.Provider; + @segment("bestPractices") + @key + @TypeSpec.Http.path + bestPracticeName: string; + }, + { + @segment("versions") + @key + @TypeSpec.Http.path + versionName: string; + } +>; + +/** Best practice operations */ +@armResourceOperations +interface BestPractices { + get is BestPracticeOps.Read; + createOrUpdate is BestPracticeOps.CreateOrUpdateSync; + delete is BestPracticeOps.DeleteSync; +} + +/** Best practice version operations - uses the SAME BestPractice model */ +@armResourceOperations +interface BestPracticeVersions { + get is BestPracticesVersionOps.Read; + createOrUpdate is BestPracticesVersionOps.CreateOrUpdateSync; + delete is BestPracticesVersionOps.DeleteSync; +} +`, + runner + ); + const context = createEmitterContext(program); + const sdkContext = await createCSharpSdkContext(context); + const root = createModel(sdkContext); + updateClients(root, sdkContext); + + // Verify BestPractice model exists + const bestPracticeModel = root.models.find((m) => m.name === "BestPractice"); + ok(bestPracticeModel, "BestPractice model should exist"); + + // Verify BestPractice model has TWO metadata decorators (one for each interface) + const resourceMetadataDecorators = bestPracticeModel.decorators?.filter( + (d) => d.name === resourceMetadata + ); + ok(resourceMetadataDecorators, "Should have resource metadata decorators"); + strictEqual( + resourceMetadataDecorators.length, + 2, + "Should have TWO resource metadata decorators for the same model" + ); + + // Find metadata for BestPractices resource (parent-level) + const bestPracticesMetadata = resourceMetadataDecorators.find((d) => + d.arguments?.resourceIdPattern?.includes("/bestPractices/{bestPracticeName}") && + !d.arguments?.resourceIdPattern?.includes("/versions") + ); + ok(bestPracticesMetadata, "Should have metadata for parent-level resource"); + strictEqual( + bestPracticesMetadata.arguments.resourceName, + "BestPractice", + "Parent resource should be named BestPractice" + ); + strictEqual( + bestPracticesMetadata.arguments.resourceIdPattern, + "/providers/Microsoft.ContosoProviderHub/bestPractices/{bestPracticeName}" + ); + strictEqual( + bestPracticesMetadata.arguments.resourceType, + "Microsoft.ContosoProviderHub/bestPractices" + ); + strictEqual(bestPracticesMetadata.arguments.methods.length, 3, "Should have 3 methods"); + + // Find metadata for BestPracticeVersions resource (child-level) + const bestPracticeVersionsMetadata = resourceMetadataDecorators.find((d) => + d.arguments?.resourceIdPattern?.includes("/versions/{versionName}") + ); + ok(bestPracticeVersionsMetadata, "Should have metadata for child-level resource"); + strictEqual( + bestPracticeVersionsMetadata.arguments.resourceName, + "BestPracticeVersion", + "Child resource should be named BestPracticeVersion" + ); + strictEqual( + bestPracticeVersionsMetadata.arguments.resourceIdPattern, + "/providers/Microsoft.ContosoProviderHub/bestPractices/{bestPracticeName}/versions/{versionName}" + ); + strictEqual( + bestPracticeVersionsMetadata.arguments.resourceType, + "Microsoft.ContosoProviderHub/bestPractices/versions" + ); + strictEqual(bestPracticeVersionsMetadata.arguments.methods.length, 3, "Should have 3 methods"); + // Note: parentResourceId is not set for legacy operations as there's no explicit @parentResource decorator + // The parent-child relationship is inferred from the path structure in the generator + }); }); diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/main.tsp b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/main.tsp index 7eb7b743a88f..e1cd26a4464c 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/main.tsp +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/main.tsp @@ -15,6 +15,7 @@ import "./quota.tsp"; import "./networkaction.tsp"; import "./joo.tsp"; import "./workload.tsp"; +import "./multiplepaths.tsp"; using TypeSpec.Versioning; using Azure.ClientGenerator.Core; using Azure.ResourceManager; diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/multiplepaths.tsp b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/multiplepaths.tsp new file mode 100644 index 000000000000..21b63329447f --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/multiplepaths.tsp @@ -0,0 +1,95 @@ +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/rest"; +import "@typespec/http"; +using Azure.ResourceManager; +using Azure.ResourceManager.Legacy; +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace MgmtTypeSpec; + +// This file demonstrates the scenario where the SAME model is used by two different +// resource interfaces operating at different paths, matching the legacy-operations pattern. +// This uses Azure.ResourceManager.Legacy.LegacyOperations to define different path patterns +// for the same resource model. + +/** A best practice resource - used by both parent and child operations */ +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For sample purpose" +@tenantResource +model BestPractice is ProxyResource { + ...ResourceNameParameter< + Resource = BestPractice, + KeyName = "bestPracticeName", + SegmentName = "bestPractices", + NamePattern = "" + >; + ...Legacy.ExtendedLocationOptionalProperty; +} + +/** Best practice properties */ +model BestPracticeProperties { + ...DefaultProvisioningStateProperty; + + /** The description of the best practice */ + description?: string; +} + +// Define operation aliases with different path patterns using LegacyOperations +alias BestPracticeOps = Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter; + ...Azure.ResourceManager.Legacy.Provider; + }, + { + /** The name of the best practice */ + @segment("bestPractices") + @key + @path + bestPracticeName: string; + } +>; + +alias BestPracticesVersionOps = Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter; + ...Azure.ResourceManager.Legacy.Provider; + + /** The name of the best practice */ + @segment("bestPractices") + @key + @path + bestPracticeName: string; + }, + { + /** The name of the version */ + @segment("versions") + @key + @path + versionName: string; + } +>; + +/** Best practice operations on /bestPractices/{bestPracticeName} */ +@armResourceOperations +interface BestPractices { + get is BestPracticeOps.Read; + createOrUpdate is BestPracticeOps.CreateOrUpdateSync; + update is BestPracticeOps.CustomPatchSync< + BestPractice, + Azure.ResourceManager.Foundations.ResourceUpdateModel + >; + delete is BestPracticeOps.DeleteSync; +} + +/** Best practice version operations on /bestPractices/{bestPracticeName}/versions/{versionName} */ +/** NOTE: This interface uses the SAME BestPractice model but at a different path */ +@armResourceOperations +interface BestPracticeVersions { + get is BestPracticesVersionOps.Read; + createOrUpdate is BestPracticesVersionOps.CreateOrUpdateSync; + update is BestPracticesVersionOps.CustomPatchSync< + BestPractice, + Azure.ResourceManager.Foundations.ResourceUpdateModel + >; + delete is BestPracticesVersionOps.DeleteSync; +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeCollection.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeCollection.cs new file mode 100644 index 000000000000..22e1ae161cf5 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeCollection.cs @@ -0,0 +1,500 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; + +namespace Azure.Generator.MgmtTypeSpec.Tests +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetBestPractices method from an instance of . + /// + public partial class BestPracticeCollection : ArmCollection + { + private readonly ClientDiagnostics _bestPracticesClientDiagnostics; + private readonly BestPractices _bestPracticesRestClient; + + /// Initializes a new instance of BestPracticeCollection for mocking. + protected BestPracticeCollection() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal BestPracticeCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(BestPracticeResource.ResourceType, out string bestPracticeApiVersion); + _bestPracticesClientDiagnostics = new ClientDiagnostics("Azure.Generator.MgmtTypeSpec.Tests", BestPracticeResource.ResourceType.Namespace, Diagnostics); + _bestPracticesRestClient = new BestPractices(_bestPracticesClientDiagnostics, Pipeline, Endpoint, bestPracticeApiVersion ?? "2024-05-01"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != TenantResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, TenantResource.ResourceType), id); + } + } + + /// + /// Create a BestPractice + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_CreateOrUpdate. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the best practice. + /// Resource create parameters. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string bestPracticeName, BestPracticeData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateCreateOrUpdateRequest(bestPracticeName, BestPracticeData.ToRequestContent(data), context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(BestPracticeData.FromResponse(result), result); + RequestUriBuilder uri = message.Request.Uri; + RehydrationToken rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + TestsArmOperation operation = new TestsArmOperation(Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + { + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create a BestPractice + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_CreateOrUpdate. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the best practice. + /// Resource create parameters. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string bestPracticeName, BestPracticeData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateCreateOrUpdateRequest(bestPracticeName, BestPracticeData.ToRequestContent(data), context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(BestPracticeData.FromResponse(result), result); + RequestUriBuilder uri = message.Request.Uri; + RehydrationToken rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + TestsArmOperation operation = new TestsArmOperation(Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + { + operation.WaitForCompletion(cancellationToken); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a BestPractice + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the best practice. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetAsync(string bestPracticeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); + + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateGetRequest(bestPracticeName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(BestPracticeData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a BestPractice + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the best practice. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Get(string bestPracticeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); + + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateGetRequest(bestPracticeName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(BestPracticeData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the best practice. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> ExistsAsync(string bestPracticeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); + + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateGetRequest(bestPracticeName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(BestPracticeData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((BestPracticeData)null, result); + break; + default: + throw new RequestFailedException(result); + } + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the best practice. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Exists(string bestPracticeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); + + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateGetRequest(bestPracticeName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(BestPracticeData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((BestPracticeData)null, result); + break; + default: + throw new RequestFailedException(result); + } + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the best practice. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetIfExistsAsync(string bestPracticeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); + + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateGetRequest(bestPracticeName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(BestPracticeData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((BestPracticeData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the best practice. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual NullableResponse GetIfExists(string bestPracticeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); + + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateGetRequest(bestPracticeName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(BestPracticeData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((BestPracticeData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeData.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeData.Serialization.cs new file mode 100644 index 000000000000..fd3ae9149a4a --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeData.Serialization.cs @@ -0,0 +1,212 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text; +using System.Text.Json; +using Azure; +using Azure.Core; +using Azure.Generator.MgmtTypeSpec.Tests.Models; +using Azure.ResourceManager.Models; + +namespace Azure.Generator.MgmtTypeSpec.Tests +{ + /// A best practice resource - used by both parent and child operations. + public partial class BestPracticeData : ResourceData, IJsonModel + { + /// The JSON writer. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(BestPracticeData)} does not support writing '{format}' format."); + } + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (Optional.IsDefined(ExtendedLocation)) + { + writer.WritePropertyName("extendedLocation"u8); + writer.WriteObjectValue(ExtendedLocation, options); + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + BestPracticeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (BestPracticeData)JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual ResourceData JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(BestPracticeData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeBestPracticeData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static BestPracticeData DeserializeBestPracticeData(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier id = default; + string name = default; + ResourceType resourceType = default; + SystemData systemData = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + BestPracticeProperties properties = default; + ExtendedLocation1 extendedLocation = default; + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("id"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = new ResourceIdentifier(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("name"u8)) + { + name = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("type"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceType = new ResourceType(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("systemData"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(prop.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureGeneratorMgmtTypeSpecTestsContext.Default); + continue; + } + if (prop.NameEquals("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = BestPracticeProperties.DeserializeBestPracticeProperties(prop.Value, options); + continue; + } + if (prop.NameEquals("extendedLocation"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + extendedLocation = ExtendedLocation1.DeserializeExtendedLocation1(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new BestPracticeData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties, + extendedLocation); + } + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureGeneratorMgmtTypeSpecTestsContext.Default); + default: + throw new FormatException($"The model {nameof(BestPracticeData)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + BestPracticeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (BestPracticeData)PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual ResourceData PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) + { + return DeserializeBestPracticeData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(BestPracticeData)} does not support reading '{options.Format}' format."); + } + } + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to serialize into . + internal static RequestContent ToRequestContent(BestPracticeData bestPracticeData) + { + if (bestPracticeData == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(bestPracticeData, ModelSerializationExtensions.WireOptions); + return content; + } + + /// The to deserialize the from. + internal static BestPracticeData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeBestPracticeData(document.RootElement, ModelSerializationExtensions.WireOptions); + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeData.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeData.cs new file mode 100644 index 000000000000..71a6cb091d59 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeData.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.Generator.MgmtTypeSpec.Tests.Models; +using Azure.ResourceManager.Models; + +namespace Azure.Generator.MgmtTypeSpec.Tests +{ + /// A best practice resource - used by both parent and child operations. + public partial class BestPracticeData : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public BestPracticeData() + { + } + + /// Initializes a new instance of . + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /// The name of the resource. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// Keeps track of any properties unknown to the library. + /// The resource-specific properties for this resource. + /// + internal BestPracticeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, BestPracticeProperties properties, ExtendedLocation1 extendedLocation) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + ExtendedLocation = extendedLocation; + } + + /// The resource-specific properties for this resource. + [WirePath("properties")] + public BestPracticeProperties Properties { get; set; } + + /// Gets or sets the ExtendedLocation. + [WirePath("extendedLocation")] + public ExtendedLocation1 ExtendedLocation { get; set; } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeResource.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeResource.Serialization.cs new file mode 100644 index 000000000000..e9ad4da4b358 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeResource.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.Generator.MgmtTypeSpec.Tests +{ + /// + public partial class BestPracticeResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new BestPracticeData(); + + /// The writer to serialize the model to. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + /// The reader for deserializing the model. + /// The client options for reading and writing models. + BestPracticeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => DataDeserializationInstance.Create(ref reader, options); + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureGeneratorMgmtTypeSpecTestsContext.Default); + + /// The binary data to be processed. + /// The client options for reading and writing models. + BestPracticeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureGeneratorMgmtTypeSpecTestsContext.Default); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => DataDeserializationInstance.GetFormatFromOptions(options); + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeResource.cs new file mode 100644 index 000000000000..3fa67bcab997 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BestPracticeResource.cs @@ -0,0 +1,395 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Generator.MgmtTypeSpec.Tests.Models; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; + +namespace Azure.Generator.MgmtTypeSpec.Tests +{ + /// + /// A class representing a BestPractice along with the instance operations that can be performed on it. + /// If you have a you can construct a from an instance of using the GetResource method. + /// Otherwise you can get one from its parent resource using the GetBestPractices method. + /// + public partial class BestPracticeResource : ArmResource + { + private readonly ClientDiagnostics _bestPracticesClientDiagnostics; + private readonly BestPractices _bestPracticesRestClient; + private readonly BestPracticeData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "MgmtTypeSpec/bestPractices"; + + /// Initializes a new instance of BestPracticeResource for mocking. + protected BestPracticeResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal BestPracticeResource(ArmClient client, BestPracticeData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal BestPracticeResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string bestPracticeApiVersion); + _bestPracticesClientDiagnostics = new ClientDiagnostics("Azure.Generator.MgmtTypeSpec.Tests", ResourceType.Namespace, Diagnostics); + _bestPracticesRestClient = new BestPractices(_bestPracticesClientDiagnostics, Pipeline, Endpoint, bestPracticeApiVersion ?? "2024-05-01"); + ValidateResourceId(id); + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + public virtual BestPracticeData Data + { + get + { + if (!HasData) + { + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + } + return _data; + } + } + + /// Generate the resource identifier for this resource. + /// The bestPracticeName. + public static ResourceIdentifier CreateResourceIdentifier(string bestPracticeName) + { + string resourceId = $"/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}"; + return new ResourceIdentifier(resourceId); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), id); + } + } + + /// + /// Get a BestPractice + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateGetRequest(Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(BestPracticeData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a BestPractice + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateGetRequest(Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(BestPracticeData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a BestPractice + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Update. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// Resource create parameters. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(BestPracticePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateUpdateRequest(Id.Name, BestPracticePatch.ToRequestContent(patch), context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(BestPracticeData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a BestPractice + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Update. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// Resource create parameters. + /// The cancellation token to use. + /// is null. + public virtual Response Update(BestPracticePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateUpdateRequest(Id.Name, BestPracticePatch.ToRequestContent(patch), context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(BestPracticeData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a BestPractice + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Delete. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateDeleteRequest(Id.Name, context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + RequestUriBuilder uri = message.Request.Uri; + RehydrationToken rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + TestsArmOperation operation = new TestsArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + { + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a BestPractice + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Delete. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _bestPracticesClientDiagnostics.CreateScope("BestPracticeResource.Delete"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _bestPracticesRestClient.CreateDeleteRequest(Id.Name, context); + Response response = Pipeline.ProcessMessage(message, context); + RequestUriBuilder uri = message.Request.Uri; + RehydrationToken rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + TestsArmOperation operation = new TestsArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + { + operation.WaitForCompletionResponse(cancellationToken); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/AzureGeneratorMgmtTypeSpecTestsExtensions.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/AzureGeneratorMgmtTypeSpecTestsExtensions.cs index 9370e81fe6b2..00765b90c2c4 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/AzureGeneratorMgmtTypeSpecTestsExtensions.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/AzureGeneratorMgmtTypeSpecTestsExtensions.cs @@ -527,6 +527,24 @@ public static SAPVirtualInstanceResource GetSAPVirtualInstanceResource(this ArmC return GetMockableAzureGeneratorMgmtTypeSpecTestsArmClient(client).GetSAPVirtualInstanceResource(id); } + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// + /// Mocking. + /// To mock this method, please mock instead. + /// + /// + /// The the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static BestPracticeResource GetBestPracticeResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAzureGeneratorMgmtTypeSpecTestsArmClient(client).GetBestPracticeResource(id); + } + /// /// Gets a collection of StorageSyncServices in the /// @@ -1175,6 +1193,61 @@ public static Response GetAvailabilityZoneDeta return GetMockableAzureGeneratorMgmtTypeSpecTestsSubscriptionResource(subscriptionResource).GetAvailabilityZoneDetails(location, content, cancellationToken); } + /// + /// Gets a collection of BestPractices in the + /// + /// Mocking. + /// To mock this method, please mock instead. + /// + /// + /// The the method will execute against. + /// is null. + /// An object representing collection of BestPractices and their operations over a BestPracticeResource. + public static BestPracticeCollection GetBestPractices(this TenantResource tenantResource) + { + Argument.AssertNotNull(tenantResource, nameof(tenantResource)); + + return GetMockableAzureGeneratorMgmtTypeSpecTestsTenantResource(tenantResource).GetBestPractices(); + } + + /// + /// Get a BestPractice + /// + /// Mocking. + /// To mock this method, please mock instead. + /// + /// + /// The the method will execute against. + /// The name of the best practice. + /// The cancellation token to use. + /// is null. + [ForwardsClientCalls] + public static async Task> GetBestPracticeAsync(this TenantResource tenantResource, string bestPracticeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tenantResource, nameof(tenantResource)); + + return await GetMockableAzureGeneratorMgmtTypeSpecTestsTenantResource(tenantResource).GetBestPracticeAsync(bestPracticeName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a BestPractice + /// + /// Mocking. + /// To mock this method, please mock instead. + /// + /// + /// The the method will execute against. + /// The name of the best practice. + /// The cancellation token to use. + /// is null. + [ForwardsClientCalls] + public static Response GetBestPractice(this TenantResource tenantResource, string bestPracticeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tenantResource, nameof(tenantResource)); + + return GetMockableAzureGeneratorMgmtTypeSpecTestsTenantResource(tenantResource).GetBestPractice(bestPracticeName, cancellationToken); + } + /// /// Starts a failed runtime resource /// diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsArmClient.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsArmClient.cs index dcf8ca43a242..97fe4a0ee77b 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsArmClient.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsArmClient.cs @@ -280,5 +280,14 @@ public virtual SAPVirtualInstanceResource GetSAPVirtualInstanceResource(Resource SAPVirtualInstanceResource.ValidateResourceId(id); return new SAPVirtualInstanceResource(Client, id); } + + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// The resource ID of the resource to get. + /// Returns a object. + public virtual BestPracticeResource GetBestPracticeResource(ResourceIdentifier id) + { + BestPracticeResource.ValidateResourceId(id); + return new BestPracticeResource(Client, id); + } } } diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsTenantResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsTenantResource.cs index e23697dda748..165f6155fcd2 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsTenantResource.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsTenantResource.cs @@ -46,6 +46,71 @@ internal MockableAzureGeneratorMgmtTypeSpecTestsTenantResource(ArmClient client, private NetworkProviderActions NetworkProviderActionsRestClient => _networkProviderActionsRestClient ??= new NetworkProviderActions(NetworkProviderActionsClientDiagnostics, Pipeline, Endpoint, "2024-05-01"); + /// Gets a collection of BestPractices in the . + /// An object representing collection of BestPractices and their operations over a BestPracticeResource. + public virtual BestPracticeCollection GetBestPractices() + { + return GetCachedClient(client => new BestPracticeCollection(client, Id)); + } + + /// + /// Get a BestPractice + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the best practice. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetBestPracticeAsync(string bestPracticeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); + + return await GetBestPractices().GetAsync(bestPracticeName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a BestPractice + /// + /// + /// Request Path. + /// /providers/MgmtTypeSpec/bestPractices/{bestPracticeName}. + /// + /// + /// Operation Id. + /// BestPractices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the best practice. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetBestPractice(string bestPracticeName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); + + return GetBestPractices().Get(bestPracticeName, cancellationToken); + } + /// /// Starts a failed runtime resource /// diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecTestsModelFactory.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecTestsModelFactory.cs index 7d064cce54d7..89f5456606c5 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecTestsModelFactory.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecTestsModelFactory.cs @@ -772,6 +772,35 @@ public static SAPAvailabilityZoneDetailsResult SAPAvailabilityZoneDetailsResult( return new SAPAvailabilityZoneDetailsResult(recommendedAvailabilityZonePair, additionalBinaryDataProperties: null); } + /// A best practice resource - used by both parent and child operations. + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /// The name of the resource. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// The resource-specific properties for this resource. + /// + /// A new instance for mocking. + public static BestPracticeData BestPracticeData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, BestPracticeProperties properties = default, ExtendedLocation1 extendedLocation = default) + { + return new BestPracticeData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties: null, + properties, + extendedLocation); + } + + /// Best practice properties. + /// The provisioning state of the resource. + /// The description of the best practice. + /// A new instance for mocking. + public static BestPracticeProperties BestPracticeProperties(ResourceProvisioningState? provisioningState = default, string description = default) + { + return new BestPracticeProperties(provisioningState, description, additionalBinaryDataProperties: null); + } + /// The ZooRecommendation. /// The recommended value. /// The reason for the recommendation. diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsContext.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsContext.cs index 87b825e203eb..846fec9e0093 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsContext.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsContext.cs @@ -38,6 +38,11 @@ namespace Azure.Generator.MgmtTypeSpec.Tests [ModelReaderWriterBuildable(typeof(BazListResult))] [ModelReaderWriterBuildable(typeof(BazProperties))] [ModelReaderWriterBuildable(typeof(BazResource))] + [ModelReaderWriterBuildable(typeof(BestPracticeData))] + [ModelReaderWriterBuildable(typeof(BestPracticePatch))] + [ModelReaderWriterBuildable(typeof(BestPracticeProperties))] + [ModelReaderWriterBuildable(typeof(BestPracticeResource))] + [ModelReaderWriterBuildable(typeof(BestPracticeUpdateProperties))] [ModelReaderWriterBuildable(typeof(Employee))] [ModelReaderWriterBuildable(typeof(EmployeeListResult))] [ModelReaderWriterBuildable(typeof(EmployeeProperties))] @@ -46,6 +51,7 @@ namespace Azure.Generator.MgmtTypeSpec.Tests [ModelReaderWriterBuildable(typeof(EndpointResourceData))] [ModelReaderWriterBuildable(typeof(EndpointResourceListResult))] [ModelReaderWriterBuildable(typeof(ExtendedLocation))] + [ModelReaderWriterBuildable(typeof(ExtendedLocation1))] [ModelReaderWriterBuildable(typeof(FooActionRequest))] [ModelReaderWriterBuildable(typeof(FooActionResult))] [ModelReaderWriterBuildable(typeof(FooData))] diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticePatch.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticePatch.Serialization.cs new file mode 100644 index 000000000000..3fd5edc7182f --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticePatch.Serialization.cs @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Generator.MgmtTypeSpec.Tests; + +namespace Azure.Generator.MgmtTypeSpec.Tests.Models +{ + /// The type used for update operations of the BestPractice. + public partial class BestPracticePatch : IJsonModel + { + /// The JSON writer. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(BestPracticePatch)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + BestPracticePatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual BestPracticePatch JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(BestPracticePatch)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeBestPracticePatch(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static BestPracticePatch DeserializeBestPracticePatch(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + BestPracticeUpdateProperties properties = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = BestPracticeUpdateProperties.DeserializeBestPracticeUpdateProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new BestPracticePatch(properties, additionalBinaryDataProperties); + } + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureGeneratorMgmtTypeSpecTestsContext.Default); + default: + throw new FormatException($"The model {nameof(BestPracticePatch)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + BestPracticePatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual BestPracticePatch PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) + { + return DeserializeBestPracticePatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(BestPracticePatch)} does not support reading '{options.Format}' format."); + } + } + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to serialize into . + internal static RequestContent ToRequestContent(BestPracticePatch bestPracticePatch) + { + if (bestPracticePatch == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(bestPracticePatch, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticePatch.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticePatch.cs new file mode 100644 index 000000000000..c12cb8a9d015 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticePatch.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Generator.MgmtTypeSpec.Tests; + +namespace Azure.Generator.MgmtTypeSpec.Tests.Models +{ + /// The type used for update operations of the BestPractice. + public partial class BestPracticePatch + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public BestPracticePatch() + { + } + + /// Initializes a new instance of . + /// The resource-specific properties for this resource. + /// Keeps track of any properties unknown to the library. + internal BestPracticePatch(BestPracticeUpdateProperties properties, IDictionary additionalBinaryDataProperties) + { + Properties = properties; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The resource-specific properties for this resource. + [WirePath("properties")] + internal BestPracticeUpdateProperties Properties { get; set; } + + /// The description of the best practice. + [WirePath("properties.description")] + public string BestPracticeUpdateDescription + { + get + { + return Properties is null ? default : Properties.Description; + } + set + { + if (Properties is null) + { + Properties = new BestPracticeUpdateProperties(); + } + Properties.Description = value; + } + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticeProperties.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticeProperties.Serialization.cs new file mode 100644 index 000000000000..254ede32d9f5 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticeProperties.Serialization.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Generator.MgmtTypeSpec.Tests; + +namespace Azure.Generator.MgmtTypeSpec.Tests.Models +{ + /// Best practice properties. + public partial class BestPracticeProperties : IJsonModel + { + /// The JSON writer. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(BestPracticeProperties)} does not support writing '{format}' format."); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + BestPracticeProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual BestPracticeProperties JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(BestPracticeProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeBestPracticeProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static BestPracticeProperties DeserializeBestPracticeProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceProvisioningState? provisioningState = default; + string description = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ResourceProvisioningState(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("description"u8)) + { + description = prop.Value.GetString(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new BestPracticeProperties(provisioningState, description, additionalBinaryDataProperties); + } + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureGeneratorMgmtTypeSpecTestsContext.Default); + default: + throw new FormatException($"The model {nameof(BestPracticeProperties)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + BestPracticeProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual BestPracticeProperties PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) + { + return DeserializeBestPracticeProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(BestPracticeProperties)} does not support reading '{options.Format}' format."); + } + } + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticeProperties.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticeProperties.cs new file mode 100644 index 000000000000..7750c2384770 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticeProperties.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Generator.MgmtTypeSpec.Tests; + +namespace Azure.Generator.MgmtTypeSpec.Tests.Models +{ + /// Best practice properties. + public partial class BestPracticeProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public BestPracticeProperties() + { + } + + /// Initializes a new instance of . + /// The provisioning state of the resource. + /// The description of the best practice. + /// Keeps track of any properties unknown to the library. + internal BestPracticeProperties(ResourceProvisioningState? provisioningState, string description, IDictionary additionalBinaryDataProperties) + { + ProvisioningState = provisioningState; + Description = description; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The provisioning state of the resource. + [WirePath("provisioningState")] + public ResourceProvisioningState? ProvisioningState { get; } + + /// The description of the best practice. + [WirePath("description")] + public string Description { get; set; } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticeUpdateProperties.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticeUpdateProperties.Serialization.cs new file mode 100644 index 000000000000..91d608a8c420 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticeUpdateProperties.Serialization.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Generator.MgmtTypeSpec.Tests; + +namespace Azure.Generator.MgmtTypeSpec.Tests.Models +{ + /// The updatable properties of the BestPractice. + internal partial class BestPracticeUpdateProperties : IJsonModel + { + /// The JSON writer. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(BestPracticeUpdateProperties)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + BestPracticeUpdateProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual BestPracticeUpdateProperties JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(BestPracticeUpdateProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeBestPracticeUpdateProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static BestPracticeUpdateProperties DeserializeBestPracticeUpdateProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string description = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("description"u8)) + { + description = prop.Value.GetString(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new BestPracticeUpdateProperties(description, additionalBinaryDataProperties); + } + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureGeneratorMgmtTypeSpecTestsContext.Default); + default: + throw new FormatException($"The model {nameof(BestPracticeUpdateProperties)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + BestPracticeUpdateProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual BestPracticeUpdateProperties PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) + { + return DeserializeBestPracticeUpdateProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(BestPracticeUpdateProperties)} does not support reading '{options.Format}' format."); + } + } + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticeUpdateProperties.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticeUpdateProperties.cs new file mode 100644 index 000000000000..ba5ddb688c73 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BestPracticeUpdateProperties.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Generator.MgmtTypeSpec.Tests; + +namespace Azure.Generator.MgmtTypeSpec.Tests.Models +{ + /// The updatable properties of the BestPractice. + internal partial class BestPracticeUpdateProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public BestPracticeUpdateProperties() + { + } + + /// Initializes a new instance of . + /// The description of the best practice. + /// Keeps track of any properties unknown to the library. + internal BestPracticeUpdateProperties(string description, IDictionary additionalBinaryDataProperties) + { + Description = description; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The description of the best practice. + [WirePath("description")] + public string Description { get; set; } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ExtendedLocation1.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ExtendedLocation1.Serialization.cs new file mode 100644 index 000000000000..4e6f8aaefadc --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ExtendedLocation1.Serialization.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Generator.MgmtTypeSpec.Tests; + +namespace Azure.Generator.MgmtTypeSpec.Tests.Models +{ + /// The complex type of the extended location. + public partial class ExtendedLocation1 : IJsonModel + { + /// The JSON writer. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ExtendedLocation1)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + ExtendedLocation1 IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual ExtendedLocation1 JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ExtendedLocation1)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeExtendedLocation1(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static ExtendedLocation1 DeserializeExtendedLocation1(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string name = default; + ExtendedLocationType? @type = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("name"u8)) + { + name = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("type"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + @type = new ExtendedLocationType(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new ExtendedLocation1(name, @type, additionalBinaryDataProperties); + } + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureGeneratorMgmtTypeSpecTestsContext.Default); + default: + throw new FormatException($"The model {nameof(ExtendedLocation1)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + ExtendedLocation1 IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual ExtendedLocation1 PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) + { + return DeserializeExtendedLocation1(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ExtendedLocation1)} does not support reading '{options.Format}' format."); + } + } + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ExtendedLocation1.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ExtendedLocation1.cs new file mode 100644 index 000000000000..d2a3077404b7 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ExtendedLocation1.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Generator.MgmtTypeSpec.Tests; + +namespace Azure.Generator.MgmtTypeSpec.Tests.Models +{ + /// The complex type of the extended location. + public partial class ExtendedLocation1 + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public ExtendedLocation1() + { + } + + /// Initializes a new instance of . + /// The name of the extended location. + /// The type of the extended location. + /// Keeps track of any properties unknown to the library. + internal ExtendedLocation1(string name, ExtendedLocationType? @type, IDictionary additionalBinaryDataProperties) + { + Name = name; + Type = @type; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The name of the extended location. + [WirePath("name")] + public string Name { get; set; } + + /// The type of the extended location. + [WirePath("type")] + public ExtendedLocationType? Type { get; set; } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ExtendedLocationType.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ExtendedLocationType.cs new file mode 100644 index 000000000000..5fffa2ce86fb --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ExtendedLocationType.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.Generator.MgmtTypeSpec.Tests; + +namespace Azure.Generator.MgmtTypeSpec.Tests.Models +{ + /// The supported ExtendedLocation types. + public readonly partial struct ExtendedLocationType : IEquatable + { + private readonly string _value; + /// Azure Edge Zones location type. + private const string EdgeZoneValue = "EdgeZone"; + /// Azure Custom Locations type. + private const string CustomLocationValue = "CustomLocation"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public ExtendedLocationType(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Azure Edge Zones location type. + public static ExtendedLocationType EdgeZone { get; } = new ExtendedLocationType(EdgeZoneValue); + + /// Azure Custom Locations type. + public static ExtendedLocationType CustomLocation { get; } = new ExtendedLocationType(CustomLocationValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(ExtendedLocationType left, ExtendedLocationType right) => left.Equals(right); + + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator !=(ExtendedLocationType left, ExtendedLocationType right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator ExtendedLocationType(string value) => new ExtendedLocationType(value); + + /// Converts a string to a . + /// The value. + public static implicit operator ExtendedLocationType?(string value) => value == null ? null : new ExtendedLocationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ExtendedLocationType other && Equals(other); + + /// + public bool Equals(ExtendedLocationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + + /// + public override string ToString() => _value; + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/BestPracticesRestOperations.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/BestPracticesRestOperations.cs new file mode 100644 index 000000000000..4f23c858fb42 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/BestPracticesRestOperations.cs @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Generator.MgmtTypeSpec.Tests +{ + internal partial class BestPractices + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of BestPractices for mocking. + protected BestPractices() + { + } + + /// Initializes a new instance of BestPractices. + /// The ClientDiagnostics is used to provide tracing support for the client library. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Service endpoint. + /// + internal BestPractices(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) + { + ClientDiagnostics = clientDiagnostics; + _endpoint = endpoint; + Pipeline = pipeline; + _apiVersion = apiVersion; + } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + internal HttpMessage CreateGetRequest(string bestPracticeName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/MgmtTypeSpec/bestPractices/", false); + uri.AppendPath(bestPracticeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string bestPracticeName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/MgmtTypeSpec/bestPractices/", false); + uri.AppendPath(bestPracticeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateUpdateRequest(string bestPracticeName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/MgmtTypeSpec/bestPractices/", false); + uri.AppendPath(bestPracticeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Patch; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteRequest(string bestPracticeName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/MgmtTypeSpec/bestPractices/", false); + uri.AppendPath(bestPracticeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/tspCodeModel.json b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/tspCodeModel.json index 850d1d0d9fd1..8170a4150ab7 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/tspCodeModel.json +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/tspCodeModel.json @@ -2630,7 +2630,7 @@ { "$id": "291", "kind": "constant", - "name": "updateContentType23", + "name": "createOrUpdateContentType31", "namespace": "", "usage": "None", "valueType": { @@ -2646,7 +2646,7 @@ { "$id": "293", "kind": "constant", - "name": "updateContentType24", + "name": "createOrUpdateContentType32", "namespace": "", "usage": "None", "valueType": { @@ -2662,7 +2662,7 @@ { "$id": "295", "kind": "constant", - "name": "recommendContentType", + "name": "updateContentType23", "namespace": "", "usage": "None", "valueType": { @@ -2674,11 +2674,171 @@ }, "value": "application/json", "decorators": [] + }, + { + "$id": "297", + "kind": "constant", + "name": "updateContentType24", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "298", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "299", + "kind": "constant", + "name": "getContentType18", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "300", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "301", + "kind": "constant", + "name": "createOrUpdateContentType33", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "302", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "303", + "kind": "constant", + "name": "createOrUpdateContentType34", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "304", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "305", + "kind": "constant", + "name": "updateContentType25", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "306", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "307", + "kind": "constant", + "name": "updateContentType26", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "308", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "309", + "kind": "constant", + "name": "getContentType19", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "310", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "311", + "kind": "constant", + "name": "updateContentType27", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "312", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "313", + "kind": "constant", + "name": "updateContentType28", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "314", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "315", + "kind": "constant", + "name": "recommendContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] } ], "models": [ { - "$id": "297", + "$id": "317", "kind": "model", "name": "FooPreviewAction", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -2692,13 +2852,13 @@ ], "properties": [ { - "$id": "298", + "$id": "318", "kind": "property", "name": "action", "serializedName": "action", "doc": "The action to be performed.", "type": { - "$id": "299", + "$id": "319", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2718,12 +2878,12 @@ "isHttpMetadata": false }, { - "$id": "300", + "$id": "320", "kind": "property", "name": "result", "serializedName": "result", "type": { - "$id": "301", + "$id": "321", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2745,7 +2905,7 @@ ] }, { - "$id": "302", + "$id": "322", "kind": "model", "name": "ErrorResponse", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -2761,13 +2921,13 @@ ], "properties": [ { - "$id": "303", + "$id": "323", "kind": "property", "name": "error", "serializedName": "error", "doc": "The error object.", "type": { - "$id": "304", + "$id": "324", "kind": "model", "name": "ErrorDetail", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -2782,13 +2942,13 @@ ], "properties": [ { - "$id": "305", + "$id": "325", "kind": "property", "name": "code", "serializedName": "code", "doc": "The error code.", "type": { - "$id": "306", + "$id": "326", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2808,13 +2968,13 @@ "isHttpMetadata": false }, { - "$id": "307", + "$id": "327", "kind": "property", "name": "message", "serializedName": "message", "doc": "The error message.", "type": { - "$id": "308", + "$id": "328", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2834,13 +2994,13 @@ "isHttpMetadata": false }, { - "$id": "309", + "$id": "329", "kind": "property", "name": "target", "serializedName": "target", "doc": "The error target.", "type": { - "$id": "310", + "$id": "330", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2860,17 +3020,17 @@ "isHttpMetadata": false }, { - "$id": "311", + "$id": "331", "kind": "property", "name": "details", "serializedName": "details", "doc": "The error details.", "type": { - "$id": "312", + "$id": "332", "kind": "array", "name": "ArrayErrorDetail", "valueType": { - "$ref": "304" + "$ref": "324" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2889,17 +3049,17 @@ "isHttpMetadata": false }, { - "$id": "313", + "$id": "333", "kind": "property", "name": "additionalInfo", "serializedName": "additionalInfo", "doc": "The error additional info.", "type": { - "$id": "314", + "$id": "334", "kind": "array", "name": "ArrayErrorAdditionalInfo", "valueType": { - "$id": "315", + "$id": "335", "kind": "model", "name": "ErrorAdditionalInfo", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -2914,13 +3074,13 @@ ], "properties": [ { - "$id": "316", + "$id": "336", "kind": "property", "name": "type", "serializedName": "type", "doc": "The additional info type.", "type": { - "$id": "317", + "$id": "337", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2940,13 +3100,13 @@ "isHttpMetadata": false }, { - "$id": "318", + "$id": "338", "kind": "property", "name": "info", "serializedName": "info", "doc": "The additional info.", "type": { - "$id": "319", + "$id": "339", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -3001,13 +3161,13 @@ ] }, { - "$ref": "304" + "$ref": "324" }, { - "$ref": "315" + "$ref": "335" }, { - "$id": "320", + "$id": "340", "kind": "model", "name": "OperationListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3022,17 +3182,17 @@ ], "properties": [ { - "$id": "321", + "$id": "341", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Operation items on this page", "type": { - "$id": "322", + "$id": "342", "kind": "array", "name": "ArrayOperation", "valueType": { - "$id": "323", + "$id": "343", "kind": "model", "name": "Operation", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3048,13 +3208,13 @@ ], "properties": [ { - "$id": "324", + "$id": "344", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\"", "type": { - "$id": "325", + "$id": "345", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3074,13 +3234,13 @@ "isHttpMetadata": false }, { - "$id": "326", + "$id": "346", "kind": "property", "name": "isDataAction", "serializedName": "isDataAction", "doc": "Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations.", "type": { - "$id": "327", + "$id": "347", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -3100,13 +3260,13 @@ "isHttpMetadata": false }, { - "$id": "328", + "$id": "348", "kind": "property", "name": "display", "serializedName": "display", "doc": "Localized display information for this particular operation.", "type": { - "$id": "329", + "$id": "349", "kind": "model", "name": "OperationDisplay", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3121,13 +3281,13 @@ ], "properties": [ { - "$id": "330", + "$id": "350", "kind": "property", "name": "provider", "serializedName": "provider", "doc": "The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\".", "type": { - "$id": "331", + "$id": "351", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3147,13 +3307,13 @@ "isHttpMetadata": false }, { - "$id": "332", + "$id": "352", "kind": "property", "name": "resource", "serializedName": "resource", "doc": "The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\".", "type": { - "$id": "333", + "$id": "353", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3173,13 +3333,13 @@ "isHttpMetadata": false }, { - "$id": "334", + "$id": "354", "kind": "property", "name": "operation", "serializedName": "operation", "doc": "The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\".", "type": { - "$id": "335", + "$id": "355", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3199,13 +3359,13 @@ "isHttpMetadata": false }, { - "$id": "336", + "$id": "356", "kind": "property", "name": "description", "serializedName": "description", "doc": "The short, localized friendly description of the operation; suitable for tool tips and detailed views.", "type": { - "$id": "337", + "$id": "357", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3240,7 +3400,7 @@ "isHttpMetadata": false }, { - "$id": "338", + "$id": "358", "kind": "property", "name": "origin", "serializedName": "origin", @@ -3262,7 +3422,7 @@ "isHttpMetadata": false }, { - "$id": "339", + "$id": "359", "kind": "property", "name": "actionType", "serializedName": "actionType", @@ -3302,18 +3462,18 @@ "isHttpMetadata": false }, { - "$id": "340", + "$id": "360", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "341", + "$id": "361", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "342", + "$id": "362", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -3337,13 +3497,13 @@ ] }, { - "$ref": "323" + "$ref": "343" }, { - "$ref": "329" + "$ref": "349" }, { - "$id": "343", + "$id": "363", "kind": "model", "name": "PrivateLinkListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3358,17 +3518,17 @@ ], "properties": [ { - "$id": "344", + "$id": "364", "kind": "property", "name": "value", "serializedName": "value", "doc": "The PrivateLink items on this page", "type": { - "$id": "345", + "$id": "365", "kind": "array", "name": "ArrayPrivateLink", "valueType": { - "$id": "346", + "$id": "366", "kind": "model", "name": "PrivateLink", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3386,7 +3546,7 @@ } ], "baseModel": { - "$id": "347", + "$id": "367", "kind": "model", "name": "ProxyResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3401,7 +3561,7 @@ } ], "baseModel": { - "$id": "348", + "$id": "368", "kind": "model", "name": "Resource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3417,18 +3577,18 @@ ], "properties": [ { - "$id": "349", + "$id": "369", "kind": "property", "name": "id", "serializedName": "id", "doc": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", "type": { - "$id": "350", + "$id": "370", "kind": "string", "name": "armResourceIdentifier", "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", "baseType": { - "$id": "351", + "$id": "371", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3450,13 +3610,13 @@ "isHttpMetadata": false }, { - "$id": "352", + "$id": "372", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the resource", "type": { - "$id": "353", + "$id": "373", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3476,18 +3636,18 @@ "isHttpMetadata": false }, { - "$id": "354", + "$id": "374", "kind": "property", "name": "type", "serializedName": "type", "doc": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"", "type": { - "$id": "355", + "$id": "375", "kind": "string", "name": "armResourceType", "crossLanguageDefinitionId": "Azure.Core.armResourceType", "baseType": { - "$id": "356", + "$id": "376", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3509,13 +3669,13 @@ "isHttpMetadata": false }, { - "$id": "357", + "$id": "377", "kind": "property", "name": "systemData", "serializedName": "systemData", "doc": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", "type": { - "$id": "358", + "$id": "378", "kind": "model", "name": "SystemData", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3530,13 +3690,13 @@ ], "properties": [ { - "$id": "359", + "$id": "379", "kind": "property", "name": "createdBy", "serializedName": "createdBy", "doc": "The identity that created the resource.", "type": { - "$id": "360", + "$id": "380", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3556,7 +3716,7 @@ "isHttpMetadata": false }, { - "$id": "361", + "$id": "381", "kind": "property", "name": "createdByType", "serializedName": "createdByType", @@ -3578,18 +3738,18 @@ "isHttpMetadata": false }, { - "$id": "362", + "$id": "382", "kind": "property", "name": "createdAt", "serializedName": "createdAt", "doc": "The timestamp of resource creation (UTC).", "type": { - "$id": "363", + "$id": "383", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "364", + "$id": "384", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3612,13 +3772,13 @@ "isHttpMetadata": false }, { - "$id": "365", + "$id": "385", "kind": "property", "name": "lastModifiedBy", "serializedName": "lastModifiedBy", "doc": "The identity that last modified the resource.", "type": { - "$id": "366", + "$id": "386", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3638,7 +3798,7 @@ "isHttpMetadata": false }, { - "$id": "367", + "$id": "387", "kind": "property", "name": "lastModifiedByType", "serializedName": "lastModifiedByType", @@ -3660,18 +3820,18 @@ "isHttpMetadata": false }, { - "$id": "368", + "$id": "388", "kind": "property", "name": "lastModifiedAt", "serializedName": "lastModifiedAt", "doc": "The timestamp of resource last modification (UTC)", "type": { - "$id": "369", + "$id": "389", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "370", + "$id": "390", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3714,13 +3874,13 @@ }, "properties": [ { - "$id": "371", + "$id": "391", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "372", + "$id": "392", "kind": "model", "name": "PrivateLinkResourceProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3735,13 +3895,13 @@ ], "properties": [ { - "$id": "373", + "$id": "393", "kind": "property", "name": "groupId", "serializedName": "groupId", "doc": "The private link resource group id.", "type": { - "$id": "374", + "$id": "394", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3761,17 +3921,17 @@ "isHttpMetadata": false }, { - "$id": "375", + "$id": "395", "kind": "property", "name": "requiredMembers", "serializedName": "requiredMembers", "doc": "The private link resource required member names.", "type": { - "$id": "376", + "$id": "396", "kind": "array", "name": "Array", "valueType": { - "$id": "377", + "$id": "397", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3794,13 +3954,13 @@ "isHttpMetadata": false }, { - "$id": "378", + "$id": "398", "kind": "property", "name": "requiredZoneNames", "serializedName": "requiredZoneNames", "doc": "The private link resource private link DNS zone name.", "type": { - "$ref": "376" + "$ref": "396" }, "optional": true, "readOnly": false, @@ -3831,13 +3991,13 @@ "isHttpMetadata": false }, { - "$id": "379", + "$id": "399", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the private link associated with the Azure resource.", "type": { - "$id": "380", + "$id": "400", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3857,13 +4017,13 @@ "isHttpMetadata": true }, { - "$id": "381", + "$id": "401", "kind": "property", "name": "identity", "serializedName": "identity", "doc": "The managed service identities assigned to this resource.", "type": { - "$id": "382", + "$id": "402", "kind": "model", "name": "ManagedServiceIdentity", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3878,18 +4038,18 @@ ], "properties": [ { - "$id": "383", + "$id": "403", "kind": "property", "name": "principalId", "serializedName": "principalId", "doc": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", "type": { - "$id": "384", + "$id": "404", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "385", + "$id": "405", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3911,18 +4071,18 @@ "isHttpMetadata": false }, { - "$id": "386", + "$id": "406", "kind": "property", "name": "tenantId", "serializedName": "tenantId", "doc": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", "type": { - "$id": "387", + "$id": "407", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "388", + "$id": "408", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3944,7 +4104,7 @@ "isHttpMetadata": false }, { - "$id": "389", + "$id": "409", "kind": "property", "name": "type", "serializedName": "type", @@ -3966,26 +4126,26 @@ "isHttpMetadata": false }, { - "$id": "390", + "$id": "410", "kind": "property", "name": "userAssignedIdentities", "serializedName": "userAssignedIdentities", "doc": "The identities assigned to this resource by the user.", "type": { - "$id": "391", + "$id": "411", "kind": "dict", "keyType": { - "$id": "392", + "$id": "412", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "393", + "$id": "413", "kind": "nullable", "type": { - "$id": "394", + "$id": "414", "kind": "model", "name": "UserAssignedIdentity", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -4000,18 +4160,18 @@ ], "properties": [ { - "$id": "395", + "$id": "415", "kind": "property", "name": "principalId", "serializedName": "principalId", "doc": "The principal ID of the assigned identity.", "type": { - "$id": "396", + "$id": "416", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "397", + "$id": "417", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4033,18 +4193,18 @@ "isHttpMetadata": false }, { - "$id": "398", + "$id": "418", "kind": "property", "name": "clientId", "serializedName": "clientId", "doc": "The client ID of the assigned identity.", "type": { - "$id": "399", + "$id": "419", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "400", + "$id": "420", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4118,18 +4278,18 @@ "isHttpMetadata": false }, { - "$id": "401", + "$id": "421", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "402", + "$id": "422", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "403", + "$id": "423", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -4153,28 +4313,28 @@ ] }, { - "$ref": "346" + "$ref": "366" }, { - "$ref": "372" + "$ref": "392" }, { - "$ref": "382" + "$ref": "402" }, { - "$ref": "394" + "$ref": "414" }, { - "$ref": "347" + "$ref": "367" }, { - "$ref": "348" + "$ref": "368" }, { - "$ref": "358" + "$ref": "378" }, { - "$id": "404", + "$id": "424", "kind": "model", "name": "StartParameterBody", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -4188,12 +4348,12 @@ ], "properties": [ { - "$id": "405", + "$id": "425", "kind": "property", "name": "body", "doc": "SAP Application server instance start request body.", "type": { - "$id": "406", + "$id": "426", "kind": "model", "name": "StartRequest", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -4208,13 +4368,13 @@ ], "properties": [ { - "$id": "407", + "$id": "427", "kind": "property", "name": "startVm", "serializedName": "startVm", "doc": "The boolean value indicates whether to start the virtual machines before starting the SAP instances.", "type": { - "$id": "408", + "$id": "428", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -4247,10 +4407,10 @@ ] }, { - "$ref": "406" + "$ref": "426" }, { - "$id": "409", + "$id": "429", "kind": "model", "name": "OperationStatusResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -4265,18 +4425,18 @@ ], "properties": [ { - "$id": "410", + "$id": "430", "kind": "property", "name": "id", "serializedName": "id", "doc": "Fully qualified ID for the async operation.", "type": { - "$id": "411", + "$id": "431", "kind": "string", "name": "armResourceIdentifier", "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", "baseType": { - "$id": "412", + "$id": "432", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4298,13 +4458,13 @@ "isHttpMetadata": false }, { - "$id": "413", + "$id": "433", "kind": "property", "name": "name", "serializedName": "name", "doc": "Name of the async operation.", "type": { - "$id": "414", + "$id": "434", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4324,13 +4484,13 @@ "isHttpMetadata": false }, { - "$id": "415", + "$id": "435", "kind": "property", "name": "status", "serializedName": "status", "doc": "Operation status.", "type": { - "$id": "416", + "$id": "436", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4350,13 +4510,13 @@ "isHttpMetadata": false }, { - "$id": "417", + "$id": "437", "kind": "property", "name": "percentComplete", "serializedName": "percentComplete", "doc": "Percent of the operation that is complete.", "type": { - "$id": "418", + "$id": "438", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -4376,18 +4536,18 @@ "isHttpMetadata": false }, { - "$id": "419", + "$id": "439", "kind": "property", "name": "startTime", "serializedName": "startTime", "doc": "The start time of the operation.", "type": { - "$id": "420", + "$id": "440", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "421", + "$id": "441", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4410,18 +4570,18 @@ "isHttpMetadata": false }, { - "$id": "422", + "$id": "442", "kind": "property", "name": "endTime", "serializedName": "endTime", "doc": "The end time of the operation.", "type": { - "$id": "423", + "$id": "443", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "424", + "$id": "444", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4444,17 +4604,17 @@ "isHttpMetadata": false }, { - "$id": "425", + "$id": "445", "kind": "property", "name": "operations", "serializedName": "operations", "doc": "The operations list.", "type": { - "$id": "426", + "$id": "446", "kind": "array", "name": "ArrayOperationStatusResult", "valueType": { - "$ref": "409" + "$ref": "429" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4473,13 +4633,13 @@ "isHttpMetadata": false }, { - "$id": "427", + "$id": "447", "kind": "property", "name": "error", "serializedName": "error", "doc": "If present, details of the operation error.", "type": { - "$ref": "304" + "$ref": "324" }, "optional": true, "readOnly": false, @@ -4495,18 +4655,18 @@ "isHttpMetadata": false }, { - "$id": "428", + "$id": "448", "kind": "property", "name": "resourceId", "serializedName": "resourceId", "doc": "Fully qualified ID of the resource against which the original async operation was started.", "type": { - "$id": "429", + "$id": "449", "kind": "string", "name": "armResourceIdentifier", "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", "baseType": { - "$id": "430", + "$id": "450", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4530,7 +4690,7 @@ ] }, { - "$id": "431", + "$id": "451", "kind": "model", "name": "ArmOperationStatusResourceProvisioningState", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -4545,7 +4705,7 @@ ], "properties": [ { - "$id": "432", + "$id": "452", "kind": "property", "name": "status", "serializedName": "status", @@ -4567,13 +4727,13 @@ "isHttpMetadata": false }, { - "$id": "433", + "$id": "453", "kind": "property", "name": "id", "serializedName": "id", "doc": "The unique identifier for the operationStatus resource", "type": { - "$id": "434", + "$id": "454", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4593,13 +4753,13 @@ "isHttpMetadata": true }, { - "$id": "435", + "$id": "455", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the operationStatus resource", "type": { - "$id": "436", + "$id": "456", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4619,18 +4779,18 @@ "isHttpMetadata": false }, { - "$id": "437", + "$id": "457", "kind": "property", "name": "startTime", "serializedName": "startTime", "doc": "Operation start time", "type": { - "$id": "438", + "$id": "458", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "439", + "$id": "459", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4653,18 +4813,18 @@ "isHttpMetadata": false }, { - "$id": "440", + "$id": "460", "kind": "property", "name": "endTime", "serializedName": "endTime", "doc": "Operation complete time", "type": { - "$id": "441", + "$id": "461", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "442", + "$id": "462", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4687,13 +4847,13 @@ "isHttpMetadata": false }, { - "$id": "443", + "$id": "463", "kind": "property", "name": "percentComplete", "serializedName": "percentComplete", "doc": "The progress made toward completing the operation", "type": { - "$id": "444", + "$id": "464", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -4713,13 +4873,13 @@ "isHttpMetadata": false }, { - "$id": "445", + "$id": "465", "kind": "property", "name": "error", "serializedName": "error", "doc": "Errors that occurred if the operation ended with Canceled or Failed status", "type": { - "$ref": "304" + "$ref": "324" }, "optional": true, "readOnly": true, @@ -4737,7 +4897,7 @@ ] }, { - "$id": "446", + "$id": "466", "kind": "model", "name": "PrivateEndpointConnection", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -4767,7 +4927,7 @@ "resourceType": "MgmtTypeSpec/storageSyncServices/privateEndpointConnections", "methods": [ { - "$id": "447", + "$id": "467", "methodId": "MgmtTypeSpec.PrivateEndpointConnections.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", @@ -4775,7 +4935,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}" }, { - "$id": "448", + "$id": "468", "methodId": "MgmtTypeSpec.PrivateEndpointConnections.create", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", @@ -4790,17 +4950,17 @@ } ], "baseModel": { - "$ref": "348" + "$ref": "368" }, "properties": [ { - "$id": "449", + "$id": "469", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The private endpoint connection properties", "type": { - "$id": "450", + "$id": "470", "kind": "model", "name": "PrivateEndpointConnectionProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -4815,13 +4975,13 @@ ], "properties": [ { - "$id": "451", + "$id": "471", "kind": "property", "name": "groupIds", "serializedName": "groupIds", "doc": "The group ids for the private endpoint resource.", "type": { - "$ref": "376" + "$ref": "396" }, "optional": true, "readOnly": true, @@ -4837,13 +4997,13 @@ "isHttpMetadata": false }, { - "$id": "452", + "$id": "472", "kind": "property", "name": "privateEndpoint", "serializedName": "privateEndpoint", "doc": "The private endpoint resource.", "type": { - "$id": "453", + "$id": "473", "kind": "model", "name": "SubResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -4871,13 +5031,13 @@ "isHttpMetadata": false }, { - "$id": "454", + "$id": "474", "kind": "property", "name": "privateLinkServiceConnectionState", "serializedName": "privateLinkServiceConnectionState", "doc": "A collection of information about the state of the connection between service consumer and provider.", "type": { - "$id": "455", + "$id": "475", "kind": "model", "name": "PrivateLinkServiceConnectionState", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -4892,7 +5052,7 @@ ], "properties": [ { - "$id": "456", + "$id": "476", "kind": "property", "name": "status", "serializedName": "status", @@ -4914,13 +5074,13 @@ "isHttpMetadata": false }, { - "$id": "457", + "$id": "477", "kind": "property", "name": "description", "serializedName": "description", "doc": "The reason for approval/rejection of the connection.", "type": { - "$id": "458", + "$id": "478", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4940,13 +5100,13 @@ "isHttpMetadata": false }, { - "$id": "459", + "$id": "479", "kind": "property", "name": "actionsRequired", "serializedName": "actionsRequired", "doc": "A message indicating if changes on the service provider require any updates on the consumer.", "type": { - "$id": "460", + "$id": "480", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4981,7 +5141,7 @@ "isHttpMetadata": false }, { - "$id": "461", + "$id": "481", "kind": "property", "name": "provisioningState", "serializedName": "provisioningState", @@ -5020,16 +5180,16 @@ ] }, { - "$ref": "450" + "$ref": "470" }, { - "$ref": "453" + "$ref": "473" }, { - "$ref": "455" + "$ref": "475" }, { - "$id": "462", + "$id": "482", "kind": "model", "name": "StorageSyncService", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -5052,7 +5212,7 @@ "resourceType": "MgmtTypeSpec/storageSyncServices", "methods": [ { - "$id": "463", + "$id": "483", "methodId": "MgmtTypeSpec.StorageSyncServices.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}", @@ -5066,7 +5226,7 @@ } ], "baseModel": { - "$id": "464", + "$id": "484", "kind": "model", "name": "TrackedResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -5081,27 +5241,27 @@ } ], "baseModel": { - "$ref": "348" + "$ref": "368" }, "properties": [ { - "$id": "465", + "$id": "485", "kind": "property", "name": "tags", "serializedName": "tags", "doc": "Resource tags.", "type": { - "$id": "466", + "$id": "486", "kind": "dict", "keyType": { - "$id": "467", + "$id": "487", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "468", + "$id": "488", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5123,18 +5283,18 @@ "isHttpMetadata": false }, { - "$id": "469", + "$id": "489", "kind": "property", "name": "location", "serializedName": "location", "doc": "The geo-location where the resource lives", "type": { - "$id": "470", + "$id": "490", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "471", + "$id": "491", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5159,13 +5319,13 @@ }, "properties": [ { - "$id": "472", + "$id": "492", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "473", + "$id": "493", "kind": "model", "name": "StorageSyncServiceProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -5179,13 +5339,13 @@ ], "properties": [ { - "$id": "474", + "$id": "494", "kind": "property", "name": "storageSyncServiceLocation", "serializedName": "storageSyncServiceLocation", "doc": "The storage sync service location.", "type": { - "$id": "475", + "$id": "495", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5220,13 +5380,13 @@ "isHttpMetadata": false }, { - "$id": "476", + "$id": "496", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the StorageSyncService", "type": { - "$id": "477", + "$id": "497", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5246,13 +5406,13 @@ "isHttpMetadata": true }, { - "$id": "478", + "$id": "498", "kind": "property", "name": "identity", "serializedName": "identity", "doc": "The managed service identities assigned to this resource.", "type": { - "$ref": "382" + "$ref": "402" }, "optional": true, "readOnly": false, @@ -5270,13 +5430,13 @@ ] }, { - "$ref": "473" + "$ref": "493" }, { - "$ref": "464" + "$ref": "484" }, { - "$id": "479", + "$id": "499", "kind": "model", "name": "Foo", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -5299,7 +5459,7 @@ "resourceType": "MgmtTypeSpec/foos", "methods": [ { - "$id": "480", + "$id": "500", "methodId": "MgmtTypeSpec.Foos.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", @@ -5307,7 +5467,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "481", + "$id": "501", "methodId": "MgmtTypeSpec.Foos.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", @@ -5315,7 +5475,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "482", + "$id": "502", "methodId": "MgmtTypeSpec.Foos.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", @@ -5323,21 +5483,21 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "483", + "$id": "503", "methodId": "MgmtTypeSpec.Foos.list", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos", "operationScope": "ResourceGroup" }, { - "$id": "484", + "$id": "504", "methodId": "MgmtTypeSpec.Foos.listBySubscription", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/foos", "operationScope": "Subscription" }, { - "$id": "485", + "$id": "505", "methodId": "MgmtTypeSpec.Foos.fooAction", "kind": "Action", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/exportDependencies", @@ -5351,17 +5511,17 @@ } ], "baseModel": { - "$ref": "464" + "$ref": "484" }, "properties": [ { - "$id": "486", + "$id": "506", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "487", + "$id": "507", "kind": "model", "name": "FooProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -5381,13 +5541,13 @@ ], "properties": [ { - "$id": "488", + "$id": "508", "kind": "property", "name": "serviceUrl", "serializedName": "serviceUrl", "doc": "the service url", "type": { - "$id": "489", + "$id": "509", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -5407,13 +5567,13 @@ "isHttpMetadata": false }, { - "$id": "490", + "$id": "510", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$ref": "382" + "$ref": "402" }, "optional": false, "readOnly": false, @@ -5429,13 +5589,13 @@ "isHttpMetadata": false }, { - "$id": "491", + "$id": "511", "kind": "property", "name": "boolValue", "serializedName": "boolValue", "doc": "boolean value", "type": { - "$id": "492", + "$id": "512", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -5455,13 +5615,13 @@ "isHttpMetadata": false }, { - "$id": "493", + "$id": "513", "kind": "property", "name": "floatValue", "serializedName": "floatValue", "doc": "float value", "type": { - "$id": "494", + "$id": "514", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -5481,13 +5641,13 @@ "isHttpMetadata": false }, { - "$id": "495", + "$id": "515", "kind": "property", "name": "doubleValue", "serializedName": "doubleValue", "doc": "double value", "type": { - "$id": "496", + "$id": "516", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -5507,12 +5667,12 @@ "isHttpMetadata": false }, { - "$id": "497", + "$id": "517", "kind": "property", "name": "prop1", "serializedName": "prop1", "type": { - "$ref": "376" + "$ref": "396" }, "optional": false, "readOnly": false, @@ -5528,16 +5688,16 @@ "isHttpMetadata": false }, { - "$id": "498", + "$id": "518", "kind": "property", "name": "prop2", "serializedName": "prop2", "type": { - "$id": "499", + "$id": "519", "kind": "array", "name": "Array1", "valueType": { - "$id": "500", + "$id": "520", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -5560,12 +5720,12 @@ "isHttpMetadata": false }, { - "$id": "501", + "$id": "521", "kind": "property", "name": "nestedProperty", "serializedName": "nestedProperty", "type": { - "$id": "502", + "$id": "522", "kind": "model", "name": "NestedFooModel", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -5579,12 +5739,12 @@ ], "properties": [ { - "$id": "503", + "$id": "523", "kind": "property", "name": "properties", "serializedName": "properties", "type": { - "$ref": "487" + "$ref": "507" }, "optional": false, "readOnly": false, @@ -5615,12 +5775,12 @@ "isHttpMetadata": false }, { - "$id": "504", + "$id": "524", "kind": "property", "name": "optionalProperty", "serializedName": "optionalProperty", "type": { - "$id": "505", + "$id": "525", "kind": "model", "name": "SafeFlattenModel", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -5634,12 +5794,12 @@ ], "properties": [ { - "$id": "506", + "$id": "526", "kind": "property", "name": "flattenedProperty", "serializedName": "flattenedProperty", "type": { - "$id": "507", + "$id": "527", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5674,18 +5834,18 @@ "isHttpMetadata": false }, { - "$id": "508", + "$id": "528", "kind": "property", "name": "etag", "serializedName": "etag", "doc": "ETag property for testing etag parameter name generation", "type": { - "$id": "509", + "$id": "529", "kind": "string", "name": "eTag", "crossLanguageDefinitionId": "Azure.Core.eTag", "baseType": { - "$id": "510", + "$id": "530", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5727,13 +5887,13 @@ "isHttpMetadata": false }, { - "$id": "511", + "$id": "531", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Foo", "type": { - "$id": "512", + "$id": "532", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5753,12 +5913,12 @@ "isHttpMetadata": true }, { - "$id": "513", + "$id": "533", "kind": "property", "name": "extendedLocation", "serializedName": "extendedLocation", "type": { - "$id": "514", + "$id": "534", "kind": "model", "name": "ExtendedLocation", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -5773,13 +5933,13 @@ ], "properties": [ { - "$id": "515", + "$id": "535", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the extended location.", "type": { - "$id": "516", + "$id": "536", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5799,7 +5959,7 @@ "isHttpMetadata": false }, { - "$id": "517", + "$id": "537", "kind": "property", "name": "type", "serializedName": "type", @@ -5836,13 +5996,13 @@ "isHttpMetadata": false }, { - "$id": "518", + "$id": "538", "kind": "property", "name": "identity", "serializedName": "identity", "doc": "The managed service identities assigned to this resource.", "type": { - "$id": "519", + "$id": "539", "kind": "model", "name": "ManagedServiceIdentityV4", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -5857,18 +6017,18 @@ ], "properties": [ { - "$id": "520", + "$id": "540", "kind": "property", "name": "principalId", "serializedName": "principalId", "doc": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", "type": { - "$id": "521", + "$id": "541", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "522", + "$id": "542", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5890,18 +6050,18 @@ "isHttpMetadata": false }, { - "$id": "523", + "$id": "543", "kind": "property", "name": "tenantId", "serializedName": "tenantId", "doc": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", "type": { - "$id": "524", + "$id": "544", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "525", + "$id": "545", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5923,7 +6083,7 @@ "isHttpMetadata": false }, { - "$id": "526", + "$id": "546", "kind": "property", "name": "type", "serializedName": "type", @@ -5945,23 +6105,23 @@ "isHttpMetadata": false }, { - "$id": "527", + "$id": "547", "kind": "property", "name": "userAssignedIdentities", "serializedName": "userAssignedIdentities", "doc": "The identities assigned to this resource by the user.", "type": { - "$id": "528", + "$id": "548", "kind": "dict", "keyType": { - "$id": "529", + "$id": "549", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$ref": "394" + "$ref": "414" }, "decorators": [] }, @@ -5996,22 +6156,22 @@ ] }, { - "$ref": "487" + "$ref": "507" }, { - "$ref": "502" + "$ref": "522" }, { - "$ref": "505" + "$ref": "525" }, { - "$ref": "514" + "$ref": "534" }, { - "$ref": "519" + "$ref": "539" }, { - "$id": "530", + "$id": "550", "kind": "model", "name": "FooListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6026,17 +6186,17 @@ ], "properties": [ { - "$id": "531", + "$id": "551", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Foo items on this page", "type": { - "$id": "532", + "$id": "552", "kind": "array", "name": "ArrayFoo", "valueType": { - "$ref": "479" + "$ref": "499" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -6055,18 +6215,18 @@ "isHttpMetadata": false }, { - "$id": "533", + "$id": "553", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "534", + "$id": "554", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "535", + "$id": "555", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -6090,7 +6250,7 @@ ] }, { - "$id": "536", + "$id": "556", "kind": "model", "name": "FooActionRequest", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6104,12 +6264,12 @@ ], "properties": [ { - "$id": "537", + "$id": "557", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "538", + "$id": "558", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6131,7 +6291,7 @@ ] }, { - "$id": "539", + "$id": "559", "kind": "model", "name": "FooActionResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6145,12 +6305,12 @@ ], "properties": [ { - "$id": "540", + "$id": "560", "kind": "property", "name": "msg", "serializedName": "msg", "type": { - "$id": "541", + "$id": "561", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6170,12 +6330,12 @@ "isHttpMetadata": false }, { - "$id": "542", + "$id": "562", "kind": "property", "name": "error", "serializedName": "error", "type": { - "$ref": "304" + "$ref": "324" }, "optional": true, "readOnly": false, @@ -6193,7 +6353,7 @@ ] }, { - "$id": "543", + "$id": "563", "kind": "model", "name": "FooSettings", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6220,7 +6380,7 @@ "resourceType": "MgmtTypeSpec/FooSettings", "methods": [ { - "$id": "544", + "$id": "564", "methodId": "MgmtTypeSpec.FooSettingsOperations.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", @@ -6228,7 +6388,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" }, { - "$id": "545", + "$id": "565", "methodId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", @@ -6236,7 +6396,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" }, { - "$id": "546", + "$id": "566", "methodId": "MgmtTypeSpec.FooSettingsOperations.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", @@ -6244,7 +6404,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" }, { - "$id": "547", + "$id": "567", "methodId": "MgmtTypeSpec.FooSettingsOperations.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", @@ -6259,17 +6419,17 @@ } ], "baseModel": { - "$ref": "347" + "$ref": "367" }, "properties": [ { - "$id": "548", + "$id": "568", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "549", + "$id": "569", "kind": "model", "name": "FooSettingsProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6284,13 +6444,13 @@ ], "properties": [ { - "$id": "550", + "$id": "570", "kind": "property", "name": "marketplace", "serializedName": "marketplace", "doc": "Marketplace details of the resource.", "type": { - "$id": "551", + "$id": "571", "kind": "model", "name": "MarketplaceDetails", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6305,13 +6465,13 @@ ], "properties": [ { - "$id": "552", + "$id": "572", "kind": "property", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "Azure subscription id for the the marketplace offer is purchased from", "type": { - "$id": "553", + "$id": "573", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6331,7 +6491,7 @@ "isHttpMetadata": false }, { - "$id": "554", + "$id": "574", "kind": "property", "name": "subscriptionStatus", "serializedName": "subscriptionStatus", @@ -6353,13 +6513,13 @@ "isHttpMetadata": false }, { - "$id": "555", + "$id": "575", "kind": "property", "name": "offerDetails", "serializedName": "offerDetails", "doc": "Offer details for the marketplace that is selected by the user", "type": { - "$id": "556", + "$id": "576", "kind": "model", "name": "OfferDetails", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6374,13 +6534,13 @@ ], "properties": [ { - "$id": "557", + "$id": "577", "kind": "property", "name": "publisherId", "serializedName": "publisherId", "doc": "Publisher Id for the marketplace offer", "type": { - "$id": "558", + "$id": "578", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6400,13 +6560,13 @@ "isHttpMetadata": false }, { - "$id": "559", + "$id": "579", "kind": "property", "name": "offerId", "serializedName": "offerId", "doc": "Offer Id for the marketplace offer", "type": { - "$id": "560", + "$id": "580", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6426,13 +6586,13 @@ "isHttpMetadata": false }, { - "$id": "561", + "$id": "581", "kind": "property", "name": "planId", "serializedName": "planId", "doc": "Plan Id for the marketplace offer", "type": { - "$id": "562", + "$id": "582", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6452,13 +6612,13 @@ "isHttpMetadata": false }, { - "$id": "563", + "$id": "583", "kind": "property", "name": "planName", "serializedName": "planName", "doc": "Plan Name for the marketplace offer", "type": { - "$id": "564", + "$id": "584", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6478,13 +6638,13 @@ "isHttpMetadata": false }, { - "$id": "565", + "$id": "585", "kind": "property", "name": "termUnit", "serializedName": "termUnit", "doc": "Plan Display Name for the marketplace offer", "type": { - "$id": "566", + "$id": "586", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6504,13 +6664,13 @@ "isHttpMetadata": false }, { - "$id": "567", + "$id": "587", "kind": "property", "name": "termId", "serializedName": "termId", "doc": "Plan Display Name for the marketplace offer", "type": { - "$id": "568", + "$id": "588", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6530,7 +6690,7 @@ "isHttpMetadata": false }, { - "$id": "569", + "$id": "589", "kind": "property", "name": "renewalMode", "serializedName": "renewalMode", @@ -6552,18 +6712,18 @@ "isHttpMetadata": false }, { - "$id": "570", + "$id": "590", "kind": "property", "name": "endDate", "serializedName": "endDate", "doc": "Current subscription end date and time", "type": { - "$id": "571", + "$id": "591", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "572", + "$id": "592", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6616,13 +6776,13 @@ "isHttpMetadata": false }, { - "$id": "573", + "$id": "593", "kind": "property", "name": "user", "serializedName": "user", "doc": "Details of the user.", "type": { - "$id": "574", + "$id": "594", "kind": "model", "name": "UserDetails", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6637,13 +6797,13 @@ ], "properties": [ { - "$id": "575", + "$id": "595", "kind": "property", "name": "firstName", "serializedName": "firstName", "doc": "First name of the user", "type": { - "$id": "576", + "$id": "596", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6663,13 +6823,13 @@ "isHttpMetadata": false }, { - "$id": "577", + "$id": "597", "kind": "property", "name": "lastName", "serializedName": "lastName", "doc": "Last name of the user", "type": { - "$id": "578", + "$id": "598", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6689,18 +6849,18 @@ "isHttpMetadata": false }, { - "$id": "579", + "$id": "599", "kind": "property", "name": "emailAddress", "serializedName": "emailAddress", "doc": "Email address of the user", "type": { - "$id": "580", + "$id": "600", "kind": "string", "name": "email", "crossLanguageDefinitionId": "LiftrBase.email", "baseType": { - "$id": "581", + "$id": "601", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6722,13 +6882,13 @@ "isHttpMetadata": false }, { - "$id": "582", + "$id": "602", "kind": "property", "name": "upn", "serializedName": "upn", "doc": "User's principal name", "type": { - "$id": "583", + "$id": "603", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6748,13 +6908,13 @@ "isHttpMetadata": false }, { - "$id": "584", + "$id": "604", "kind": "property", "name": "phoneNumber", "serializedName": "phoneNumber", "doc": "User's phone number", "type": { - "$id": "585", + "$id": "605", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6789,7 +6949,7 @@ "isHttpMetadata": false }, { - "$id": "586", + "$id": "606", "kind": "property", "name": "provisioningState", "serializedName": "provisioningState", @@ -6811,12 +6971,12 @@ "isHttpMetadata": false }, { - "$id": "587", + "$id": "607", "kind": "property", "name": "accessControlEnabled", "serializedName": "accessControlEnabled", "type": { - "$id": "588", + "$id": "608", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -6836,12 +6996,12 @@ "isHttpMetadata": false }, { - "$id": "589", + "$id": "609", "kind": "property", "name": "metaData", "serializedName": "metaData", "type": { - "$id": "590", + "$id": "610", "kind": "model", "name": "FooSettingsPropertiesMetaData", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6855,12 +7015,12 @@ ], "properties": [ { - "$id": "591", + "$id": "611", "kind": "property", "name": "metaDatas", "serializedName": "metaDatas", "type": { - "$ref": "376" + "$ref": "396" }, "optional": true, "readOnly": false, @@ -6906,13 +7066,13 @@ "isHttpMetadata": false }, { - "$id": "592", + "$id": "612", "kind": "property", "name": "name", "serializedName": "name", "doc": "The default Foo settings.", "type": { - "$id": "593", + "$id": "613", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6934,22 +7094,22 @@ ] }, { - "$ref": "549" + "$ref": "569" }, { - "$ref": "551" + "$ref": "571" }, { - "$ref": "556" + "$ref": "576" }, { - "$ref": "574" + "$ref": "594" }, { - "$ref": "590" + "$ref": "610" }, { - "$id": "594", + "$id": "614", "kind": "model", "name": "FooSettingsUpdate", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6964,13 +7124,13 @@ ], "properties": [ { - "$id": "595", + "$id": "615", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "596", + "$id": "616", "kind": "model", "name": "FooSettingsUpdateProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6985,13 +7145,13 @@ ], "properties": [ { - "$id": "597", + "$id": "617", "kind": "property", "name": "marketplace", "serializedName": "marketplace", "doc": "Marketplace details of the resource.", "type": { - "$ref": "551" + "$ref": "571" }, "optional": true, "readOnly": false, @@ -7007,13 +7167,13 @@ "isHttpMetadata": false }, { - "$id": "598", + "$id": "618", "kind": "property", "name": "user", "serializedName": "user", "doc": "Details of the user.", "type": { - "$ref": "574" + "$ref": "594" }, "optional": true, "readOnly": false, @@ -7029,12 +7189,12 @@ "isHttpMetadata": false }, { - "$id": "599", + "$id": "619", "kind": "property", "name": "accessControlEnabled", "serializedName": "accessControlEnabled", "type": { - "$id": "600", + "$id": "620", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -7071,10 +7231,10 @@ ] }, { - "$ref": "596" + "$ref": "616" }, { - "$id": "601", + "$id": "621", "kind": "model", "name": "Bar", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7101,7 +7261,7 @@ "resourceType": "MgmtTypeSpec/foos/bars", "methods": [ { - "$id": "602", + "$id": "622", "methodId": "MgmtTypeSpec.Bars.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", @@ -7109,7 +7269,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" }, { - "$id": "603", + "$id": "623", "methodId": "MgmtTypeSpec.Bars.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", @@ -7117,7 +7277,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" }, { - "$id": "604", + "$id": "624", "methodId": "MgmtTypeSpec.Bars.list", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars", @@ -7125,7 +7285,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "605", + "$id": "625", "methodId": "MgmtTypeSpec.Bars.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", @@ -7133,7 +7293,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" }, { - "$id": "606", + "$id": "626", "methodId": "MgmtTypeSpec.Bars.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", @@ -7141,7 +7301,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" }, { - "$id": "607", + "$id": "627", "methodId": "MgmtTypeSpec.Employees.listByParent", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/employees", @@ -7156,17 +7316,17 @@ } ], "baseModel": { - "$ref": "464" + "$ref": "484" }, "properties": [ { - "$id": "608", + "$id": "628", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "609", + "$id": "629", "kind": "model", "name": "BarProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7180,13 +7340,13 @@ ], "properties": [ { - "$id": "610", + "$id": "630", "kind": "property", "name": "serviceUrl", "serializedName": "serviceUrl", "doc": "the service url", "type": { - "$id": "611", + "$id": "631", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -7206,13 +7366,13 @@ "isHttpMetadata": false }, { - "$id": "612", + "$id": "632", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "613", + "$id": "633", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7232,13 +7392,13 @@ "isHttpMetadata": false }, { - "$id": "614", + "$id": "634", "kind": "property", "name": "boolValue", "serializedName": "boolValue", "doc": "boolean value", "type": { - "$id": "615", + "$id": "635", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -7258,13 +7418,13 @@ "isHttpMetadata": false }, { - "$id": "616", + "$id": "636", "kind": "property", "name": "floatValue", "serializedName": "floatValue", "doc": "float value", "type": { - "$id": "617", + "$id": "637", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -7284,13 +7444,13 @@ "isHttpMetadata": false }, { - "$id": "618", + "$id": "638", "kind": "property", "name": "doubleValue", "serializedName": "doubleValue", "doc": "double value", "type": { - "$id": "619", + "$id": "639", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -7325,13 +7485,13 @@ "isHttpMetadata": false }, { - "$id": "620", + "$id": "640", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Bar", "type": { - "$id": "621", + "$id": "641", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7353,10 +7513,10 @@ ] }, { - "$ref": "609" + "$ref": "629" }, { - "$id": "622", + "$id": "642", "kind": "model", "name": "BarListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7371,17 +7531,17 @@ ], "properties": [ { - "$id": "623", + "$id": "643", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Bar items on this page", "type": { - "$id": "624", + "$id": "644", "kind": "array", "name": "ArrayBar", "valueType": { - "$ref": "601" + "$ref": "621" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -7400,18 +7560,18 @@ "isHttpMetadata": false }, { - "$id": "625", + "$id": "645", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "626", + "$id": "646", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "627", + "$id": "647", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -7435,7 +7595,7 @@ ] }, { - "$id": "628", + "$id": "648", "kind": "model", "name": "BarSettingsResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7468,7 +7628,7 @@ "resourceType": "MgmtTypeSpec/foos/bars/settings", "methods": [ { - "$id": "629", + "$id": "649", "methodId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current", @@ -7476,7 +7636,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current" }, { - "$id": "630", + "$id": "650", "methodId": "MgmtTypeSpec.BarSettingsOperations.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current", @@ -7492,17 +7652,17 @@ } ], "baseModel": { - "$ref": "347" + "$ref": "367" }, "properties": [ { - "$id": "631", + "$id": "651", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "632", + "$id": "652", "kind": "model", "name": "BarSettingsProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7516,13 +7676,13 @@ ], "properties": [ { - "$id": "633", + "$id": "653", "kind": "property", "name": "isEnabled", "serializedName": "isEnabled", "doc": "enabled", "type": { - "$id": "634", + "$id": "654", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -7557,13 +7717,13 @@ "isHttpMetadata": false }, { - "$id": "635", + "$id": "655", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the BarSettingsResource", "type": { - "$id": "636", + "$id": "656", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7583,12 +7743,12 @@ "isHttpMetadata": true }, { - "$id": "637", + "$id": "657", "kind": "property", "name": "stringArray", "serializedName": "stringArray", "type": { - "$ref": "376" + "$ref": "396" }, "optional": true, "readOnly": false, @@ -7604,12 +7764,12 @@ "isHttpMetadata": false }, { - "$id": "638", + "$id": "658", "kind": "property", "name": "property", "serializedName": "property", "type": { - "$id": "639", + "$id": "659", "kind": "model", "name": "BarQuotaProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7623,13 +7783,13 @@ ], "properties": [ { - "$id": "640", + "$id": "660", "kind": "property", "name": "left", "serializedName": "left", "doc": "enabled", "type": { - "$id": "641", + "$id": "661", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -7664,12 +7824,12 @@ "isHttpMetadata": false }, { - "$id": "642", + "$id": "662", "kind": "property", "name": "anotherProperty", "serializedName": "anotherProperty", "type": { - "$ref": "639" + "$ref": "659" }, "optional": false, "readOnly": false, @@ -7685,12 +7845,12 @@ "isHttpMetadata": false }, { - "$id": "643", + "$id": "663", "kind": "property", "name": "flattenedNestedProperty", "serializedName": "flattenedNestedProperty", "type": { - "$id": "644", + "$id": "664", "kind": "model", "name": "BarNestedQuotaProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7703,7 +7863,7 @@ } ], "baseModel": { - "$id": "645", + "$id": "665", "kind": "model", "name": "BarMiddleNestedQuotaProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7716,7 +7876,7 @@ } ], "baseModel": { - "$id": "646", + "$id": "666", "kind": "model", "name": "BarDeeplyNestedQuotaProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7730,12 +7890,12 @@ ], "properties": [ { - "$id": "647", + "$id": "667", "kind": "property", "name": "innerProp1", "serializedName": "innerProp1", "type": { - "$id": "648", + "$id": "668", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -7755,12 +7915,12 @@ "isHttpMetadata": false }, { - "$id": "649", + "$id": "669", "kind": "property", "name": "innerProp2", "serializedName": "innerProp2", "type": { - "$id": "650", + "$id": "670", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7783,12 +7943,12 @@ }, "properties": [ { - "$id": "651", + "$id": "671", "kind": "property", "name": "middleProp1", "serializedName": "middleProp1", "type": { - "$id": "652", + "$id": "672", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -7808,12 +7968,12 @@ "isHttpMetadata": false }, { - "$id": "653", + "$id": "673", "kind": "property", "name": "middleProp2", "serializedName": "middleProp2", "type": { - "$ref": "466" + "$ref": "486" }, "optional": false, "readOnly": false, @@ -7832,12 +7992,12 @@ }, "properties": [ { - "$id": "654", + "$id": "674", "kind": "property", "name": "prop1", "serializedName": "prop1", "type": { - "$ref": "376" + "$ref": "396" }, "optional": false, "readOnly": false, @@ -7853,12 +8013,12 @@ "isHttpMetadata": false }, { - "$id": "655", + "$id": "675", "kind": "property", "name": "prop2", "serializedName": "prop2", "type": { - "$id": "656", + "$id": "676", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -7898,12 +8058,12 @@ "isHttpMetadata": false }, { - "$id": "657", + "$id": "677", "kind": "property", "name": "optionalFlattenProperty", "serializedName": "optionalFlattenProperty", "type": { - "$id": "658", + "$id": "678", "kind": "model", "name": "optionalFlattenPropertyType", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7917,12 +8077,12 @@ ], "properties": [ { - "$id": "659", + "$id": "679", "kind": "property", "name": "randomCollectionProp", "serializedName": "randomCollectionProp", "type": { - "$ref": "376" + "$ref": "396" }, "optional": false, "readOnly": false, @@ -7953,12 +8113,12 @@ "isHttpMetadata": false }, { - "$id": "660", + "$id": "680", "kind": "property", "name": "discriminatorProperty", "serializedName": "discriminatorProperty", "type": { - "$id": "661", + "$id": "681", "kind": "model", "name": "LimitJsonObject", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7972,7 +8132,7 @@ } ], "discriminatorProperty": { - "$id": "662", + "$id": "682", "kind": "property", "name": "limitObjectType", "serializedName": "limitObjectType", @@ -7995,7 +8155,7 @@ }, "properties": [ { - "$ref": "662" + "$ref": "682" } ] }, @@ -8015,28 +8175,28 @@ ] }, { - "$ref": "632" + "$ref": "652" }, { - "$ref": "639" + "$ref": "659" }, { - "$ref": "644" + "$ref": "664" }, { - "$ref": "645" + "$ref": "665" }, { - "$ref": "646" + "$ref": "666" }, { - "$ref": "658" + "$ref": "678" }, { - "$ref": "661" + "$ref": "681" }, { - "$id": "663", + "$id": "683", "kind": "model", "name": "BarQuotaResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8063,7 +8223,7 @@ "resourceType": "MgmtTypeSpec/foos/bars/quotas", "methods": [ { - "$id": "664", + "$id": "684", "methodId": "MgmtTypeSpec.BarQuotaOperations.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/quotas/{barQuotaResourceName}", @@ -8071,7 +8231,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/quotas/{barQuotaResourceName}" }, { - "$id": "665", + "$id": "685", "methodId": "MgmtTypeSpec.BarQuotaOperations.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/quotas/{barQuotaResourceName}", @@ -8086,17 +8246,17 @@ } ], "baseModel": { - "$ref": "347" + "$ref": "367" }, "properties": [ { - "$id": "666", + "$id": "686", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$ref": "639" + "$ref": "659" }, "optional": true, "readOnly": false, @@ -8112,7 +8272,7 @@ "isHttpMetadata": false }, { - "$id": "667", + "$id": "687", "kind": "property", "name": "name", "serializedName": "name", @@ -8136,7 +8296,7 @@ ] }, { - "$id": "668", + "$id": "688", "kind": "model", "name": "EmployeeListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8151,17 +8311,17 @@ ], "properties": [ { - "$id": "669", + "$id": "689", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Employee items on this page", "type": { - "$id": "670", + "$id": "690", "kind": "array", "name": "ArrayEmployee", "valueType": { - "$id": "671", + "$id": "691", "kind": "model", "name": "Employee", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8183,17 +8343,17 @@ } ], "baseModel": { - "$ref": "464" + "$ref": "484" }, "properties": [ { - "$id": "672", + "$id": "692", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "673", + "$id": "693", "kind": "model", "name": "EmployeeProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8208,13 +8368,13 @@ ], "properties": [ { - "$id": "674", + "$id": "694", "kind": "property", "name": "age", "serializedName": "age", "doc": "Age of employee", "type": { - "$id": "675", + "$id": "695", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -8234,13 +8394,13 @@ "isHttpMetadata": false }, { - "$id": "676", + "$id": "696", "kind": "property", "name": "city", "serializedName": "city", "doc": "City of employee", "type": { - "$id": "677", + "$id": "697", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8275,13 +8435,13 @@ "isHttpMetadata": false }, { - "$id": "678", + "$id": "698", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Employee", "type": { - "$id": "679", + "$id": "699", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8319,18 +8479,18 @@ "isHttpMetadata": false }, { - "$id": "680", + "$id": "700", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "681", + "$id": "701", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "682", + "$id": "702", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -8354,13 +8514,13 @@ ] }, { - "$ref": "671" + "$ref": "691" }, { - "$ref": "673" + "$ref": "693" }, { - "$id": "683", + "$id": "703", "kind": "model", "name": "Baz", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8383,7 +8543,7 @@ "resourceType": "MgmtTypeSpec/bazs", "methods": [ { - "$id": "684", + "$id": "704", "methodId": "MgmtTypeSpec.Bazs.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}", @@ -8391,7 +8551,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}" }, { - "$id": "685", + "$id": "705", "methodId": "MgmtTypeSpec.Bazs.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}", @@ -8399,7 +8559,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}" }, { - "$id": "686", + "$id": "706", "methodId": "MgmtTypeSpec.Bazs.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}", @@ -8407,7 +8567,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}" }, { - "$id": "687", + "$id": "707", "methodId": "MgmtTypeSpec.Bazs.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}", @@ -8415,14 +8575,14 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}" }, { - "$id": "688", + "$id": "708", "methodId": "MgmtTypeSpec.Bazs.list", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs", "operationScope": "ResourceGroup" }, { - "$id": "689", + "$id": "709", "methodId": "MgmtTypeSpec.Bazs.listBySubscription", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/bazs", @@ -8435,17 +8595,17 @@ } ], "baseModel": { - "$ref": "348" + "$ref": "368" }, "properties": [ { - "$id": "690", + "$id": "710", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The RP-specific properties for this resource.", "type": { - "$id": "691", + "$id": "711", "kind": "model", "name": "BazProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8459,13 +8619,13 @@ ], "properties": [ { - "$id": "692", + "$id": "712", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "693", + "$id": "713", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8485,13 +8645,13 @@ "isHttpMetadata": false }, { - "$id": "694", + "$id": "714", "kind": "property", "name": "boolValue", "serializedName": "boolValue", "doc": "boolean value", "type": { - "$id": "695", + "$id": "715", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -8526,13 +8686,13 @@ "isHttpMetadata": false }, { - "$id": "696", + "$id": "716", "kind": "property", "name": "tags", "serializedName": "tags", "doc": "Resource tags.", "type": { - "$ref": "466" + "$ref": "486" }, "optional": true, "readOnly": false, @@ -8548,13 +8708,13 @@ "isHttpMetadata": false }, { - "$id": "697", + "$id": "717", "kind": "property", "name": "location", "serializedName": "location", "doc": "The geo-location where the resource lives", "type": { - "$id": "698", + "$id": "718", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8574,13 +8734,13 @@ "isHttpMetadata": false }, { - "$id": "699", + "$id": "719", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Baz", "type": { - "$id": "700", + "$id": "720", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8602,10 +8762,10 @@ ] }, { - "$ref": "691" + "$ref": "711" }, { - "$id": "701", + "$id": "721", "kind": "model", "name": "BazListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8620,17 +8780,17 @@ ], "properties": [ { - "$id": "702", + "$id": "722", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Baz items on this page", "type": { - "$id": "703", + "$id": "723", "kind": "array", "name": "ArrayBaz", "valueType": { - "$ref": "683" + "$ref": "703" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -8649,18 +8809,18 @@ "isHttpMetadata": false }, { - "$id": "704", + "$id": "724", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "705", + "$id": "725", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "706", + "$id": "726", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -8684,7 +8844,7 @@ ] }, { - "$id": "707", + "$id": "727", "kind": "model", "name": "Zoo", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8707,7 +8867,7 @@ "resourceType": "MgmtTypeSpec/zoos", "methods": [ { - "$id": "708", + "$id": "728", "methodId": "MgmtTypeSpec.Zoos.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -8715,7 +8875,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "709", + "$id": "729", "methodId": "MgmtTypeSpec.Zoos.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -8723,7 +8883,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "710", + "$id": "730", "methodId": "MgmtTypeSpec.Zoos.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -8731,7 +8891,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "711", + "$id": "731", "methodId": "MgmtTypeSpec.Zoos.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -8739,21 +8899,21 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "712", + "$id": "732", "methodId": "MgmtTypeSpec.Zoos.list", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos", "operationScope": "ResourceGroup" }, { - "$id": "713", + "$id": "733", "methodId": "MgmtTypeSpec.Zoos.listBySubscription", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/zoos", "operationScope": "Subscription" }, { - "$id": "714", + "$id": "734", "methodId": "MgmtTypeSpec.Zoos.zooAddressList", "kind": "Action", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}/zooAddressList", @@ -8761,7 +8921,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "715", + "$id": "735", "methodId": "MgmtTypeSpec.Zoos.recommend", "kind": "Action", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}/recommend", @@ -8775,17 +8935,17 @@ } ], "baseModel": { - "$ref": "464" + "$ref": "484" }, "properties": [ { - "$id": "716", + "$id": "736", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "717", + "$id": "737", "kind": "model", "name": "ZooProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8805,13 +8965,13 @@ ], "properties": [ { - "$id": "718", + "$id": "738", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "719", + "$id": "739", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8846,13 +9006,13 @@ "isHttpMetadata": false }, { - "$id": "720", + "$id": "740", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Zoo", "type": { - "$id": "721", + "$id": "741", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8872,12 +9032,12 @@ "isHttpMetadata": true }, { - "$id": "722", + "$id": "742", "kind": "property", "name": "extendedLocation", "serializedName": "extendedLocation", "type": { - "$ref": "514" + "$ref": "534" }, "optional": true, "readOnly": false, @@ -8895,10 +9055,10 @@ ] }, { - "$ref": "717" + "$ref": "737" }, { - "$id": "723", + "$id": "743", "kind": "model", "name": "ZooUpdate", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8913,13 +9073,13 @@ ], "properties": [ { - "$id": "724", + "$id": "744", "kind": "property", "name": "tags", "serializedName": "tags", "doc": "Resource tags.", "type": { - "$ref": "466" + "$ref": "486" }, "optional": true, "readOnly": false, @@ -8935,13 +9095,13 @@ "isHttpMetadata": false }, { - "$id": "725", + "$id": "745", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "726", + "$id": "746", "kind": "model", "name": "ZooUpdateProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8956,13 +9116,13 @@ ], "properties": [ { - "$id": "727", + "$id": "747", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "728", + "$id": "748", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8999,10 +9159,10 @@ ] }, { - "$ref": "726" + "$ref": "746" }, { - "$id": "729", + "$id": "749", "kind": "model", "name": "ZooListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9017,17 +9177,17 @@ ], "properties": [ { - "$id": "730", + "$id": "750", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Zoo items on this page", "type": { - "$id": "731", + "$id": "751", "kind": "array", "name": "ArrayZoo", "valueType": { - "$ref": "707" + "$ref": "727" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -9046,18 +9206,18 @@ "isHttpMetadata": false }, { - "$id": "732", + "$id": "752", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "733", + "$id": "753", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "734", + "$id": "754", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -9081,7 +9241,7 @@ ] }, { - "$id": "735", + "$id": "755", "kind": "model", "name": "ZooAddressListListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9096,17 +9256,17 @@ ], "properties": [ { - "$id": "736", + "$id": "756", "kind": "property", "name": "value", "serializedName": "value", "doc": "The ZooAddress items on this page", "type": { - "$id": "737", + "$id": "757", "kind": "array", "name": "ArraySubResource", "valueType": { - "$ref": "453" + "$ref": "473" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -9125,18 +9285,18 @@ "isHttpMetadata": false }, { - "$id": "738", + "$id": "758", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "739", + "$id": "759", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "740", + "$id": "760", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -9160,7 +9320,7 @@ ] }, { - "$id": "741", + "$id": "761", "kind": "model", "name": "EndpointResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9183,7 +9343,7 @@ "resourceType": "MgmtTypeSpec/endpoints", "methods": [ { - "$id": "742", + "$id": "762", "methodId": "MgmtTypeSpec.EndpointResources.get", "kind": "Get", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}", @@ -9191,7 +9351,7 @@ "resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}" }, { - "$id": "743", + "$id": "763", "methodId": "MgmtTypeSpec.EndpointResources.createOrUpdate", "kind": "Create", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}", @@ -9199,7 +9359,7 @@ "resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}" }, { - "$id": "744", + "$id": "764", "methodId": "MgmtTypeSpec.EndpointResources.update", "kind": "Update", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}", @@ -9207,7 +9367,7 @@ "resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}" }, { - "$id": "745", + "$id": "765", "methodId": "MgmtTypeSpec.EndpointResources.delete", "kind": "Delete", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}", @@ -9215,7 +9375,7 @@ "resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}" }, { - "$id": "746", + "$id": "766", "methodId": "MgmtTypeSpec.EndpointResources.list", "kind": "List", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints", @@ -9228,7 +9388,7 @@ } ], "baseModel": { - "$id": "747", + "$id": "767", "kind": "model", "name": "ExtensionResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9242,19 +9402,19 @@ } ], "baseModel": { - "$ref": "348" + "$ref": "368" }, "properties": [] }, "properties": [ { - "$id": "748", + "$id": "768", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "749", + "$id": "769", "kind": "model", "name": "EndpointProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9268,12 +9428,12 @@ ], "properties": [ { - "$id": "750", + "$id": "770", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "751", + "$id": "771", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9308,13 +9468,13 @@ "isHttpMetadata": false }, { - "$id": "752", + "$id": "772", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the EndpointResource", "type": { - "$id": "753", + "$id": "773", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9336,13 +9496,13 @@ ] }, { - "$ref": "749" + "$ref": "769" }, { - "$ref": "747" + "$ref": "767" }, { - "$id": "754", + "$id": "774", "kind": "model", "name": "EndpointResourceListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9357,17 +9517,17 @@ ], "properties": [ { - "$id": "755", + "$id": "775", "kind": "property", "name": "value", "serializedName": "value", "doc": "The EndpointResource items on this page", "type": { - "$id": "756", + "$id": "776", "kind": "array", "name": "ArrayEndpointResource", "valueType": { - "$ref": "741" + "$ref": "761" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -9386,18 +9546,18 @@ "isHttpMetadata": false }, { - "$id": "757", + "$id": "777", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "758", + "$id": "778", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "759", + "$id": "779", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -9421,7 +9581,7 @@ ] }, { - "$id": "760", + "$id": "780", "kind": "model", "name": "SelfHelpResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9444,7 +9604,7 @@ "resourceType": "MgmtTypeSpec/selfHelps", "methods": [ { - "$id": "761", + "$id": "781", "methodId": "MgmtTypeSpec.SolutionResources.get", "kind": "Get", "operationPath": "/{scope}/providers/MgmtTypeSpec/selfHelps/{selfHelpName}", @@ -9458,17 +9618,17 @@ } ], "baseModel": { - "$ref": "747" + "$ref": "767" }, "properties": [ { - "$id": "762", + "$id": "782", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "763", + "$id": "783", "kind": "model", "name": "SelfHelpResourceProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9482,12 +9642,12 @@ ], "properties": [ { - "$id": "764", + "$id": "784", "kind": "property", "name": "selfHelpId", "serializedName": "selfHelpId", "type": { - "$id": "765", + "$id": "785", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9522,13 +9682,13 @@ "isHttpMetadata": false }, { - "$id": "766", + "$id": "786", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the SelfHelpResource", "type": { - "$id": "767", + "$id": "787", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9550,10 +9710,10 @@ ] }, { - "$ref": "763" + "$ref": "783" }, { - "$id": "768", + "$id": "788", "kind": "model", "name": "PlaywrightQuota", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9580,7 +9740,7 @@ "resourceType": "MgmtTypeSpec/locations/playwrightQuotas", "methods": [ { - "$id": "769", + "$id": "789", "methodId": "MgmtTypeSpec.PlaywrightQuotas.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}", @@ -9588,14 +9748,14 @@ "resourceScope": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}" }, { - "$id": "770", + "$id": "790", "methodId": "MgmtTypeSpec.PlaywrightQuotas.listBySubscription", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas", "operationScope": "Subscription" }, { - "$id": "771", + "$id": "791", "methodId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}", @@ -9609,17 +9769,17 @@ } ], "baseModel": { - "$ref": "347" + "$ref": "367" }, "properties": [ { - "$id": "772", + "$id": "792", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "773", + "$id": "793", "kind": "model", "name": "PlaywrightQuotaProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9634,13 +9794,13 @@ ], "properties": [ { - "$id": "774", + "$id": "794", "kind": "property", "name": "freeTrial", "serializedName": "freeTrial", "doc": "The subscription-level location-based Playwright quota resource free-trial properties.", "type": { - "$id": "775", + "$id": "795", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9660,13 +9820,13 @@ "isHttpMetadata": false }, { - "$id": "776", + "$id": "796", "kind": "property", "name": "provisioningState", "serializedName": "provisioningState", "doc": "The status of the last resource operation.", "type": { - "$id": "777", + "$id": "797", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9701,7 +9861,7 @@ "isHttpMetadata": false }, { - "$id": "778", + "$id": "798", "kind": "property", "name": "name", "serializedName": "name", @@ -9725,10 +9885,10 @@ ] }, { - "$ref": "773" + "$ref": "793" }, { - "$id": "779", + "$id": "799", "kind": "model", "name": "PlaywrightQuotaListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9743,17 +9903,17 @@ ], "properties": [ { - "$id": "780", + "$id": "800", "kind": "property", "name": "value", "serializedName": "value", "doc": "The PlaywrightQuota items on this page", "type": { - "$id": "781", + "$id": "801", "kind": "array", "name": "ArrayPlaywrightQuota", "valueType": { - "$ref": "768" + "$ref": "788" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -9772,18 +9932,18 @@ "isHttpMetadata": false }, { - "$id": "782", + "$id": "802", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "783", + "$id": "803", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "784", + "$id": "804", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -9807,7 +9967,7 @@ ] }, { - "$id": "785", + "$id": "805", "kind": "model", "name": "JobResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9830,7 +9990,7 @@ "resourceType": "MgmtTypeSpec/jobs", "methods": [ { - "$id": "786", + "$id": "806", "methodId": "MgmtTypeSpec.JobResources.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}", @@ -9838,7 +9998,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}" }, { - "$id": "787", + "$id": "807", "methodId": "MgmtTypeSpec.JobResources.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}", @@ -9852,17 +10012,17 @@ } ], "baseModel": { - "$ref": "464" + "$ref": "484" }, "properties": [ { - "$id": "788", + "$id": "808", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "789", + "$id": "809", "kind": "model", "name": "JobProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9876,12 +10036,12 @@ ], "properties": [ { - "$id": "790", + "$id": "810", "kind": "property", "name": "jobName", "serializedName": "jobName", "type": { - "$id": "791", + "$id": "811", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9916,13 +10076,13 @@ "isHttpMetadata": false }, { - "$id": "792", + "$id": "812", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the JobResource", "type": { - "$id": "793", + "$id": "813", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9944,10 +10104,10 @@ ] }, { - "$ref": "789" + "$ref": "809" }, { - "$id": "794", + "$id": "814", "kind": "model", "name": "JobResourceUpdateParameter", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9961,12 +10121,12 @@ ], "properties": [ { - "$id": "795", + "$id": "815", "kind": "property", "name": "properties", "serializedName": "properties", "type": { - "$ref": "789" + "$ref": "809" }, "optional": true, "readOnly": false, @@ -9982,12 +10142,12 @@ "isHttpMetadata": false }, { - "$id": "796", + "$id": "816", "kind": "property", "name": "tags", "serializedName": "tags", "type": { - "$ref": "466" + "$ref": "486" }, "optional": true, "readOnly": false, @@ -10005,7 +10165,7 @@ ] }, { - "$id": "797", + "$id": "817", "kind": "model", "name": "HciVmInstance", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10034,7 +10194,7 @@ "resourceType": "MgmtTypeSpec/virtualMachineInstances", "methods": [ { - "$id": "798", + "$id": "818", "methodId": "MgmtTypeSpec.HciVmInstances.get", "kind": "Get", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/virtualMachineInstances/default", @@ -10049,17 +10209,17 @@ } ], "baseModel": { - "$ref": "747" + "$ref": "767" }, "properties": [ { - "$id": "799", + "$id": "819", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "800", + "$id": "820", "kind": "model", "name": "HciVmInstanceProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10073,12 +10233,12 @@ ], "properties": [ { - "$id": "801", + "$id": "821", "kind": "property", "name": "sku", "serializedName": "sku", "type": { - "$id": "802", + "$id": "822", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10113,13 +10273,13 @@ "isHttpMetadata": false }, { - "$id": "803", + "$id": "823", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the HciVmInstance", "type": { - "$id": "804", + "$id": "824", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10141,10 +10301,10 @@ ] }, { - "$ref": "800" + "$ref": "820" }, { - "$id": "805", + "$id": "825", "kind": "model", "name": "GroupQuotaSubscriptionRequestStatus", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10167,7 +10327,7 @@ "resourceType": "MgmtTypeSpec/quotas", "methods": [ { - "$id": "806", + "$id": "826", "methodId": "MgmtTypeSpec.GroupQuotaSubscriptionRequestStatuses.get", "kind": "Get", "operationPath": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/MgmtTypeSpec/quotas/{requestId}", @@ -10181,17 +10341,17 @@ } ], "baseModel": { - "$ref": "347" + "$ref": "367" }, "properties": [ { - "$id": "807", + "$id": "827", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "808", + "$id": "828", "kind": "model", "name": "GroupQuotaLimitProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10204,7 +10364,7 @@ } ], "baseModel": { - "$id": "809", + "$id": "829", "kind": "model", "name": "GroupQuotaDetails", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10219,13 +10379,13 @@ ], "properties": [ { - "$id": "810", + "$id": "830", "kind": "property", "name": "resourceName", "serializedName": "resourceName", "doc": "The resource name, such as SKU name.", "type": { - "$id": "811", + "$id": "831", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10245,13 +10405,13 @@ "isHttpMetadata": false }, { - "$id": "812", + "$id": "832", "kind": "property", "name": "limit", "serializedName": "limit", "doc": "The current Group Quota Limit at the parentId level.", "type": { - "$id": "813", + "$id": "833", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -10271,13 +10431,13 @@ "isHttpMetadata": false }, { - "$id": "814", + "$id": "834", "kind": "property", "name": "comment", "serializedName": "comment", "doc": "Any comment related to quota request.", "type": { - "$id": "815", + "$id": "835", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10297,13 +10457,13 @@ "isHttpMetadata": false }, { - "$id": "816", + "$id": "836", "kind": "property", "name": "unit", "serializedName": "unit", "doc": "The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.", "type": { - "$id": "817", + "$id": "837", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10323,13 +10483,13 @@ "isHttpMetadata": false }, { - "$id": "818", + "$id": "838", "kind": "property", "name": "availableLimit", "serializedName": "availableLimit", "doc": "The available Group Quota Limit at the MG level. This Group quota can be allocated to subscription(s).", "type": { - "$id": "819", + "$id": "839", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -10349,13 +10509,13 @@ "isHttpMetadata": false }, { - "$id": "820", + "$id": "840", "kind": "property", "name": "allocatedToSubscriptions", "serializedName": "allocatedToSubscriptions", "doc": "Quota allocated to subscriptions", "type": { - "$id": "821", + "$id": "841", "kind": "model", "name": "AllocatedQuotaToSubscriptionList", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10370,17 +10530,17 @@ ], "properties": [ { - "$id": "822", + "$id": "842", "kind": "property", "name": "value", "serializedName": "value", "doc": "List of Group Quota Limit allocated to subscriptions.", "type": { - "$id": "823", + "$id": "843", "kind": "array", "name": "ArrayAllocatedToSubscription", "valueType": { - "$id": "824", + "$id": "844", "kind": "model", "name": "AllocatedToSubscription", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10395,13 +10555,13 @@ ], "properties": [ { - "$id": "825", + "$id": "845", "kind": "property", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "An Azure subscriptionId.", "type": { - "$id": "826", + "$id": "846", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10421,13 +10581,13 @@ "isHttpMetadata": false }, { - "$id": "827", + "$id": "847", "kind": "property", "name": "quotaAllocated", "serializedName": "quotaAllocated", "doc": "The amount of quota allocated to this subscriptionId from the GroupQuotasEntity.", "type": { - "$id": "828", + "$id": "848", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -10497,13 +10657,13 @@ "isHttpMetadata": false }, { - "$id": "829", + "$id": "849", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the GroupQuotaSubscriptionRequestStatus", "type": { - "$id": "830", + "$id": "850", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10525,19 +10685,19 @@ ] }, { - "$ref": "808" + "$ref": "828" }, { - "$ref": "809" + "$ref": "829" }, { - "$ref": "821" + "$ref": "841" }, { - "$ref": "824" + "$ref": "844" }, { - "$id": "831", + "$id": "851", "kind": "model", "name": "GroupQuotaLimitList", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10560,7 +10720,7 @@ "resourceType": "Microsoft.Management/managementGroups/groupQuotas/resourceProviders/groupQuotaLimits", "methods": [ { - "$id": "832", + "$id": "852", "methodId": "MgmtTypeSpec.GroupQuotaLimitLists.list", "kind": "Get", "operationPath": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location}", @@ -10568,7 +10728,7 @@ "resourceScope": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location}" }, { - "$id": "833", + "$id": "853", "methodId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate", "kind": "Create", "operationPath": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location}", @@ -10576,7 +10736,7 @@ "resourceScope": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location}" }, { - "$id": "834", + "$id": "854", "methodId": "MgmtTypeSpec.GroupQuotaLimitLists.update", "kind": "Update", "operationPath": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location}", @@ -10590,17 +10750,17 @@ } ], "baseModel": { - "$ref": "347" + "$ref": "367" }, "properties": [ { - "$id": "835", + "$id": "855", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "836", + "$id": "856", "kind": "model", "name": "GroupQuotaLimitListProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10614,13 +10774,13 @@ ], "properties": [ { - "$id": "837", + "$id": "857", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The URL to use for getting the next set of results.", "type": { - "$id": "838", + "$id": "858", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10655,13 +10815,13 @@ "isHttpMetadata": false }, { - "$id": "839", + "$id": "859", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the GroupQuotaLimitList", "type": { - "$id": "840", + "$id": "860", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10683,10 +10843,10 @@ ] }, { - "$ref": "836" + "$ref": "856" }, { - "$id": "841", + "$id": "861", "kind": "model", "name": "GroupQuotaListPatch", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10700,12 +10860,12 @@ ], "properties": [ { - "$id": "842", + "$id": "862", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "843", + "$id": "863", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10727,7 +10887,7 @@ ] }, { - "$id": "844", + "$id": "864", "kind": "model", "name": "SubscriptionQuotaAllocationsList", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10750,7 +10910,7 @@ "resourceType": "MgmtTypeSpec/groupQuotas/resourceProviders/quotaAllocations", "methods": [ { - "$id": "845", + "$id": "865", "methodId": "MgmtTypeSpec.SubscriptionQuotaAllocationsLists.get", "kind": "Get", "operationPath": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location}", @@ -10764,17 +10924,17 @@ } ], "baseModel": { - "$ref": "747" + "$ref": "767" }, "properties": [ { - "$id": "846", + "$id": "866", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "847", + "$id": "867", "kind": "model", "name": "SubscriptionQuotaAllocationsListProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10788,13 +10948,13 @@ ], "properties": [ { - "$id": "848", + "$id": "868", "kind": "property", "name": "value", "serializedName": "value", "doc": "Subscription quota list.", "type": { - "$ref": "376" + "$ref": "396" }, "optional": true, "readOnly": false, @@ -10810,13 +10970,13 @@ "isHttpMetadata": false }, { - "$id": "849", + "$id": "869", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The URL to use for getting the next set of results.", "type": { - "$id": "850", + "$id": "870", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10851,13 +11011,13 @@ "isHttpMetadata": false }, { - "$id": "851", + "$id": "871", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the SubscriptionQuotaAllocationsList", "type": { - "$id": "852", + "$id": "872", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10879,10 +11039,10 @@ ] }, { - "$ref": "847" + "$ref": "867" }, { - "$id": "853", + "$id": "873", "kind": "model", "name": "QueryNetworkSiblingSetRequest", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10897,13 +11057,13 @@ ], "properties": [ { - "$id": "854", + "$id": "874", "kind": "property", "name": "location", "serializedName": "location", "doc": "Location to query", "type": { - "$id": "855", + "$id": "875", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10923,13 +11083,13 @@ "isHttpMetadata": false }, { - "$id": "856", + "$id": "876", "kind": "property", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "Subscription ID to query", "type": { - "$id": "857", + "$id": "877", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10951,7 +11111,7 @@ ] }, { - "$id": "858", + "$id": "878", "kind": "model", "name": "NetworkSiblingSet", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10966,13 +11126,13 @@ ], "properties": [ { - "$id": "859", + "$id": "879", "kind": "property", "name": "id", "serializedName": "id", "doc": "Unique identifier for the sibling set", "type": { - "$id": "860", + "$id": "880", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10992,13 +11152,13 @@ "isHttpMetadata": false }, { - "$id": "861", + "$id": "881", "kind": "property", "name": "name", "serializedName": "name", "doc": "Name of the sibling set", "type": { - "$id": "862", + "$id": "882", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11018,13 +11178,13 @@ "isHttpMetadata": false }, { - "$id": "863", + "$id": "883", "kind": "property", "name": "type", "serializedName": "type", "doc": "Type of the resource", "type": { - "$id": "864", + "$id": "884", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11044,13 +11204,13 @@ "isHttpMetadata": false }, { - "$id": "865", + "$id": "885", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "Properties of the network sibling set", "type": { - "$id": "866", + "$id": "886", "kind": "model", "name": "NetworkSiblingSetProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -11065,17 +11225,17 @@ ], "properties": [ { - "$id": "867", + "$id": "887", "kind": "property", "name": "siblings", "serializedName": "siblings", "doc": "List of network siblings", "type": { - "$id": "868", + "$id": "888", "kind": "array", "name": "ArrayNetworkSibling", "valueType": { - "$id": "869", + "$id": "889", "kind": "model", "name": "NetworkSibling", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -11090,13 +11250,13 @@ ], "properties": [ { - "$id": "870", + "$id": "890", "kind": "property", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "Subscription ID", "type": { - "$id": "871", + "$id": "891", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11116,13 +11276,13 @@ "isHttpMetadata": false }, { - "$id": "872", + "$id": "892", "kind": "property", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "Resource group name", "type": { - "$id": "873", + "$id": "893", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11142,13 +11302,13 @@ "isHttpMetadata": false }, { - "$id": "874", + "$id": "894", "kind": "property", "name": "networkInterfaceId", "serializedName": "networkInterfaceId", "doc": "Network interface ID", "type": { - "$id": "875", + "$id": "895", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11186,13 +11346,13 @@ "isHttpMetadata": false }, { - "$id": "876", + "$id": "896", "kind": "property", "name": "status", "serializedName": "status", "doc": "Status of the query", "type": { - "$id": "877", + "$id": "897", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11229,13 +11389,13 @@ ] }, { - "$ref": "866" + "$ref": "886" }, { - "$ref": "869" + "$ref": "889" }, { - "$id": "878", + "$id": "898", "kind": "model", "name": "Joo", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -11258,7 +11418,7 @@ "resourceType": "MgmtTypeSpec/joos", "methods": [ { - "$id": "879", + "$id": "899", "methodId": "MgmtTypeSpec.Joos.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/joos/{jooName}", @@ -11266,7 +11426,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/joos/{jooName}" }, { - "$id": "880", + "$id": "900", "methodId": "MgmtTypeSpec.Joos.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/joos/{jooName}", @@ -11274,7 +11434,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/joos/{jooName}" }, { - "$id": "881", + "$id": "901", "methodId": "MgmtTypeSpec.Joos.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/joos/{jooName}", @@ -11288,17 +11448,17 @@ } ], "baseModel": { - "$ref": "464" + "$ref": "484" }, "properties": [ { - "$id": "882", + "$id": "902", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "883", + "$id": "903", "kind": "model", "name": "JooProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -11312,12 +11472,12 @@ ], "properties": [ { - "$id": "884", + "$id": "904", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "885", + "$id": "905", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11352,13 +11512,13 @@ "isHttpMetadata": false }, { - "$id": "886", + "$id": "906", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Joo", "type": { - "$id": "887", + "$id": "907", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11380,10 +11540,10 @@ ] }, { - "$ref": "883" + "$ref": "903" }, { - "$id": "888", + "$id": "908", "kind": "model", "name": "SAPVirtualInstance", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -11406,7 +11566,7 @@ "resourceType": "MgmtTypeSpec/sapVirtualInstances", "methods": [ { - "$id": "889", + "$id": "909", "methodId": "MgmtTypeSpec.SAPVirtualInstances.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/sapVirtualInstances/{sapVirtualInstanceName}", @@ -11414,7 +11574,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/sapVirtualInstances/{sapVirtualInstanceName}" }, { - "$id": "890", + "$id": "910", "methodId": "MgmtTypeSpec.SAPVirtualInstances.create", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/sapVirtualInstances/{sapVirtualInstanceName}", @@ -11428,17 +11588,17 @@ } ], "baseModel": { - "$ref": "464" + "$ref": "484" }, "properties": [ { - "$id": "891", + "$id": "911", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "892", + "$id": "912", "kind": "model", "name": "SAPVirtualInstanceProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -11452,12 +11612,12 @@ ], "properties": [ { - "$id": "893", + "$id": "913", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "894", + "$id": "914", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11492,13 +11652,13 @@ "isHttpMetadata": false }, { - "$id": "895", + "$id": "915", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the SAPVirtualInstance", "type": { - "$id": "896", + "$id": "916", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11520,10 +11680,10 @@ ] }, { - "$ref": "892" + "$ref": "912" }, { - "$id": "897", + "$id": "917", "kind": "model", "name": "SAPAvailabilityZoneDetailsRequest", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -11537,13 +11697,13 @@ ], "properties": [ { - "$id": "898", + "$id": "918", "kind": "property", "name": "preferredAvailabilityZone", "serializedName": "preferredAvailabilityZone", "doc": "The preferred availability zone", "type": { - "$id": "899", + "$id": "919", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11565,7 +11725,7 @@ ] }, { - "$id": "900", + "$id": "920", "kind": "model", "name": "SAPAvailabilityZoneDetailsResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -11579,13 +11739,13 @@ ], "properties": [ { - "$id": "901", + "$id": "921", "kind": "property", "name": "recommendedAvailabilityZonePair", "serializedName": "recommendedAvailabilityZonePair", "doc": "The recommended availability zone pair", "type": { - "$id": "902", + "$id": "922", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11607,140 +11767,535 @@ ] }, { - "$id": "903", + "$id": "923", "kind": "model", - "name": "ZooRecommendation", + "name": "BestPractice", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.ZooRecommendation", - "usage": "Output,Json", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractice", + "usage": "Input,Output,Json", + "doc": "A best practice resource - used by both parent and child operations", "decorators": [ { "name": "Azure.ResourceManager.@armProviderNamespace", "arguments": {} + }, + { + "name": "Azure.ResourceManager.Private.@armResourceInternal", + "arguments": {} + }, + { + "name": "Azure.ResourceManager.@tenantResource", + "arguments": {} + }, + { + "name": "Azure.ClientGenerator.Core.@resourceSchema", + "arguments": { + "resourceIdPattern": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}", + "resourceType": "MgmtTypeSpec/bestPractices", + "methods": [ + { + "$id": "924", + "methodId": "MgmtTypeSpec.BestPractices.get", + "kind": "Get", + "operationPath": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}", + "operationScope": "Tenant", + "resourceScope": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}" + }, + { + "$id": "925", + "methodId": "MgmtTypeSpec.BestPractices.createOrUpdate", + "kind": "Create", + "operationPath": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}", + "operationScope": "Tenant", + "resourceScope": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}" + }, + { + "$id": "926", + "methodId": "MgmtTypeSpec.BestPractices.update", + "kind": "Update", + "operationPath": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}", + "operationScope": "Tenant", + "resourceScope": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}" + }, + { + "$id": "927", + "methodId": "MgmtTypeSpec.BestPractices.delete", + "kind": "Delete", + "operationPath": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}", + "operationScope": "Tenant", + "resourceScope": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}" + } + ], + "resourceScope": "Tenant", + "resourceName": "BestPractice" + } + }, + { + "name": "Azure.ClientGenerator.Core.@resourceSchema", + "arguments": { + "resourceIdPattern": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}/versions/{versionName}", + "resourceType": "MgmtTypeSpec/bestPractices/versions", + "methods": [ + { + "$id": "928", + "methodId": "MgmtTypeSpec.BestPracticeVersions.get", + "kind": "Get", + "operationPath": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}/versions/{versionName}", + "operationScope": "Tenant", + "resourceScope": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}/versions/{versionName}" + }, + { + "$id": "929", + "methodId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate", + "kind": "Create", + "operationPath": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}/versions/{versionName}", + "operationScope": "Tenant", + "resourceScope": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}/versions/{versionName}" + }, + { + "$id": "930", + "methodId": "MgmtTypeSpec.BestPracticeVersions.update", + "kind": "Update", + "operationPath": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}/versions/{versionName}", + "operationScope": "Tenant", + "resourceScope": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}/versions/{versionName}" + }, + { + "$id": "931", + "methodId": "MgmtTypeSpec.BestPracticeVersions.delete", + "kind": "Delete", + "operationPath": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}/versions/{versionName}", + "operationScope": "Tenant", + "resourceScope": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}/versions/{versionName}" + } + ], + "resourceScope": "Tenant", + "resourceName": "BestPracticeVersion" + } } ], + "baseModel": { + "$ref": "367" + }, "properties": [ { - "$id": "904", + "$id": "932", "kind": "property", - "name": "recommendedValue", - "serializedName": "recommendedValue", - "doc": "The recommended value", + "name": "properties", + "serializedName": "properties", + "doc": "The resource-specific properties for this resource.", "type": { - "$id": "905", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "933", + "kind": "model", + "name": "BestPracticeProperties", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeProperties", + "usage": "Input,Output,Json", + "doc": "Best practice properties", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "934", + "kind": "property", + "name": "provisioningState", + "serializedName": "provisioningState", + "doc": "The provisioning state of the resource.", + "type": { + "$ref": "21" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeProperties.provisioningState", + "serializationOptions": { + "json": { + "name": "provisioningState" + } + }, + "isHttpMetadata": false + }, + { + "$id": "935", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the best practice", + "type": { + "$id": "936", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeProperties.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + } + ] }, - "optional": false, + "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.ZooRecommendation.recommendedValue", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractice.properties", "serializationOptions": { "json": { - "name": "recommendedValue" + "name": "properties" } }, "isHttpMetadata": false }, { - "$id": "906", + "$id": "937", "kind": "property", - "name": "reason", - "serializedName": "reason", - "doc": "The reason for the recommendation", + "name": "name", + "serializedName": "name", + "doc": "The name of the BestPractice", "type": { - "$id": "907", + "$id": "938", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "optional": false, - "readOnly": false, + "readOnly": true, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.ZooRecommendation.reason", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractice.name", "serializationOptions": { "json": { - "name": "reason" + "name": "name" } }, - "isHttpMetadata": false - } - ] - } - ], - "clients": [ - { - "$id": "908", - "kind": "client", - "name": "MgmtTypeSpecClient", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "methods": [ + "isHttpMetadata": true + }, { - "$id": "909", - "kind": "basic", - "name": "previewActions", - "accessibility": "public", - "apiVersions": [ - "2024-05-01" - ], - "doc": "Runs the input conditions against input object metadata properties and designates matched objects in response.", - "operation": { - "$id": "910", - "name": "previewActions", - "resourceName": "MgmtTypeSpec", - "doc": "Runs the input conditions against input object metadata properties and designates matched objects in response.", - "accessibility": "public", - "parameters": [ + "$id": "939", + "kind": "property", + "name": "extendedLocation", + "serializedName": "extendedLocation", + "type": { + "$id": "940", + "kind": "model", + "name": "ExtendedLocation1", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ExtendedLocationOptional", + "usage": "Input,Output,Json", + "doc": "The complex type of the extended location.", + "decorators": [ { - "$id": "911", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "941", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the extended location.", "type": { - "$id": "912", + "$id": "942", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "913", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2024-05-01" - }, - "optional": false, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.apiVersion", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ExtendedLocationOptional.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "943", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the extended location.", + "type": { + "$ref": "37" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ExtendedLocationOptional.type", + "serializationOptions": { + "json": { + "name": "type" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractice.extendedLocation", + "serializationOptions": { + "json": { + "name": "extendedLocation" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "933" + }, + { + "$ref": "940" + }, + { + "$id": "944", + "kind": "model", + "name": "BestPracticeUpdate", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModel", + "usage": "Input,Json", + "doc": "The type used for update operations of the BestPractice.", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "945", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "The resource-specific properties for this resource.", + "type": { + "$id": "946", + "kind": "model", + "name": "BestPracticeUpdateProperties", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties", + "usage": "Input,Json", + "doc": "The updatable properties of the BestPractice.", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "947", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the best practice", + "type": { + "$id": "948", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModel.properties", + "serializationOptions": { + "json": { + "name": "properties" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "946" + }, + { + "$id": "949", + "kind": "model", + "name": "ZooRecommendation", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.ZooRecommendation", + "usage": "Output,Json", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "950", + "kind": "property", + "name": "recommendedValue", + "serializedName": "recommendedValue", + "doc": "The recommended value", + "type": { + "$id": "951", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.ZooRecommendation.recommendedValue", + "serializationOptions": { + "json": { + "name": "recommendedValue" + } + }, + "isHttpMetadata": false + }, + { + "$id": "952", + "kind": "property", + "name": "reason", + "serializedName": "reason", + "doc": "The reason for the recommendation", + "type": { + "$id": "953", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.ZooRecommendation.reason", + "serializationOptions": { + "json": { + "name": "reason" + } + }, + "isHttpMetadata": false + } + ] + } + ], + "clients": [ + { + "$id": "954", + "kind": "client", + "name": "MgmtTypeSpecClient", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "methods": [ + { + "$id": "955", + "kind": "basic", + "name": "previewActions", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "Runs the input conditions against input object metadata properties and designates matched objects in response.", + "operation": { + "$id": "956", + "name": "previewActions", + "resourceName": "MgmtTypeSpec", + "doc": "Runs the input conditions against input object metadata properties and designates matched objects in response.", + "accessibility": "public", + "parameters": [ + { + "$id": "957", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "958", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "959", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.apiVersion", "readOnly": false }, { - "$id": "914", + "$id": "960", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "915", + "$id": "961", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "916", + "$id": "962", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11760,17 +12315,17 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.subscriptionId" }, { - "$id": "917", + "$id": "963", "kind": "path", "name": "location", "serializedName": "location", "type": { - "$id": "918", + "$id": "964", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "919", + "$id": "965", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11790,7 +12345,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.location" }, { - "$id": "920", + "$id": "966", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -11807,7 +12362,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.contentType" }, { - "$id": "921", + "$id": "967", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -11823,13 +12378,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.accept" }, { - "$id": "922", + "$id": "968", "kind": "body", "name": "body", "serializedName": "body", "doc": "The request body", "type": { - "$ref": "297" + "$ref": "317" }, "isApiVersion": false, "contentTypes": [ @@ -11849,7 +12404,7 @@ 200 ], "bodyType": { - "$ref": "297" + "$ref": "317" }, "headers": [], "isErrorResponse": false, @@ -11872,17 +12427,17 @@ }, "parameters": [ { - "$id": "923", + "$id": "969", "kind": "method", "name": "location", "serializedName": "location", "type": { - "$id": "924", + "$id": "970", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "925", + "$id": "971", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11900,13 +12455,13 @@ "decorators": [] }, { - "$id": "926", + "$id": "972", "kind": "method", "name": "body", "serializedName": "body", "doc": "The request body", "type": { - "$ref": "297" + "$ref": "317" }, "location": "Body", "isApiVersion": false, @@ -11918,7 +12473,7 @@ "decorators": [] }, { - "$id": "927", + "$id": "973", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -11936,7 +12491,7 @@ "decorators": [] }, { - "$id": "928", + "$id": "974", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -11955,7 +12510,7 @@ ], "response": { "type": { - "$ref": "297" + "$ref": "317" } }, "isOverride": false, @@ -11966,13 +12521,13 @@ ], "parameters": [ { - "$id": "929", + "$id": "975", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "930", + "$id": "976", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11983,7 +12538,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "931", + "$id": "977", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11996,13 +12551,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$id": "932", + "$id": "978", "kind": "method", "name": "apiVersion", "serializedName": "apiVersion", "doc": "The API version to use for this operation.", "type": { - "$id": "933", + "$id": "979", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12012,7 +12567,7 @@ "isApiVersion": true, "defaultValue": { "type": { - "$id": "934", + "$id": "980", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12027,18 +12582,18 @@ "decorators": [] }, { - "$id": "935", + "$id": "981", "kind": "method", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "936", + "$id": "982", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "937", + "$id": "983", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12101,13 +12656,13 @@ ], "children": [ { - "$id": "938", + "$id": "984", "kind": "client", "name": "Operations", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "939", + "$id": "985", "kind": "paging", "name": "list", "accessibility": "public", @@ -12116,20 +12671,20 @@ ], "doc": "List the operations for the provider", "operation": { - "$id": "940", + "$id": "986", "name": "list", "resourceName": "Operations", "doc": "List the operations for the provider", "accessibility": "public", "parameters": [ { - "$id": "941", + "$id": "987", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "942", + "$id": "988", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12139,7 +12694,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "943", + "$id": "989", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12153,7 +12708,7 @@ "readOnly": false }, { - "$id": "944", + "$id": "990", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -12175,7 +12730,7 @@ 200 ], "bodyType": { - "$ref": "320" + "$ref": "340" }, "headers": [], "isErrorResponse": false, @@ -12195,7 +12750,7 @@ }, "parameters": [ { - "$id": "945", + "$id": "991", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -12214,7 +12769,7 @@ ], "response": { "type": { - "$ref": "322" + "$ref": "342" }, "resultSegments": [ "value" @@ -12240,13 +12795,13 @@ ], "parameters": [ { - "$id": "946", + "$id": "992", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "947", + "$id": "993", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -12257,7 +12812,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "948", + "$id": "994", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12270,7 +12825,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" } ], "initializedBy": 0, @@ -12280,17 +12835,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "949", + "$id": "995", "kind": "client", "name": "PrivateLinks", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "950", + "$id": "996", "kind": "paging", "name": "GetAllPrivateLinkResources", "accessibility": "public", @@ -12299,20 +12854,20 @@ ], "doc": "list private links on the given resource", "operation": { - "$id": "951", + "$id": "997", "name": "GetAllPrivateLinkResources", "resourceName": "PrivateLink", "doc": "list private links on the given resource", "accessibility": "public", "parameters": [ { - "$id": "952", + "$id": "998", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "953", + "$id": "999", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12322,7 +12877,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "954", + "$id": "1000", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12336,18 +12891,18 @@ "readOnly": false }, { - "$id": "955", + "$id": "1001", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "956", + "$id": "1002", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "957", + "$id": "1003", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12367,13 +12922,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.subscriptionId" }, { - "$id": "958", + "$id": "1004", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "959", + "$id": "1005", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12391,7 +12946,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.resourceGroupName" }, { - "$id": "960", + "$id": "1006", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -12413,7 +12968,7 @@ 200 ], "bodyType": { - "$ref": "343" + "$ref": "363" }, "headers": [], "isErrorResponse": false, @@ -12438,13 +12993,13 @@ }, "parameters": [ { - "$id": "961", + "$id": "1007", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "962", + "$id": "1008", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12460,7 +13015,7 @@ "decorators": [] }, { - "$id": "963", + "$id": "1009", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -12479,7 +13034,7 @@ ], "response": { "type": { - "$ref": "345" + "$ref": "365" }, "resultSegments": [ "value" @@ -12503,7 +13058,7 @@ } }, { - "$id": "964", + "$id": "1010", "kind": "lro", "name": "start", "accessibility": "public", @@ -12512,20 +13067,20 @@ ], "doc": "Starts the SAP Application Server Instance.", "operation": { - "$id": "965", + "$id": "1011", "name": "start", "resourceName": "PrivateLinks", "doc": "Starts the SAP Application Server Instance.", "accessibility": "public", "parameters": [ { - "$id": "966", + "$id": "1012", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "967", + "$id": "1013", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12535,7 +13090,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "968", + "$id": "1014", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12549,18 +13104,18 @@ "readOnly": false }, { - "$id": "969", + "$id": "1015", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "970", + "$id": "1016", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "971", + "$id": "1017", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12580,13 +13135,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.subscriptionId" }, { - "$id": "972", + "$id": "1018", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "973", + "$id": "1019", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12604,13 +13159,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.resourceGroupName" }, { - "$id": "974", + "$id": "1020", "kind": "path", "name": "privateLinkResourceName", "serializedName": "privateLinkResourceName", "doc": "The name of the private link associated with the Azure resource.", "type": { - "$id": "975", + "$id": "1021", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12628,7 +13183,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.privateLinkResourceName" }, { - "$id": "976", + "$id": "1022", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -12645,7 +13200,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.contentType" }, { - "$id": "977", + "$id": "1023", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -12661,13 +13216,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.accept" }, { - "$id": "978", + "$id": "1024", "kind": "body", "name": "body", "serializedName": "body", "doc": "SAP Application server instance start request body.", "type": { - "$ref": "406" + "$ref": "426" }, "isApiVersion": false, "contentTypes": [ @@ -12692,7 +13247,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "979", + "$id": "1025", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12704,7 +13259,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "980", + "$id": "1026", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -12719,7 +13274,7 @@ 200 ], "bodyType": { - "$ref": "409" + "$ref": "429" }, "headers": [], "isErrorResponse": false, @@ -12747,13 +13302,13 @@ }, "parameters": [ { - "$id": "981", + "$id": "1027", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "982", + "$id": "1028", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12769,13 +13324,13 @@ "decorators": [] }, { - "$id": "983", + "$id": "1029", "kind": "method", "name": "privateLinkResourceName", "serializedName": "privateLinkResourceName", "doc": "The name of the private link associated with the Azure resource.", "type": { - "$id": "984", + "$id": "1030", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12791,13 +13346,13 @@ "decorators": [] }, { - "$id": "985", + "$id": "1031", "kind": "method", "name": "body", "serializedName": "body", "doc": "The content of the action request", "type": { - "$ref": "404" + "$ref": "424" }, "location": "", "isApiVersion": false, @@ -12809,18 +13364,18 @@ "decorators": [] }, { - "$id": "986", + "$id": "1032", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "987", + "$id": "1033", "kind": "enum", "name": "startContentType", "crossLanguageDefinitionId": "", "valueType": { - "$id": "988", + "$id": "1034", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12828,12 +13383,12 @@ }, "values": [ { - "$id": "989", + "$id": "1035", "kind": "enumvalue", "name": "application/json", "value": "application/json", "valueType": { - "$id": "990", + "$id": "1036", "kind": "string", "decorators": [], "doc": "A sequence of textual characters.", @@ -12841,7 +13396,7 @@ "crossLanguageDefinitionId": "TypeSpec.string" }, "enumType": { - "$ref": "987" + "$ref": "1033" }, "decorators": [] } @@ -12862,7 +13417,7 @@ "decorators": [] }, { - "$id": "991", + "$id": "1037", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -12881,7 +13436,7 @@ ], "response": { "type": { - "$ref": "409" + "$ref": "429" } }, "isOverride": false, @@ -12895,13 +13450,13 @@ 200 ], "bodyType": { - "$ref": "409" + "$ref": "429" } } } }, { - "$id": "992", + "$id": "1038", "kind": "basic", "name": "startFailedServerlessRuntime", "accessibility": "public", @@ -12910,7 +13465,7 @@ ], "doc": "Starts a failed runtime resource", "operation": { - "$id": "993", + "$id": "1039", "name": "startFailedServerlessRuntime", "resourceName": "PrivateLinks", "doc": "Starts a failed runtime resource", @@ -12944,13 +13499,13 @@ ], "parameters": [ { - "$id": "994", + "$id": "1040", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "995", + "$id": "1041", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -12961,7 +13516,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "996", + "$id": "1042", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12974,10 +13529,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -12992,17 +13547,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "997", + "$id": "1043", "kind": "client", "name": "PrivateEndpointConnections", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "998", + "$id": "1044", "kind": "basic", "name": "get", "accessibility": "public", @@ -13011,20 +13566,20 @@ ], "doc": "Gets the specified private endpoint connection associated with the storage sync service.", "operation": { - "$id": "999", + "$id": "1045", "name": "get", "resourceName": "PrivateEndpointConnection", "doc": "Gets the specified private endpoint connection associated with the storage sync service.", "accessibility": "public", "parameters": [ { - "$id": "1000", + "$id": "1046", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1001", + "$id": "1047", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13034,7 +13589,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1002", + "$id": "1048", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13048,18 +13603,18 @@ "readOnly": false }, { - "$id": "1003", + "$id": "1049", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1004", + "$id": "1050", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1005", + "$id": "1051", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13079,13 +13634,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.get.subscriptionId" }, { - "$id": "1006", + "$id": "1052", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1007", + "$id": "1053", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13103,13 +13658,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.get.resourceGroupName" }, { - "$id": "1008", + "$id": "1054", "kind": "path", "name": "storageSyncServiceName", "serializedName": "storageSyncServiceName", "doc": "The name of the StorageSyncService", "type": { - "$id": "1009", + "$id": "1055", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13127,13 +13682,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.get.storageSyncServiceName" }, { - "$id": "1010", + "$id": "1056", "kind": "path", "name": "privateEndpointConnectionName", "serializedName": "privateEndpointConnectionName", "doc": "The name of the private endpoint connection associated with the Azure resource.", "type": { - "$id": "1011", + "$id": "1057", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13151,7 +13706,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.get.privateEndpointConnectionName" }, { - "$id": "1012", + "$id": "1058", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -13173,7 +13728,7 @@ 200 ], "bodyType": { - "$ref": "446" + "$ref": "466" }, "headers": [], "isErrorResponse": false, @@ -13193,13 +13748,13 @@ }, "parameters": [ { - "$id": "1013", + "$id": "1059", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1014", + "$id": "1060", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13215,13 +13770,13 @@ "decorators": [] }, { - "$id": "1015", + "$id": "1061", "kind": "method", "name": "storageSyncServiceName", "serializedName": "storageSyncServiceName", "doc": "The name of the StorageSyncService", "type": { - "$id": "1016", + "$id": "1062", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13237,13 +13792,13 @@ "decorators": [] }, { - "$id": "1017", + "$id": "1063", "kind": "method", "name": "privateEndpointConnectionName", "serializedName": "privateEndpointConnectionName", "doc": "The name of the private endpoint connection associated with the Azure resource.", "type": { - "$id": "1018", + "$id": "1064", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13259,7 +13814,7 @@ "decorators": [] }, { - "$id": "1019", + "$id": "1065", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -13278,7 +13833,7 @@ ], "response": { "type": { - "$ref": "446" + "$ref": "466" } }, "isOverride": false, @@ -13287,7 +13842,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.get" }, { - "$id": "1020", + "$id": "1066", "kind": "lro", "name": "create", "accessibility": "public", @@ -13296,20 +13851,20 @@ ], "doc": "Update the state of specified private endpoint connection associated with the storage sync service.", "operation": { - "$id": "1021", + "$id": "1067", "name": "create", "resourceName": "PrivateEndpointConnection", "doc": "Update the state of specified private endpoint connection associated with the storage sync service.", "accessibility": "public", "parameters": [ { - "$id": "1022", + "$id": "1068", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1023", + "$id": "1069", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13319,7 +13874,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1024", + "$id": "1070", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13333,18 +13888,18 @@ "readOnly": false }, { - "$id": "1025", + "$id": "1071", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1026", + "$id": "1072", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1027", + "$id": "1073", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13364,13 +13919,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.subscriptionId" }, { - "$id": "1028", + "$id": "1074", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1029", + "$id": "1075", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13388,13 +13943,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.resourceGroupName" }, { - "$id": "1030", + "$id": "1076", "kind": "path", "name": "storageSyncServiceName", "serializedName": "storageSyncServiceName", "doc": "The name of the StorageSyncService", "type": { - "$id": "1031", + "$id": "1077", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13412,13 +13967,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.storageSyncServiceName" }, { - "$id": "1032", + "$id": "1078", "kind": "path", "name": "privateEndpointConnectionName", "serializedName": "privateEndpointConnectionName", "doc": "The name of the private endpoint connection associated with the Azure resource.", "type": { - "$id": "1033", + "$id": "1079", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13436,7 +13991,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.privateEndpointConnectionName" }, { - "$id": "1034", + "$id": "1080", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -13453,7 +14008,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.contentType" }, { - "$id": "1035", + "$id": "1081", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -13469,13 +14024,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.accept" }, { - "$id": "1036", + "$id": "1082", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "446" + "$ref": "466" }, "isApiVersion": false, "contentTypes": [ @@ -13495,7 +14050,7 @@ 200 ], "bodyType": { - "$ref": "446" + "$ref": "466" }, "headers": [], "isErrorResponse": false, @@ -13513,12 +14068,12 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1037", + "$id": "1083", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "1038", + "$id": "1084", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -13532,7 +14087,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1039", + "$id": "1085", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13544,7 +14099,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1040", + "$id": "1086", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -13556,7 +14111,7 @@ "nameInResponse": "x-ms-correlation-request-id", "doc": "correlation request id", "type": { - "$id": "1041", + "$id": "1087", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13568,7 +14123,7 @@ "nameInResponse": "x-ms-request-id", "doc": "Request id", "type": { - "$id": "1042", + "$id": "1088", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13600,13 +14155,13 @@ }, "parameters": [ { - "$id": "1043", + "$id": "1089", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1044", + "$id": "1090", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13622,13 +14177,13 @@ "decorators": [] }, { - "$id": "1045", + "$id": "1091", "kind": "method", "name": "storageSyncServiceName", "serializedName": "storageSyncServiceName", "doc": "The name of the StorageSyncService", "type": { - "$id": "1046", + "$id": "1092", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13644,13 +14199,13 @@ "decorators": [] }, { - "$id": "1047", + "$id": "1093", "kind": "method", "name": "privateEndpointConnectionName", "serializedName": "privateEndpointConnectionName", "doc": "The name of the private endpoint connection associated with the Azure resource.", "type": { - "$id": "1048", + "$id": "1094", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13666,13 +14221,13 @@ "decorators": [] }, { - "$id": "1049", + "$id": "1095", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "446" + "$ref": "466" }, "location": "Body", "isApiVersion": false, @@ -13684,7 +14239,7 @@ "decorators": [] }, { - "$id": "1050", + "$id": "1096", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -13702,7 +14257,7 @@ "decorators": [] }, { - "$id": "1051", + "$id": "1097", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -13721,7 +14276,7 @@ ], "response": { "type": { - "$ref": "446" + "$ref": "466" } }, "isOverride": false, @@ -13735,7 +14290,7 @@ 200 ], "bodyType": { - "$ref": "446" + "$ref": "466" } } } @@ -13743,13 +14298,13 @@ ], "parameters": [ { - "$id": "1052", + "$id": "1098", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1053", + "$id": "1099", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -13760,7 +14315,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1054", + "$id": "1100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13773,10 +14328,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -13791,17 +14346,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1055", + "$id": "1101", "kind": "client", "name": "StorageSyncServices", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1056", + "$id": "1102", "kind": "basic", "name": "get", "accessibility": "public", @@ -13810,20 +14365,20 @@ ], "doc": "Gets the specified storage sync service.", "operation": { - "$id": "1057", + "$id": "1103", "name": "get", "resourceName": "StorageSyncService", "doc": "Gets the specified storage sync service.", "accessibility": "public", "parameters": [ { - "$id": "1058", + "$id": "1104", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1059", + "$id": "1105", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13833,7 +14388,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1060", + "$id": "1106", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13847,18 +14402,18 @@ "readOnly": false }, { - "$id": "1061", + "$id": "1107", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1062", + "$id": "1108", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1063", + "$id": "1109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13878,13 +14433,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices.get.subscriptionId" }, { - "$id": "1064", + "$id": "1110", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1065", + "$id": "1111", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13902,13 +14457,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices.get.resourceGroupName" }, { - "$id": "1066", + "$id": "1112", "kind": "path", "name": "storageSyncServiceName", "serializedName": "storageSyncServiceName", "doc": "The name of the StorageSyncService", "type": { - "$id": "1067", + "$id": "1113", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13926,7 +14481,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices.get.storageSyncServiceName" }, { - "$id": "1068", + "$id": "1114", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -13948,7 +14503,7 @@ 200 ], "bodyType": { - "$ref": "462" + "$ref": "482" }, "headers": [], "isErrorResponse": false, @@ -13973,13 +14528,13 @@ }, "parameters": [ { - "$id": "1069", + "$id": "1115", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1070", + "$id": "1116", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13995,13 +14550,13 @@ "decorators": [] }, { - "$id": "1071", + "$id": "1117", "kind": "method", "name": "storageSyncServiceName", "serializedName": "storageSyncServiceName", "doc": "The name of the StorageSyncService", "type": { - "$id": "1072", + "$id": "1118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14017,7 +14572,7 @@ "decorators": [] }, { - "$id": "1073", + "$id": "1119", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -14036,7 +14591,7 @@ ], "response": { "type": { - "$ref": "462" + "$ref": "482" } }, "isOverride": false, @@ -14047,13 +14602,13 @@ ], "parameters": [ { - "$id": "1074", + "$id": "1120", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1075", + "$id": "1121", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -14064,7 +14619,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1076", + "$id": "1122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14077,10 +14632,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -14095,17 +14650,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1077", + "$id": "1123", "kind": "client", "name": "Foos", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1078", + "$id": "1124", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -14114,20 +14669,20 @@ ], "doc": "Create a Foo", "operation": { - "$id": "1079", + "$id": "1125", "name": "createOrUpdate", "resourceName": "Foo", "doc": "Create a Foo", "accessibility": "public", "parameters": [ { - "$id": "1080", + "$id": "1126", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1081", + "$id": "1127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14137,7 +14692,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1082", + "$id": "1128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14151,18 +14706,18 @@ "readOnly": false }, { - "$id": "1083", + "$id": "1129", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1084", + "$id": "1130", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1085", + "$id": "1131", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14182,13 +14737,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.subscriptionId" }, { - "$id": "1086", + "$id": "1132", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1087", + "$id": "1133", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14206,13 +14761,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.resourceGroupName" }, { - "$id": "1088", + "$id": "1134", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1089", + "$id": "1135", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14230,7 +14785,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.fooName" }, { - "$id": "1090", + "$id": "1136", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -14247,7 +14802,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.contentType" }, { - "$id": "1091", + "$id": "1137", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -14263,13 +14818,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.accept" }, { - "$id": "1092", + "$id": "1138", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "479" + "$ref": "499" }, "isApiVersion": false, "contentTypes": [ @@ -14289,7 +14844,7 @@ 200 ], "bodyType": { - "$ref": "479" + "$ref": "499" }, "headers": [], "isErrorResponse": false, @@ -14302,7 +14857,7 @@ 201 ], "bodyType": { - "$ref": "479" + "$ref": "499" }, "headers": [ { @@ -14310,7 +14865,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1093", + "$id": "1139", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14322,7 +14877,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1094", + "$id": "1140", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -14355,13 +14910,13 @@ }, "parameters": [ { - "$id": "1095", + "$id": "1141", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1096", + "$id": "1142", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14377,13 +14932,13 @@ "decorators": [] }, { - "$id": "1097", + "$id": "1143", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1098", + "$id": "1144", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14399,13 +14954,13 @@ "decorators": [] }, { - "$id": "1099", + "$id": "1145", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "479" + "$ref": "499" }, "location": "Body", "isApiVersion": false, @@ -14417,7 +14972,7 @@ "decorators": [] }, { - "$id": "1100", + "$id": "1146", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -14435,7 +14990,7 @@ "decorators": [] }, { - "$id": "1101", + "$id": "1147", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -14454,7 +15009,7 @@ ], "response": { "type": { - "$ref": "479" + "$ref": "499" } }, "isOverride": false, @@ -14468,13 +15023,13 @@ 200 ], "bodyType": { - "$ref": "479" + "$ref": "499" } } } }, { - "$id": "1102", + "$id": "1148", "kind": "basic", "name": "get", "accessibility": "public", @@ -14483,20 +15038,20 @@ ], "doc": "Get a Foo", "operation": { - "$id": "1103", + "$id": "1149", "name": "get", "resourceName": "Foo", "doc": "Get a Foo", "accessibility": "public", "parameters": [ { - "$id": "1104", + "$id": "1150", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1105", + "$id": "1151", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14506,7 +15061,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1106", + "$id": "1152", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14520,18 +15075,18 @@ "readOnly": false }, { - "$id": "1107", + "$id": "1153", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1108", + "$id": "1154", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1109", + "$id": "1155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14551,13 +15106,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get.subscriptionId" }, { - "$id": "1110", + "$id": "1156", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1111", + "$id": "1157", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14575,13 +15130,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get.resourceGroupName" }, { - "$id": "1112", + "$id": "1158", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1113", + "$id": "1159", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14599,7 +15154,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get.fooName" }, { - "$id": "1114", + "$id": "1160", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -14621,7 +15176,7 @@ 200 ], "bodyType": { - "$ref": "479" + "$ref": "499" }, "headers": [], "isErrorResponse": false, @@ -14646,13 +15201,13 @@ }, "parameters": [ { - "$id": "1115", + "$id": "1161", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1116", + "$id": "1162", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14668,13 +15223,13 @@ "decorators": [] }, { - "$id": "1117", + "$id": "1163", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1118", + "$id": "1164", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14690,7 +15245,7 @@ "decorators": [] }, { - "$id": "1119", + "$id": "1165", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -14709,7 +15264,7 @@ ], "response": { "type": { - "$ref": "479" + "$ref": "499" } }, "isOverride": false, @@ -14718,7 +15273,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get" }, { - "$id": "1120", + "$id": "1166", "kind": "lro", "name": "delete", "accessibility": "public", @@ -14727,20 +15282,20 @@ ], "doc": "Delete a Foo", "operation": { - "$id": "1121", + "$id": "1167", "name": "delete", "resourceName": "Foo", "doc": "Delete a Foo", "accessibility": "public", "parameters": [ { - "$id": "1122", + "$id": "1168", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1123", + "$id": "1169", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14750,7 +15305,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1124", + "$id": "1170", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14764,18 +15319,18 @@ "readOnly": false }, { - "$id": "1125", + "$id": "1171", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1126", + "$id": "1172", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1127", + "$id": "1173", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14795,13 +15350,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.delete.subscriptionId" }, { - "$id": "1128", + "$id": "1174", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1129", + "$id": "1175", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14819,13 +15374,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.delete.resourceGroupName" }, { - "$id": "1130", + "$id": "1176", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1131", + "$id": "1177", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14854,7 +15409,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1132", + "$id": "1178", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14866,7 +15421,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1133", + "$id": "1179", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -14900,13 +15455,13 @@ }, "parameters": [ { - "$id": "1134", + "$id": "1180", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1135", + "$id": "1181", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14922,13 +15477,13 @@ "decorators": [] }, { - "$id": "1136", + "$id": "1182", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1137", + "$id": "1183", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14959,7 +15514,7 @@ } }, { - "$id": "1138", + "$id": "1184", "kind": "paging", "name": "list", "accessibility": "public", @@ -14968,20 +15523,20 @@ ], "doc": "List Foo resources by resource group", "operation": { - "$id": "1139", + "$id": "1185", "name": "list", "resourceName": "Foo", "doc": "List Foo resources by resource group", "accessibility": "public", "parameters": [ { - "$id": "1140", + "$id": "1186", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1141", + "$id": "1187", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14991,7 +15546,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1142", + "$id": "1188", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -15005,18 +15560,18 @@ "readOnly": false }, { - "$id": "1143", + "$id": "1189", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1144", + "$id": "1190", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1145", + "$id": "1191", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15036,13 +15591,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.list.subscriptionId" }, { - "$id": "1146", + "$id": "1192", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1147", + "$id": "1193", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15060,7 +15615,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.list.resourceGroupName" }, { - "$id": "1148", + "$id": "1194", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -15082,7 +15637,7 @@ 200 ], "bodyType": { - "$ref": "530" + "$ref": "550" }, "headers": [], "isErrorResponse": false, @@ -15107,13 +15662,13 @@ }, "parameters": [ { - "$id": "1149", + "$id": "1195", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1150", + "$id": "1196", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15129,7 +15684,7 @@ "decorators": [] }, { - "$id": "1151", + "$id": "1197", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -15148,7 +15703,7 @@ ], "response": { "type": { - "$ref": "532" + "$ref": "552" }, "resultSegments": [ "value" @@ -15172,7 +15727,7 @@ } }, { - "$id": "1152", + "$id": "1198", "kind": "paging", "name": "listBySubscription", "accessibility": "public", @@ -15181,20 +15736,20 @@ ], "doc": "List Foo resources by subscription ID", "operation": { - "$id": "1153", + "$id": "1199", "name": "listBySubscription", "resourceName": "Foo", "doc": "List Foo resources by subscription ID", "accessibility": "public", "parameters": [ { - "$id": "1154", + "$id": "1200", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1155", + "$id": "1201", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15204,7 +15759,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1156", + "$id": "1202", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -15218,18 +15773,18 @@ "readOnly": false }, { - "$id": "1157", + "$id": "1203", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1158", + "$id": "1204", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1159", + "$id": "1205", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15249,7 +15804,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.listBySubscription.subscriptionId" }, { - "$id": "1160", + "$id": "1206", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -15271,7 +15826,7 @@ 200 ], "bodyType": { - "$ref": "530" + "$ref": "550" }, "headers": [], "isErrorResponse": false, @@ -15296,7 +15851,7 @@ }, "parameters": [ { - "$id": "1161", + "$id": "1207", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -15315,7 +15870,7 @@ ], "response": { "type": { - "$ref": "532" + "$ref": "552" }, "resultSegments": [ "value" @@ -15339,7 +15894,7 @@ } }, { - "$id": "1162", + "$id": "1208", "kind": "lro", "name": "fooAction", "accessibility": "public", @@ -15348,20 +15903,20 @@ ], "doc": "A long-running resource action.", "operation": { - "$id": "1163", + "$id": "1209", "name": "fooAction", "resourceName": "Foos", "doc": "A long-running resource action.", "accessibility": "public", "parameters": [ { - "$id": "1164", + "$id": "1210", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1165", + "$id": "1211", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15371,7 +15926,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1166", + "$id": "1212", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -15385,18 +15940,18 @@ "readOnly": false }, { - "$id": "1167", + "$id": "1213", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1168", + "$id": "1214", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1169", + "$id": "1215", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15416,13 +15971,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.subscriptionId" }, { - "$id": "1170", + "$id": "1216", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1171", + "$id": "1217", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15440,13 +15995,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.resourceGroupName" }, { - "$id": "1172", + "$id": "1218", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1173", + "$id": "1219", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15464,7 +16019,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.fooName" }, { - "$id": "1174", + "$id": "1220", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -15481,7 +16036,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.contentType" }, { - "$id": "1175", + "$id": "1221", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -15497,13 +16052,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.accept" }, { - "$id": "1176", + "$id": "1222", "kind": "body", "name": "body", "serializedName": "body", "doc": "The content of the action request", "type": { - "$ref": "536" + "$ref": "556" }, "isApiVersion": false, "contentTypes": [ @@ -15528,7 +16083,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1177", + "$id": "1223", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15540,7 +16095,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1178", + "$id": "1224", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15552,7 +16107,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1179", + "$id": "1225", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -15567,7 +16122,7 @@ 200 ], "bodyType": { - "$ref": "539" + "$ref": "559" }, "headers": [], "isErrorResponse": false, @@ -15595,13 +16150,13 @@ }, "parameters": [ { - "$id": "1180", + "$id": "1226", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1181", + "$id": "1227", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15617,13 +16172,13 @@ "decorators": [] }, { - "$id": "1182", + "$id": "1228", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1183", + "$id": "1229", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15639,13 +16194,13 @@ "decorators": [] }, { - "$id": "1184", + "$id": "1230", "kind": "method", "name": "body", "serializedName": "body", "doc": "The content of the action request", "type": { - "$ref": "536" + "$ref": "556" }, "location": "Body", "isApiVersion": false, @@ -15657,7 +16212,7 @@ "decorators": [] }, { - "$id": "1185", + "$id": "1231", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -15675,7 +16230,7 @@ "decorators": [] }, { - "$id": "1186", + "$id": "1232", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -15694,7 +16249,7 @@ ], "response": { "type": { - "$ref": "539" + "$ref": "559" } }, "isOverride": false, @@ -15708,7 +16263,7 @@ 200 ], "bodyType": { - "$ref": "539" + "$ref": "559" } } } @@ -15716,13 +16271,13 @@ ], "parameters": [ { - "$id": "1187", + "$id": "1233", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1188", + "$id": "1234", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -15733,7 +16288,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1189", + "$id": "1235", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -15746,10 +16301,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -15764,17 +16319,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1190", + "$id": "1236", "kind": "client", "name": "FooSettingsOperations", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1191", + "$id": "1237", "kind": "basic", "name": "get", "accessibility": "public", @@ -15783,20 +16338,20 @@ ], "doc": "Get a FooSettings", "operation": { - "$id": "1192", + "$id": "1238", "name": "get", "resourceName": "FooSettings", "doc": "Get a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "1193", + "$id": "1239", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1194", + "$id": "1240", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15806,7 +16361,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1195", + "$id": "1241", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -15820,18 +16375,18 @@ "readOnly": false }, { - "$id": "1196", + "$id": "1242", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1197", + "$id": "1243", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1198", + "$id": "1244", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15851,13 +16406,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.get.subscriptionId" }, { - "$id": "1199", + "$id": "1245", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1200", + "$id": "1246", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15875,7 +16430,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.get.resourceGroupName" }, { - "$id": "1201", + "$id": "1247", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -15897,7 +16452,7 @@ 200 ], "bodyType": { - "$ref": "543" + "$ref": "563" }, "headers": [], "isErrorResponse": false, @@ -15922,13 +16477,13 @@ }, "parameters": [ { - "$id": "1202", + "$id": "1248", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1203", + "$id": "1249", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15944,7 +16499,7 @@ "decorators": [] }, { - "$id": "1204", + "$id": "1250", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -15963,7 +16518,7 @@ ], "response": { "type": { - "$ref": "543" + "$ref": "563" } }, "isOverride": false, @@ -15972,7 +16527,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.get" }, { - "$id": "1205", + "$id": "1251", "kind": "basic", "name": "createOrUpdate", "accessibility": "public", @@ -15981,20 +16536,20 @@ ], "doc": "Create a FooSettings", "operation": { - "$id": "1206", + "$id": "1252", "name": "createOrUpdate", "resourceName": "FooSettings", "doc": "Create a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "1207", + "$id": "1253", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1208", + "$id": "1254", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16004,7 +16559,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1209", + "$id": "1255", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16018,18 +16573,18 @@ "readOnly": false }, { - "$id": "1210", + "$id": "1256", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1211", + "$id": "1257", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1212", + "$id": "1258", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16049,13 +16604,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.subscriptionId" }, { - "$id": "1213", + "$id": "1259", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1214", + "$id": "1260", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16073,7 +16628,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.resourceGroupName" }, { - "$id": "1215", + "$id": "1261", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -16090,7 +16645,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.contentType" }, { - "$id": "1216", + "$id": "1262", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -16106,13 +16661,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.accept" }, { - "$id": "1217", + "$id": "1263", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "543" + "$ref": "563" }, "isApiVersion": false, "contentTypes": [ @@ -16132,7 +16687,7 @@ 200 ], "bodyType": { - "$ref": "543" + "$ref": "563" }, "headers": [], "isErrorResponse": false, @@ -16145,7 +16700,7 @@ 201 ], "bodyType": { - "$ref": "543" + "$ref": "563" }, "headers": [], "isErrorResponse": false, @@ -16173,13 +16728,13 @@ }, "parameters": [ { - "$id": "1218", + "$id": "1264", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1219", + "$id": "1265", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16195,13 +16750,13 @@ "decorators": [] }, { - "$id": "1220", + "$id": "1266", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "543" + "$ref": "563" }, "location": "Body", "isApiVersion": false, @@ -16213,7 +16768,7 @@ "decorators": [] }, { - "$id": "1221", + "$id": "1267", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -16231,7 +16786,7 @@ "decorators": [] }, { - "$id": "1222", + "$id": "1268", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -16250,7 +16805,7 @@ ], "response": { "type": { - "$ref": "543" + "$ref": "563" } }, "isOverride": false, @@ -16259,7 +16814,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate" }, { - "$id": "1223", + "$id": "1269", "kind": "basic", "name": "update", "accessibility": "public", @@ -16268,20 +16823,20 @@ ], "doc": "Update a FooSettings", "operation": { - "$id": "1224", + "$id": "1270", "name": "update", "resourceName": "FooSettings", "doc": "Update a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "1225", + "$id": "1271", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1226", + "$id": "1272", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16291,7 +16846,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1227", + "$id": "1273", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16305,18 +16860,18 @@ "readOnly": false }, { - "$id": "1228", + "$id": "1274", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1229", + "$id": "1275", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1230", + "$id": "1276", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16336,13 +16891,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.subscriptionId" }, { - "$id": "1231", + "$id": "1277", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1232", + "$id": "1278", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16360,7 +16915,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.resourceGroupName" }, { - "$id": "1233", + "$id": "1279", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -16377,7 +16932,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.contentType" }, { - "$id": "1234", + "$id": "1280", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -16393,13 +16948,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.accept" }, { - "$id": "1235", + "$id": "1281", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "594" + "$ref": "614" }, "isApiVersion": false, "contentTypes": [ @@ -16419,7 +16974,7 @@ 200 ], "bodyType": { - "$ref": "543" + "$ref": "563" }, "headers": [], "isErrorResponse": false, @@ -16447,13 +17002,13 @@ }, "parameters": [ { - "$id": "1236", + "$id": "1282", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1237", + "$id": "1283", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16469,13 +17024,13 @@ "decorators": [] }, { - "$id": "1238", + "$id": "1284", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "594" + "$ref": "614" }, "location": "Body", "isApiVersion": false, @@ -16487,7 +17042,7 @@ "decorators": [] }, { - "$id": "1239", + "$id": "1285", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -16505,7 +17060,7 @@ "decorators": [] }, { - "$id": "1240", + "$id": "1286", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -16524,7 +17079,7 @@ ], "response": { "type": { - "$ref": "543" + "$ref": "563" } }, "isOverride": false, @@ -16533,7 +17088,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update" }, { - "$id": "1241", + "$id": "1287", "kind": "basic", "name": "delete", "accessibility": "public", @@ -16542,20 +17097,20 @@ ], "doc": "Delete a FooSettings", "operation": { - "$id": "1242", + "$id": "1288", "name": "delete", "resourceName": "FooSettings", "doc": "Delete a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "1243", + "$id": "1289", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1244", + "$id": "1290", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16565,7 +17120,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1245", + "$id": "1291", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16579,18 +17134,18 @@ "readOnly": false }, { - "$id": "1246", + "$id": "1292", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1247", + "$id": "1293", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1248", + "$id": "1294", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16610,13 +17165,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.delete.subscriptionId" }, { - "$id": "1249", + "$id": "1295", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1250", + "$id": "1296", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16666,13 +17221,13 @@ }, "parameters": [ { - "$id": "1251", + "$id": "1297", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1252", + "$id": "1298", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16697,13 +17252,13 @@ ], "parameters": [ { - "$id": "1253", + "$id": "1299", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1254", + "$id": "1300", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -16714,7 +17269,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1255", + "$id": "1301", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16727,10 +17282,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -16745,17 +17300,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1256", + "$id": "1302", "kind": "client", "name": "Bars", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1257", + "$id": "1303", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -16764,20 +17319,20 @@ ], "doc": "Create a Bar", "operation": { - "$id": "1258", + "$id": "1304", "name": "createOrUpdate", "resourceName": "Bar", "doc": "Create a Bar", "accessibility": "public", "parameters": [ { - "$id": "1259", + "$id": "1305", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1260", + "$id": "1306", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16787,7 +17342,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1261", + "$id": "1307", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16801,18 +17356,18 @@ "readOnly": false }, { - "$id": "1262", + "$id": "1308", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1263", + "$id": "1309", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1264", + "$id": "1310", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16832,13 +17387,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.subscriptionId" }, { - "$id": "1265", + "$id": "1311", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1266", + "$id": "1312", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16856,13 +17411,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.resourceGroupName" }, { - "$id": "1267", + "$id": "1313", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1268", + "$id": "1314", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16880,13 +17435,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.fooName" }, { - "$id": "1269", + "$id": "1315", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1270", + "$id": "1316", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16904,7 +17459,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.barName" }, { - "$id": "1271", + "$id": "1317", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -16921,7 +17476,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.contentType" }, { - "$id": "1272", + "$id": "1318", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -16937,13 +17492,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.accept" }, { - "$id": "1273", + "$id": "1319", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "601" + "$ref": "621" }, "isApiVersion": false, "contentTypes": [ @@ -16963,7 +17518,7 @@ 200 ], "bodyType": { - "$ref": "601" + "$ref": "621" }, "headers": [], "isErrorResponse": false, @@ -16976,7 +17531,7 @@ 201 ], "bodyType": { - "$ref": "601" + "$ref": "621" }, "headers": [ { @@ -16984,7 +17539,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1274", + "$id": "1320", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16996,7 +17551,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1275", + "$id": "1321", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -17029,13 +17584,13 @@ }, "parameters": [ { - "$id": "1276", + "$id": "1322", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1277", + "$id": "1323", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17051,13 +17606,13 @@ "decorators": [] }, { - "$id": "1278", + "$id": "1324", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1279", + "$id": "1325", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17073,13 +17628,13 @@ "decorators": [] }, { - "$id": "1280", + "$id": "1326", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1281", + "$id": "1327", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17095,13 +17650,13 @@ "decorators": [] }, { - "$id": "1282", + "$id": "1328", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "601" + "$ref": "621" }, "location": "Body", "isApiVersion": false, @@ -17113,7 +17668,7 @@ "decorators": [] }, { - "$id": "1283", + "$id": "1329", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -17131,7 +17686,7 @@ "decorators": [] }, { - "$id": "1284", + "$id": "1330", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -17150,7 +17705,7 @@ ], "response": { "type": { - "$ref": "601" + "$ref": "621" } }, "isOverride": false, @@ -17164,13 +17719,13 @@ 200 ], "bodyType": { - "$ref": "601" + "$ref": "621" } } } }, { - "$id": "1285", + "$id": "1331", "kind": "lro", "name": "delete", "accessibility": "public", @@ -17179,20 +17734,20 @@ ], "doc": "Delete a Bar", "operation": { - "$id": "1286", + "$id": "1332", "name": "delete", "resourceName": "Bar", "doc": "Delete a Bar", "accessibility": "public", "parameters": [ { - "$id": "1287", + "$id": "1333", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1288", + "$id": "1334", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17202,7 +17757,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1289", + "$id": "1335", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -17216,18 +17771,18 @@ "readOnly": false }, { - "$id": "1290", + "$id": "1336", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1291", + "$id": "1337", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1292", + "$id": "1338", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17247,13 +17802,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.delete.subscriptionId" }, { - "$id": "1293", + "$id": "1339", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1294", + "$id": "1340", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17271,13 +17826,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.delete.resourceGroupName" }, { - "$id": "1295", + "$id": "1341", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1296", + "$id": "1342", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17295,13 +17850,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.delete.fooName" }, { - "$id": "1297", + "$id": "1343", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1298", + "$id": "1344", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17330,7 +17885,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1299", + "$id": "1345", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17342,7 +17897,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1300", + "$id": "1346", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -17376,13 +17931,13 @@ }, "parameters": [ { - "$id": "1301", + "$id": "1347", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1302", + "$id": "1348", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17398,13 +17953,13 @@ "decorators": [] }, { - "$id": "1303", + "$id": "1349", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1304", + "$id": "1350", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17420,13 +17975,13 @@ "decorators": [] }, { - "$id": "1305", + "$id": "1351", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1306", + "$id": "1352", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17457,7 +18012,7 @@ } }, { - "$id": "1307", + "$id": "1353", "kind": "paging", "name": "list", "accessibility": "public", @@ -17466,20 +18021,20 @@ ], "doc": "List Bar resources by Foo", "operation": { - "$id": "1308", + "$id": "1354", "name": "list", "resourceName": "Bar", "doc": "List Bar resources by Foo", "accessibility": "public", "parameters": [ { - "$id": "1309", + "$id": "1355", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1310", + "$id": "1356", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17489,7 +18044,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1311", + "$id": "1357", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -17503,18 +18058,18 @@ "readOnly": false }, { - "$id": "1312", + "$id": "1358", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1313", + "$id": "1359", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1314", + "$id": "1360", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17534,13 +18089,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.list.subscriptionId" }, { - "$id": "1315", + "$id": "1361", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1316", + "$id": "1362", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17558,13 +18113,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.list.resourceGroupName" }, { - "$id": "1317", + "$id": "1363", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1318", + "$id": "1364", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17582,7 +18137,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.list.fooName" }, { - "$id": "1319", + "$id": "1365", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -17604,7 +18159,7 @@ 200 ], "bodyType": { - "$ref": "622" + "$ref": "642" }, "headers": [], "isErrorResponse": false, @@ -17629,13 +18184,13 @@ }, "parameters": [ { - "$id": "1320", + "$id": "1366", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1321", + "$id": "1367", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17651,13 +18206,13 @@ "decorators": [] }, { - "$id": "1322", + "$id": "1368", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1323", + "$id": "1369", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17673,7 +18228,7 @@ "decorators": [] }, { - "$id": "1324", + "$id": "1370", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -17692,7 +18247,7 @@ ], "response": { "type": { - "$ref": "624" + "$ref": "644" }, "resultSegments": [ "value" @@ -17718,13 +18273,13 @@ ], "parameters": [ { - "$id": "1325", + "$id": "1371", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1326", + "$id": "1372", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -17735,7 +18290,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1327", + "$id": "1373", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -17748,10 +18303,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -17766,17 +18321,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1328", + "$id": "1374", "kind": "client", "name": "BarSettingsOperations", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1329", + "$id": "1375", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -17785,20 +18340,20 @@ ], "doc": "Create a BarSettingsResource", "operation": { - "$id": "1330", + "$id": "1376", "name": "createOrUpdate", "resourceName": "BarSettingsResource", "doc": "Create a BarSettingsResource", "accessibility": "public", "parameters": [ { - "$id": "1331", + "$id": "1377", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1332", + "$id": "1378", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17808,7 +18363,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1333", + "$id": "1379", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -17822,18 +18377,18 @@ "readOnly": false }, { - "$id": "1334", + "$id": "1380", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1335", + "$id": "1381", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1336", + "$id": "1382", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17853,13 +18408,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.subscriptionId" }, { - "$id": "1337", + "$id": "1383", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1338", + "$id": "1384", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17877,13 +18432,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.resourceGroupName" }, { - "$id": "1339", + "$id": "1385", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1340", + "$id": "1386", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17901,13 +18456,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.fooName" }, { - "$id": "1341", + "$id": "1387", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1342", + "$id": "1388", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17925,7 +18480,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.barName" }, { - "$id": "1343", + "$id": "1389", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -17942,7 +18497,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.contentType" }, { - "$id": "1344", + "$id": "1390", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -17958,13 +18513,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.accept" }, { - "$id": "1345", + "$id": "1391", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "628" + "$ref": "648" }, "isApiVersion": false, "contentTypes": [ @@ -17984,7 +18539,7 @@ 200 ], "bodyType": { - "$ref": "628" + "$ref": "648" }, "headers": [], "isErrorResponse": false, @@ -17997,7 +18552,7 @@ 201 ], "bodyType": { - "$ref": "628" + "$ref": "648" }, "headers": [ { @@ -18005,7 +18560,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1346", + "$id": "1392", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18017,7 +18572,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1347", + "$id": "1393", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -18050,13 +18605,13 @@ }, "parameters": [ { - "$id": "1348", + "$id": "1394", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1349", + "$id": "1395", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18072,13 +18627,13 @@ "decorators": [] }, { - "$id": "1350", + "$id": "1396", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1351", + "$id": "1397", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18094,13 +18649,13 @@ "decorators": [] }, { - "$id": "1352", + "$id": "1398", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1353", + "$id": "1399", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18116,13 +18671,13 @@ "decorators": [] }, { - "$id": "1354", + "$id": "1400", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "628" + "$ref": "648" }, "location": "Body", "isApiVersion": false, @@ -18134,7 +18689,7 @@ "decorators": [] }, { - "$id": "1355", + "$id": "1401", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -18152,7 +18707,7 @@ "decorators": [] }, { - "$id": "1356", + "$id": "1402", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -18171,7 +18726,7 @@ ], "response": { "type": { - "$ref": "628" + "$ref": "648" } }, "isOverride": false, @@ -18185,13 +18740,13 @@ 200 ], "bodyType": { - "$ref": "628" + "$ref": "648" } } } }, { - "$id": "1357", + "$id": "1403", "kind": "basic", "name": "get", "accessibility": "public", @@ -18200,20 +18755,20 @@ ], "doc": "Get a BarSettingsResource", "operation": { - "$id": "1358", + "$id": "1404", "name": "get", "resourceName": "BarSettingsResource", "doc": "Get a BarSettingsResource", "accessibility": "public", "parameters": [ { - "$id": "1359", + "$id": "1405", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1360", + "$id": "1406", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18223,7 +18778,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1361", + "$id": "1407", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -18237,18 +18792,18 @@ "readOnly": false }, { - "$id": "1362", + "$id": "1408", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1363", + "$id": "1409", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1364", + "$id": "1410", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18268,13 +18823,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.subscriptionId" }, { - "$id": "1365", + "$id": "1411", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1366", + "$id": "1412", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18292,13 +18847,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.resourceGroupName" }, { - "$id": "1367", + "$id": "1413", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1368", + "$id": "1414", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18316,13 +18871,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.fooName" }, { - "$id": "1369", + "$id": "1415", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1370", + "$id": "1416", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18340,7 +18895,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.barName" }, { - "$id": "1371", + "$id": "1417", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -18362,7 +18917,7 @@ 200 ], "bodyType": { - "$ref": "628" + "$ref": "648" }, "headers": [], "isErrorResponse": false, @@ -18387,13 +18942,13 @@ }, "parameters": [ { - "$id": "1372", + "$id": "1418", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1373", + "$id": "1419", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18409,13 +18964,13 @@ "decorators": [] }, { - "$id": "1374", + "$id": "1420", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1375", + "$id": "1421", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18431,13 +18986,13 @@ "decorators": [] }, { - "$id": "1376", + "$id": "1422", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1377", + "$id": "1423", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18453,7 +19008,7 @@ "decorators": [] }, { - "$id": "1378", + "$id": "1424", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -18472,7 +19027,7 @@ ], "response": { "type": { - "$ref": "628" + "$ref": "648" } }, "isOverride": false, @@ -18483,13 +19038,13 @@ ], "parameters": [ { - "$id": "1379", + "$id": "1425", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1380", + "$id": "1426", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -18500,7 +19055,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1381", + "$id": "1427", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -18513,10 +19068,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -18531,17 +19086,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1382", + "$id": "1428", "kind": "client", "name": "BarQuotaOperations", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1383", + "$id": "1429", "kind": "basic", "name": "get", "accessibility": "public", @@ -18550,20 +19105,20 @@ ], "doc": "Get a BarQuotaResource", "operation": { - "$id": "1384", + "$id": "1430", "name": "get", "resourceName": "BarQuotaResource", "doc": "Get a BarQuotaResource", "accessibility": "public", "parameters": [ { - "$id": "1385", + "$id": "1431", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1386", + "$id": "1432", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18573,7 +19128,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1387", + "$id": "1433", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -18587,18 +19142,18 @@ "readOnly": false }, { - "$id": "1388", + "$id": "1434", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1389", + "$id": "1435", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1390", + "$id": "1436", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18618,13 +19173,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.subscriptionId" }, { - "$id": "1391", + "$id": "1437", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1392", + "$id": "1438", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18642,13 +19197,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.resourceGroupName" }, { - "$id": "1393", + "$id": "1439", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1394", + "$id": "1440", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18666,13 +19221,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.fooName" }, { - "$id": "1395", + "$id": "1441", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1396", + "$id": "1442", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18690,7 +19245,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.barName" }, { - "$id": "1397", + "$id": "1443", "kind": "path", "name": "barQuotaResourceName", "serializedName": "barQuotaResourceName", @@ -18710,7 +19265,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.barQuotaResourceName" }, { - "$id": "1398", + "$id": "1444", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -18732,7 +19287,7 @@ 200 ], "bodyType": { - "$ref": "663" + "$ref": "683" }, "headers": [], "isErrorResponse": false, @@ -18757,13 +19312,13 @@ }, "parameters": [ { - "$id": "1399", + "$id": "1445", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1400", + "$id": "1446", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18779,13 +19334,13 @@ "decorators": [] }, { - "$id": "1401", + "$id": "1447", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1402", + "$id": "1448", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18801,13 +19356,13 @@ "decorators": [] }, { - "$id": "1403", + "$id": "1449", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1404", + "$id": "1450", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18823,7 +19378,7 @@ "decorators": [] }, { - "$id": "1405", + "$id": "1451", "kind": "method", "name": "barQuotaResourceName", "serializedName": "barQuotaResourceName", @@ -18841,7 +19396,7 @@ "decorators": [] }, { - "$id": "1406", + "$id": "1452", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -18860,7 +19415,7 @@ ], "response": { "type": { - "$ref": "663" + "$ref": "683" } }, "isOverride": false, @@ -18869,7 +19424,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get" }, { - "$id": "1407", + "$id": "1453", "kind": "lro", "name": "update", "accessibility": "public", @@ -18878,20 +19433,20 @@ ], "doc": "Update a BarQuotaResource", "operation": { - "$id": "1408", + "$id": "1454", "name": "update", "resourceName": "BarQuotaResource", "doc": "Update a BarQuotaResource", "accessibility": "public", "parameters": [ { - "$id": "1409", + "$id": "1455", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1410", + "$id": "1456", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18901,7 +19456,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1411", + "$id": "1457", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -18915,18 +19470,18 @@ "readOnly": false }, { - "$id": "1412", + "$id": "1458", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1413", + "$id": "1459", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1414", + "$id": "1460", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18946,13 +19501,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.subscriptionId" }, { - "$id": "1415", + "$id": "1461", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1416", + "$id": "1462", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18970,13 +19525,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.resourceGroupName" }, { - "$id": "1417", + "$id": "1463", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1418", + "$id": "1464", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18994,13 +19549,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.fooName" }, { - "$id": "1419", + "$id": "1465", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1420", + "$id": "1466", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19018,7 +19573,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.barName" }, { - "$id": "1421", + "$id": "1467", "kind": "path", "name": "barQuotaResourceName", "serializedName": "barQuotaResourceName", @@ -19038,7 +19593,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.barQuotaResourceName" }, { - "$id": "1422", + "$id": "1468", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -19055,7 +19610,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.contentType" }, { - "$id": "1423", + "$id": "1469", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -19071,13 +19626,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.accept" }, { - "$id": "1424", + "$id": "1470", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "663" + "$ref": "683" }, "isApiVersion": false, "contentTypes": [ @@ -19097,7 +19652,7 @@ 200 ], "bodyType": { - "$ref": "663" + "$ref": "683" }, "headers": [], "isErrorResponse": false, @@ -19115,7 +19670,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1425", + "$id": "1471", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19127,7 +19682,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1426", + "$id": "1472", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -19157,13 +19712,13 @@ }, "parameters": [ { - "$id": "1427", + "$id": "1473", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1428", + "$id": "1474", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19179,13 +19734,13 @@ "decorators": [] }, { - "$id": "1429", + "$id": "1475", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1430", + "$id": "1476", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19201,13 +19756,13 @@ "decorators": [] }, { - "$id": "1431", + "$id": "1477", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1432", + "$id": "1478", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19223,7 +19778,7 @@ "decorators": [] }, { - "$id": "1433", + "$id": "1479", "kind": "method", "name": "barQuotaResourceName", "serializedName": "barQuotaResourceName", @@ -19241,13 +19796,13 @@ "decorators": [] }, { - "$id": "1434", + "$id": "1480", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "663" + "$ref": "683" }, "location": "Body", "isApiVersion": false, @@ -19259,7 +19814,7 @@ "decorators": [] }, { - "$id": "1435", + "$id": "1481", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -19277,7 +19832,7 @@ "decorators": [] }, { - "$id": "1436", + "$id": "1482", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -19296,7 +19851,7 @@ ], "response": { "type": { - "$ref": "663" + "$ref": "683" } }, "isOverride": false, @@ -19310,7 +19865,7 @@ 200 ], "bodyType": { - "$ref": "663" + "$ref": "683" } } } @@ -19318,13 +19873,13 @@ ], "parameters": [ { - "$id": "1437", + "$id": "1483", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1438", + "$id": "1484", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -19335,7 +19890,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1439", + "$id": "1485", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -19348,10 +19903,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -19366,17 +19921,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1440", + "$id": "1486", "kind": "client", "name": "Employees", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1441", + "$id": "1487", "kind": "paging", "name": "GetEmployees", "accessibility": "public", @@ -19385,20 +19940,20 @@ ], "doc": "List Employee resources by Bar", "operation": { - "$id": "1442", + "$id": "1488", "name": "GetEmployees", "resourceName": "Employee", "doc": "List Employee resources by Bar", "accessibility": "public", "parameters": [ { - "$id": "1443", + "$id": "1489", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1444", + "$id": "1490", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19408,7 +19963,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1445", + "$id": "1491", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -19422,18 +19977,18 @@ "readOnly": false }, { - "$id": "1446", + "$id": "1492", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1447", + "$id": "1493", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1448", + "$id": "1494", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19453,13 +20008,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Employees.listByParent.subscriptionId" }, { - "$id": "1449", + "$id": "1495", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1450", + "$id": "1496", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19477,13 +20032,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Employees.listByParent.resourceGroupName" }, { - "$id": "1451", + "$id": "1497", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1452", + "$id": "1498", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19501,13 +20056,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Employees.listByParent.fooName" }, { - "$id": "1453", + "$id": "1499", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1454", + "$id": "1500", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19525,7 +20080,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Employees.listByParent.barName" }, { - "$id": "1455", + "$id": "1501", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -19547,7 +20102,7 @@ 200 ], "bodyType": { - "$ref": "668" + "$ref": "688" }, "headers": [], "isErrorResponse": false, @@ -19572,13 +20127,13 @@ }, "parameters": [ { - "$id": "1456", + "$id": "1502", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1457", + "$id": "1503", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19594,13 +20149,13 @@ "decorators": [] }, { - "$id": "1458", + "$id": "1504", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1459", + "$id": "1505", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19616,13 +20171,13 @@ "decorators": [] }, { - "$id": "1460", + "$id": "1506", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1461", + "$id": "1507", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19638,7 +20193,7 @@ "decorators": [] }, { - "$id": "1462", + "$id": "1508", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -19657,7 +20212,7 @@ ], "response": { "type": { - "$ref": "670" + "$ref": "690" }, "resultSegments": [ "value" @@ -19683,13 +20238,13 @@ ], "parameters": [ { - "$id": "1463", + "$id": "1509", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1464", + "$id": "1510", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -19700,7 +20255,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1465", + "$id": "1511", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -19713,10 +20268,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -19731,17 +20286,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1466", + "$id": "1512", "kind": "client", "name": "Bazs", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1467", + "$id": "1513", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -19750,20 +20305,20 @@ ], "doc": "Create a Baz", "operation": { - "$id": "1468", + "$id": "1514", "name": "createOrUpdate", "resourceName": "Baz", "doc": "Create a Baz", "accessibility": "public", "parameters": [ { - "$id": "1469", + "$id": "1515", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1470", + "$id": "1516", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19773,7 +20328,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1471", + "$id": "1517", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -19787,18 +20342,18 @@ "readOnly": false }, { - "$id": "1472", + "$id": "1518", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1473", + "$id": "1519", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1474", + "$id": "1520", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19818,13 +20373,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.subscriptionId" }, { - "$id": "1475", + "$id": "1521", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1476", + "$id": "1522", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19842,13 +20397,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.resourceGroupName" }, { - "$id": "1477", + "$id": "1523", "kind": "path", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1478", + "$id": "1524", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19866,7 +20421,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.bazName" }, { - "$id": "1479", + "$id": "1525", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -19883,7 +20438,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.contentType" }, { - "$id": "1480", + "$id": "1526", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -19899,13 +20454,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.accept" }, { - "$id": "1481", + "$id": "1527", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "683" + "$ref": "703" }, "isApiVersion": false, "contentTypes": [ @@ -19925,7 +20480,7 @@ 200 ], "bodyType": { - "$ref": "683" + "$ref": "703" }, "headers": [], "isErrorResponse": false, @@ -19938,7 +20493,7 @@ 201 ], "bodyType": { - "$ref": "683" + "$ref": "703" }, "headers": [ { @@ -19946,7 +20501,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1482", + "$id": "1528", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19958,7 +20513,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1483", + "$id": "1529", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -19991,13 +20546,13 @@ }, "parameters": [ { - "$id": "1484", + "$id": "1530", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1485", + "$id": "1531", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20013,13 +20568,13 @@ "decorators": [] }, { - "$id": "1486", + "$id": "1532", "kind": "method", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1487", + "$id": "1533", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20035,13 +20590,13 @@ "decorators": [] }, { - "$id": "1488", + "$id": "1534", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "683" + "$ref": "703" }, "location": "Body", "isApiVersion": false, @@ -20053,7 +20608,7 @@ "decorators": [] }, { - "$id": "1489", + "$id": "1535", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -20071,7 +20626,7 @@ "decorators": [] }, { - "$id": "1490", + "$id": "1536", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -20090,7 +20645,7 @@ ], "response": { "type": { - "$ref": "683" + "$ref": "703" } }, "isOverride": false, @@ -20104,13 +20659,13 @@ 200 ], "bodyType": { - "$ref": "683" + "$ref": "703" } } } }, { - "$id": "1491", + "$id": "1537", "kind": "basic", "name": "get", "accessibility": "public", @@ -20119,20 +20674,20 @@ ], "doc": "Get a Baz", "operation": { - "$id": "1492", + "$id": "1538", "name": "get", "resourceName": "Baz", "doc": "Get a Baz", "accessibility": "public", "parameters": [ { - "$id": "1493", + "$id": "1539", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1494", + "$id": "1540", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20142,7 +20697,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1495", + "$id": "1541", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -20156,18 +20711,18 @@ "readOnly": false }, { - "$id": "1496", + "$id": "1542", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1497", + "$id": "1543", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1498", + "$id": "1544", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20187,13 +20742,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get.subscriptionId" }, { - "$id": "1499", + "$id": "1545", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1500", + "$id": "1546", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20211,13 +20766,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get.resourceGroupName" }, { - "$id": "1501", + "$id": "1547", "kind": "path", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1502", + "$id": "1548", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20235,7 +20790,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get.bazName" }, { - "$id": "1503", + "$id": "1549", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -20257,7 +20812,7 @@ 200 ], "bodyType": { - "$ref": "683" + "$ref": "703" }, "headers": [], "isErrorResponse": false, @@ -20282,13 +20837,13 @@ }, "parameters": [ { - "$id": "1504", + "$id": "1550", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1505", + "$id": "1551", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20304,13 +20859,13 @@ "decorators": [] }, { - "$id": "1506", + "$id": "1552", "kind": "method", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1507", + "$id": "1553", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20326,7 +20881,7 @@ "decorators": [] }, { - "$id": "1508", + "$id": "1554", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -20345,7 +20900,7 @@ ], "response": { "type": { - "$ref": "683" + "$ref": "703" } }, "isOverride": false, @@ -20354,7 +20909,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get" }, { - "$id": "1509", + "$id": "1555", "kind": "lro", "name": "delete", "accessibility": "public", @@ -20363,20 +20918,20 @@ ], "doc": "Delete a Baz", "operation": { - "$id": "1510", + "$id": "1556", "name": "delete", "resourceName": "Baz", "doc": "Delete a Baz", "accessibility": "public", "parameters": [ { - "$id": "1511", + "$id": "1557", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1512", + "$id": "1558", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20386,7 +20941,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1513", + "$id": "1559", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -20400,18 +20955,18 @@ "readOnly": false }, { - "$id": "1514", + "$id": "1560", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1515", + "$id": "1561", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1516", + "$id": "1562", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20431,13 +20986,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.delete.subscriptionId" }, { - "$id": "1517", + "$id": "1563", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1518", + "$id": "1564", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20455,13 +21010,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.delete.resourceGroupName" }, { - "$id": "1519", + "$id": "1565", "kind": "path", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1520", + "$id": "1566", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20490,7 +21045,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1521", + "$id": "1567", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20502,7 +21057,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1522", + "$id": "1568", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -20536,13 +21091,13 @@ }, "parameters": [ { - "$id": "1523", + "$id": "1569", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1524", + "$id": "1570", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20558,13 +21113,13 @@ "decorators": [] }, { - "$id": "1525", + "$id": "1571", "kind": "method", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1526", + "$id": "1572", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20595,7 +21150,7 @@ } }, { - "$id": "1527", + "$id": "1573", "kind": "lro", "name": "update", "accessibility": "public", @@ -20604,20 +21159,20 @@ ], "doc": "Update a Baz", "operation": { - "$id": "1528", + "$id": "1574", "name": "update", "resourceName": "Baz", "doc": "Update a Baz", "accessibility": "public", "parameters": [ { - "$id": "1529", + "$id": "1575", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1530", + "$id": "1576", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20627,7 +21182,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1531", + "$id": "1577", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -20641,18 +21196,18 @@ "readOnly": false }, { - "$id": "1532", + "$id": "1578", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1533", + "$id": "1579", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1534", + "$id": "1580", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20672,13 +21227,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.subscriptionId" }, { - "$id": "1535", + "$id": "1581", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1536", + "$id": "1582", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20696,13 +21251,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.resourceGroupName" }, { - "$id": "1537", + "$id": "1583", "kind": "path", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1538", + "$id": "1584", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20720,7 +21275,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.bazName" }, { - "$id": "1539", + "$id": "1585", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -20737,7 +21292,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.contentType" }, { - "$id": "1540", + "$id": "1586", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -20753,13 +21308,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.accept" }, { - "$id": "1541", + "$id": "1587", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "683" + "$ref": "703" }, "isApiVersion": false, "contentTypes": [ @@ -20779,7 +21334,7 @@ 200 ], "bodyType": { - "$ref": "683" + "$ref": "703" }, "headers": [], "isErrorResponse": false, @@ -20797,7 +21352,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1542", + "$id": "1588", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20809,7 +21364,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1543", + "$id": "1589", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -20839,13 +21394,13 @@ }, "parameters": [ { - "$id": "1544", + "$id": "1590", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1545", + "$id": "1591", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20861,13 +21416,13 @@ "decorators": [] }, { - "$id": "1546", + "$id": "1592", "kind": "method", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1547", + "$id": "1593", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20883,13 +21438,13 @@ "decorators": [] }, { - "$id": "1548", + "$id": "1594", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "683" + "$ref": "703" }, "location": "Body", "isApiVersion": false, @@ -20901,7 +21456,7 @@ "decorators": [] }, { - "$id": "1549", + "$id": "1595", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -20919,7 +21474,7 @@ "decorators": [] }, { - "$id": "1550", + "$id": "1596", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -20938,7 +21493,7 @@ ], "response": { "type": { - "$ref": "683" + "$ref": "703" } }, "isOverride": false, @@ -20952,13 +21507,13 @@ 200 ], "bodyType": { - "$ref": "683" + "$ref": "703" } } } }, { - "$id": "1551", + "$id": "1597", "kind": "paging", "name": "list", "accessibility": "public", @@ -20967,20 +21522,20 @@ ], "doc": "List Baz resources by resource group", "operation": { - "$id": "1552", + "$id": "1598", "name": "list", "resourceName": "Baz", "doc": "List Baz resources by resource group", "accessibility": "public", "parameters": [ { - "$id": "1553", + "$id": "1599", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1554", + "$id": "1600", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20990,7 +21545,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1555", + "$id": "1601", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -21004,18 +21559,18 @@ "readOnly": false }, { - "$id": "1556", + "$id": "1602", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1557", + "$id": "1603", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1558", + "$id": "1604", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21035,13 +21590,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.list.subscriptionId" }, { - "$id": "1559", + "$id": "1605", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1560", + "$id": "1606", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21059,7 +21614,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.list.resourceGroupName" }, { - "$id": "1561", + "$id": "1607", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -21081,7 +21636,7 @@ 200 ], "bodyType": { - "$ref": "701" + "$ref": "721" }, "headers": [], "isErrorResponse": false, @@ -21106,13 +21661,13 @@ }, "parameters": [ { - "$id": "1562", + "$id": "1608", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1563", + "$id": "1609", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21128,7 +21683,7 @@ "decorators": [] }, { - "$id": "1564", + "$id": "1610", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -21147,7 +21702,7 @@ ], "response": { "type": { - "$ref": "703" + "$ref": "723" }, "resultSegments": [ "value" @@ -21171,7 +21726,7 @@ } }, { - "$id": "1565", + "$id": "1611", "kind": "paging", "name": "listBySubscription", "accessibility": "public", @@ -21180,20 +21735,20 @@ ], "doc": "List Baz resources by subscription ID", "operation": { - "$id": "1566", + "$id": "1612", "name": "listBySubscription", "resourceName": "Baz", "doc": "List Baz resources by subscription ID", "accessibility": "public", "parameters": [ { - "$id": "1567", + "$id": "1613", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1568", + "$id": "1614", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21203,7 +21758,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1569", + "$id": "1615", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -21217,18 +21772,18 @@ "readOnly": false }, { - "$id": "1570", + "$id": "1616", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1571", + "$id": "1617", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1572", + "$id": "1618", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21248,12 +21803,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.listBySubscription.subscriptionId" }, { - "$id": "1573", + "$id": "1619", "kind": "query", "name": "$top", "serializedName": "$top", "type": { - "$id": "1574", + "$id": "1620", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -21268,7 +21823,7 @@ "readOnly": false }, { - "$id": "1575", + "$id": "1621", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -21290,7 +21845,7 @@ 200 ], "bodyType": { - "$ref": "701" + "$ref": "721" }, "headers": [], "isErrorResponse": false, @@ -21315,12 +21870,12 @@ }, "parameters": [ { - "$id": "1576", + "$id": "1622", "kind": "method", "name": "$top", "serializedName": "$top", "type": { - "$id": "1577", + "$id": "1623", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -21336,7 +21891,7 @@ "decorators": [] }, { - "$id": "1578", + "$id": "1624", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -21355,7 +21910,7 @@ ], "response": { "type": { - "$ref": "703" + "$ref": "723" }, "resultSegments": [ "value" @@ -21381,13 +21936,13 @@ ], "parameters": [ { - "$id": "1579", + "$id": "1625", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1580", + "$id": "1626", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -21398,7 +21953,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1581", + "$id": "1627", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -21411,10 +21966,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -21429,17 +21984,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1582", + "$id": "1628", "kind": "client", "name": "Zoos", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1583", + "$id": "1629", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -21448,20 +22003,20 @@ ], "doc": "Create a Zoo", "operation": { - "$id": "1584", + "$id": "1630", "name": "createOrUpdate", "resourceName": "Zoo", "doc": "Create a Zoo", "accessibility": "public", "parameters": [ { - "$id": "1585", + "$id": "1631", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1586", + "$id": "1632", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21471,7 +22026,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1587", + "$id": "1633", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -21485,18 +22040,18 @@ "readOnly": false }, { - "$id": "1588", + "$id": "1634", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1589", + "$id": "1635", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1590", + "$id": "1636", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21516,13 +22071,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.subscriptionId" }, { - "$id": "1591", + "$id": "1637", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1592", + "$id": "1638", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21540,13 +22095,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.resourceGroupName" }, { - "$id": "1593", + "$id": "1639", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1594", + "$id": "1640", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21564,7 +22119,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.zooName" }, { - "$id": "1595", + "$id": "1641", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -21581,7 +22136,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.contentType" }, { - "$id": "1596", + "$id": "1642", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -21597,13 +22152,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.accept" }, { - "$id": "1597", + "$id": "1643", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "707" + "$ref": "727" }, "isApiVersion": false, "contentTypes": [ @@ -21623,7 +22178,7 @@ 200 ], "bodyType": { - "$ref": "707" + "$ref": "727" }, "headers": [], "isErrorResponse": false, @@ -21636,7 +22191,7 @@ 201 ], "bodyType": { - "$ref": "707" + "$ref": "727" }, "headers": [ { @@ -21644,7 +22199,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1598", + "$id": "1644", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21656,7 +22211,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1599", + "$id": "1645", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -21689,13 +22244,13 @@ }, "parameters": [ { - "$id": "1600", + "$id": "1646", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1601", + "$id": "1647", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21711,13 +22266,13 @@ "decorators": [] }, { - "$id": "1602", + "$id": "1648", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1603", + "$id": "1649", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21733,13 +22288,13 @@ "decorators": [] }, { - "$id": "1604", + "$id": "1650", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "707" + "$ref": "727" }, "location": "Body", "isApiVersion": false, @@ -21751,7 +22306,7 @@ "decorators": [] }, { - "$id": "1605", + "$id": "1651", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -21769,7 +22324,7 @@ "decorators": [] }, { - "$id": "1606", + "$id": "1652", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -21788,7 +22343,7 @@ ], "response": { "type": { - "$ref": "707" + "$ref": "727" } }, "isOverride": false, @@ -21802,13 +22357,13 @@ 200 ], "bodyType": { - "$ref": "707" + "$ref": "727" } } } }, { - "$id": "1607", + "$id": "1653", "kind": "basic", "name": "get", "accessibility": "public", @@ -21817,20 +22372,20 @@ ], "doc": "Get a Zoo", "operation": { - "$id": "1608", + "$id": "1654", "name": "get", "resourceName": "Zoo", "doc": "Get a Zoo", "accessibility": "public", "parameters": [ { - "$id": "1609", + "$id": "1655", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1610", + "$id": "1656", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21840,7 +22395,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1611", + "$id": "1657", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -21854,18 +22409,18 @@ "readOnly": false }, { - "$id": "1612", + "$id": "1658", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1613", + "$id": "1659", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1614", + "$id": "1660", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21885,13 +22440,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get.subscriptionId" }, { - "$id": "1615", + "$id": "1661", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1616", + "$id": "1662", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21909,13 +22464,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get.resourceGroupName" }, { - "$id": "1617", + "$id": "1663", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1618", + "$id": "1664", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21933,7 +22488,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get.zooName" }, { - "$id": "1619", + "$id": "1665", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -21955,7 +22510,7 @@ 200 ], "bodyType": { - "$ref": "707" + "$ref": "727" }, "headers": [], "isErrorResponse": false, @@ -21980,13 +22535,13 @@ }, "parameters": [ { - "$id": "1620", + "$id": "1666", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1621", + "$id": "1667", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22002,13 +22557,13 @@ "decorators": [] }, { - "$id": "1622", + "$id": "1668", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1623", + "$id": "1669", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22024,7 +22579,7 @@ "decorators": [] }, { - "$id": "1624", + "$id": "1670", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -22043,7 +22598,7 @@ ], "response": { "type": { - "$ref": "707" + "$ref": "727" } }, "isOverride": false, @@ -22052,7 +22607,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get" }, { - "$id": "1625", + "$id": "1671", "kind": "lro", "name": "delete", "accessibility": "public", @@ -22061,20 +22616,20 @@ ], "doc": "Delete a Zoo", "operation": { - "$id": "1626", + "$id": "1672", "name": "delete", "resourceName": "Zoo", "doc": "Delete a Zoo", "accessibility": "public", "parameters": [ { - "$id": "1627", + "$id": "1673", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1628", + "$id": "1674", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22084,7 +22639,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1629", + "$id": "1675", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -22098,18 +22653,18 @@ "readOnly": false }, { - "$id": "1630", + "$id": "1676", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1631", + "$id": "1677", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1632", + "$id": "1678", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22129,13 +22684,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.delete.subscriptionId" }, { - "$id": "1633", + "$id": "1679", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1634", + "$id": "1680", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22153,13 +22708,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.delete.resourceGroupName" }, { - "$id": "1635", + "$id": "1681", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1636", + "$id": "1682", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22188,7 +22743,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1637", + "$id": "1683", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22200,7 +22755,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1638", + "$id": "1684", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -22234,13 +22789,13 @@ }, "parameters": [ { - "$id": "1639", + "$id": "1685", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1640", + "$id": "1686", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22256,13 +22811,13 @@ "decorators": [] }, { - "$id": "1641", + "$id": "1687", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1642", + "$id": "1688", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22293,7 +22848,7 @@ } }, { - "$id": "1643", + "$id": "1689", "kind": "lro", "name": "update", "accessibility": "public", @@ -22302,20 +22857,20 @@ ], "doc": "Update a Zoo", "operation": { - "$id": "1644", + "$id": "1690", "name": "update", "resourceName": "Zoo", "doc": "Update a Zoo", "accessibility": "public", "parameters": [ { - "$id": "1645", + "$id": "1691", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1646", + "$id": "1692", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22325,7 +22880,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1647", + "$id": "1693", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -22339,18 +22894,18 @@ "readOnly": false }, { - "$id": "1648", + "$id": "1694", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1649", + "$id": "1695", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1650", + "$id": "1696", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22370,13 +22925,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.subscriptionId" }, { - "$id": "1651", + "$id": "1697", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1652", + "$id": "1698", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22394,13 +22949,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.resourceGroupName" }, { - "$id": "1653", + "$id": "1699", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1654", + "$id": "1700", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22418,7 +22973,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.zooName" }, { - "$id": "1655", + "$id": "1701", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -22435,7 +22990,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.contentType" }, { - "$id": "1656", + "$id": "1702", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -22451,13 +23006,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.accept" }, { - "$id": "1657", + "$id": "1703", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "723" + "$ref": "743" }, "isApiVersion": false, "contentTypes": [ @@ -22477,7 +23032,7 @@ 200 ], "bodyType": { - "$ref": "707" + "$ref": "727" }, "headers": [], "isErrorResponse": false, @@ -22495,7 +23050,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1658", + "$id": "1704", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22507,7 +23062,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1659", + "$id": "1705", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -22537,13 +23092,13 @@ }, "parameters": [ { - "$id": "1660", + "$id": "1706", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1661", + "$id": "1707", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22559,13 +23114,13 @@ "decorators": [] }, { - "$id": "1662", + "$id": "1708", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1663", + "$id": "1709", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22581,13 +23136,13 @@ "decorators": [] }, { - "$id": "1664", + "$id": "1710", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "723" + "$ref": "743" }, "location": "Body", "isApiVersion": false, @@ -22599,7 +23154,7 @@ "decorators": [] }, { - "$id": "1665", + "$id": "1711", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -22617,7 +23172,7 @@ "decorators": [] }, { - "$id": "1666", + "$id": "1712", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -22636,7 +23191,7 @@ ], "response": { "type": { - "$ref": "707" + "$ref": "727" } }, "isOverride": false, @@ -22650,13 +23205,13 @@ 200 ], "bodyType": { - "$ref": "707" + "$ref": "727" } } } }, { - "$id": "1667", + "$id": "1713", "kind": "paging", "name": "list", "accessibility": "public", @@ -22665,20 +23220,20 @@ ], "doc": "List Zoo resources by resource group", "operation": { - "$id": "1668", + "$id": "1714", "name": "list", "resourceName": "Zoo", "doc": "List Zoo resources by resource group", "accessibility": "public", "parameters": [ { - "$id": "1669", + "$id": "1715", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1670", + "$id": "1716", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22688,7 +23243,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1671", + "$id": "1717", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -22702,18 +23257,18 @@ "readOnly": false }, { - "$id": "1672", + "$id": "1718", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1673", + "$id": "1719", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1674", + "$id": "1720", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22733,13 +23288,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.list.subscriptionId" }, { - "$id": "1675", + "$id": "1721", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1676", + "$id": "1722", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22757,7 +23312,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.list.resourceGroupName" }, { - "$id": "1677", + "$id": "1723", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -22779,7 +23334,7 @@ 200 ], "bodyType": { - "$ref": "729" + "$ref": "749" }, "headers": [], "isErrorResponse": false, @@ -22804,13 +23359,13 @@ }, "parameters": [ { - "$id": "1678", + "$id": "1724", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1679", + "$id": "1725", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22826,7 +23381,7 @@ "decorators": [] }, { - "$id": "1680", + "$id": "1726", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -22845,7 +23400,7 @@ ], "response": { "type": { - "$ref": "731" + "$ref": "751" }, "resultSegments": [ "value" @@ -22869,7 +23424,7 @@ } }, { - "$id": "1681", + "$id": "1727", "kind": "paging", "name": "listBySubscription", "accessibility": "public", @@ -22878,20 +23433,20 @@ ], "doc": "List Zoo resources by subscription ID", "operation": { - "$id": "1682", + "$id": "1728", "name": "listBySubscription", "resourceName": "Zoo", "doc": "List Zoo resources by subscription ID", "accessibility": "public", "parameters": [ { - "$id": "1683", + "$id": "1729", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1684", + "$id": "1730", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22901,7 +23456,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1685", + "$id": "1731", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -22915,18 +23470,18 @@ "readOnly": false }, { - "$id": "1686", + "$id": "1732", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1687", + "$id": "1733", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1688", + "$id": "1734", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22946,7 +23501,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.listBySubscription.subscriptionId" }, { - "$id": "1689", + "$id": "1735", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -22968,7 +23523,7 @@ 200 ], "bodyType": { - "$ref": "729" + "$ref": "749" }, "headers": [], "isErrorResponse": false, @@ -22993,7 +23548,7 @@ }, "parameters": [ { - "$id": "1690", + "$id": "1736", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -23012,7 +23567,7 @@ ], "response": { "type": { - "$ref": "731" + "$ref": "751" }, "resultSegments": [ "value" @@ -23036,7 +23591,7 @@ } }, { - "$id": "1691", + "$id": "1737", "kind": "basic", "name": "zooAddressList", "accessibility": "public", @@ -23045,20 +23600,20 @@ ], "doc": "A synchronous resource action.", "operation": { - "$id": "1692", + "$id": "1738", "name": "zooAddressList", "resourceName": "Zoos", "doc": "A synchronous resource action.", "accessibility": "public", "parameters": [ { - "$id": "1693", + "$id": "1739", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1694", + "$id": "1740", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23068,7 +23623,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1695", + "$id": "1741", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -23082,18 +23637,18 @@ "readOnly": false }, { - "$id": "1696", + "$id": "1742", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1697", + "$id": "1743", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1698", + "$id": "1744", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23113,13 +23668,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList.subscriptionId" }, { - "$id": "1699", + "$id": "1745", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1700", + "$id": "1746", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23137,13 +23692,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList.resourceGroupName" }, { - "$id": "1701", + "$id": "1747", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1702", + "$id": "1748", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23161,12 +23716,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList.zooName" }, { - "$id": "1703", + "$id": "1749", "kind": "query", "name": "$maxpagesize", "serializedName": "$maxpagesize", "type": { - "$id": "1704", + "$id": "1750", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -23181,7 +23736,7 @@ "readOnly": false }, { - "$id": "1705", + "$id": "1751", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -23203,7 +23758,7 @@ 200 ], "bodyType": { - "$ref": "735" + "$ref": "755" }, "headers": [], "isErrorResponse": false, @@ -23228,13 +23783,13 @@ }, "parameters": [ { - "$id": "1706", + "$id": "1752", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1707", + "$id": "1753", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23250,13 +23805,13 @@ "decorators": [] }, { - "$id": "1708", + "$id": "1754", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1709", + "$id": "1755", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23272,12 +23827,12 @@ "decorators": [] }, { - "$id": "1710", + "$id": "1756", "kind": "method", "name": "$maxpagesize", "serializedName": "$maxpagesize", "type": { - "$id": "1711", + "$id": "1757", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -23293,7 +23848,7 @@ "decorators": [] }, { - "$id": "1712", + "$id": "1758", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -23312,7 +23867,7 @@ ], "response": { "type": { - "$ref": "735" + "$ref": "755" } }, "isOverride": false, @@ -23323,13 +23878,13 @@ ], "parameters": [ { - "$id": "1713", + "$id": "1759", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1714", + "$id": "1760", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -23340,7 +23895,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1715", + "$id": "1761", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -23353,10 +23908,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -23371,17 +23926,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1716", + "$id": "1762", "kind": "client", "name": "EndpointResources", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1717", + "$id": "1763", "kind": "basic", "name": "get", "accessibility": "public", @@ -23390,20 +23945,20 @@ ], "doc": "Gets the endpoint to the resource.", "operation": { - "$id": "1718", + "$id": "1764", "name": "get", "resourceName": "EndpointResource", "doc": "Gets the endpoint to the resource.", "accessibility": "public", "parameters": [ { - "$id": "1719", + "$id": "1765", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1720", + "$id": "1766", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23413,7 +23968,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1721", + "$id": "1767", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -23427,13 +23982,13 @@ "readOnly": false }, { - "$id": "1722", + "$id": "1768", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1723", + "$id": "1769", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23451,13 +24006,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.get.resourceUri" }, { - "$id": "1724", + "$id": "1770", "kind": "path", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1725", + "$id": "1771", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23475,7 +24030,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.get.endpointName" }, { - "$id": "1726", + "$id": "1772", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -23497,7 +24052,7 @@ 200 ], "bodyType": { - "$ref": "741" + "$ref": "761" }, "headers": [], "isErrorResponse": false, @@ -23522,13 +24077,13 @@ }, "parameters": [ { - "$id": "1727", + "$id": "1773", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1728", + "$id": "1774", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23544,13 +24099,13 @@ "decorators": [] }, { - "$id": "1729", + "$id": "1775", "kind": "method", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1730", + "$id": "1776", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23566,7 +24121,7 @@ "decorators": [] }, { - "$id": "1731", + "$id": "1777", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -23585,7 +24140,7 @@ ], "response": { "type": { - "$ref": "741" + "$ref": "761" } }, "isOverride": false, @@ -23594,7 +24149,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.get" }, { - "$id": "1732", + "$id": "1778", "kind": "basic", "name": "createOrUpdate", "accessibility": "public", @@ -23603,20 +24158,20 @@ ], "doc": "Create or update the endpoint to the target resource.", "operation": { - "$id": "1733", + "$id": "1779", "name": "createOrUpdate", "resourceName": "EndpointResource", "doc": "Create or update the endpoint to the target resource.", "accessibility": "public", "parameters": [ { - "$id": "1734", + "$id": "1780", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1735", + "$id": "1781", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23626,7 +24181,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1736", + "$id": "1782", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -23640,13 +24195,13 @@ "readOnly": false }, { - "$id": "1737", + "$id": "1783", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1738", + "$id": "1784", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23664,13 +24219,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.resourceUri" }, { - "$id": "1739", + "$id": "1785", "kind": "path", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1740", + "$id": "1786", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23688,7 +24243,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.endpointName" }, { - "$id": "1741", + "$id": "1787", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -23705,7 +24260,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.contentType" }, { - "$id": "1742", + "$id": "1788", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -23721,13 +24276,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.accept" }, { - "$id": "1743", + "$id": "1789", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "741" + "$ref": "761" }, "isApiVersion": false, "contentTypes": [ @@ -23747,7 +24302,7 @@ 200 ], "bodyType": { - "$ref": "741" + "$ref": "761" }, "headers": [], "isErrorResponse": false, @@ -23775,13 +24330,13 @@ }, "parameters": [ { - "$id": "1744", + "$id": "1790", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1745", + "$id": "1791", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23797,13 +24352,13 @@ "decorators": [] }, { - "$id": "1746", + "$id": "1792", "kind": "method", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1747", + "$id": "1793", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23819,13 +24374,13 @@ "decorators": [] }, { - "$id": "1748", + "$id": "1794", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "741" + "$ref": "761" }, "location": "Body", "isApiVersion": false, @@ -23837,7 +24392,7 @@ "decorators": [] }, { - "$id": "1749", + "$id": "1795", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -23855,7 +24410,7 @@ "decorators": [] }, { - "$id": "1750", + "$id": "1796", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -23874,7 +24429,7 @@ ], "response": { "type": { - "$ref": "741" + "$ref": "761" } }, "isOverride": false, @@ -23883,7 +24438,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate" }, { - "$id": "1751", + "$id": "1797", "kind": "basic", "name": "update", "accessibility": "public", @@ -23892,20 +24447,20 @@ ], "doc": "Update the endpoint to the target resource.", "operation": { - "$id": "1752", + "$id": "1798", "name": "update", "resourceName": "EndpointResource", "doc": "Update the endpoint to the target resource.", "accessibility": "public", "parameters": [ { - "$id": "1753", + "$id": "1799", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1754", + "$id": "1800", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23915,7 +24470,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1755", + "$id": "1801", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -23929,13 +24484,13 @@ "readOnly": false }, { - "$id": "1756", + "$id": "1802", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1757", + "$id": "1803", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23953,13 +24508,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.resourceUri" }, { - "$id": "1758", + "$id": "1804", "kind": "path", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1759", + "$id": "1805", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23977,7 +24532,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.endpointName" }, { - "$id": "1760", + "$id": "1806", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -23994,7 +24549,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.contentType" }, { - "$id": "1761", + "$id": "1807", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -24010,13 +24565,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.accept" }, { - "$id": "1762", + "$id": "1808", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "741" + "$ref": "761" }, "isApiVersion": false, "contentTypes": [ @@ -24036,7 +24591,7 @@ 200 ], "bodyType": { - "$ref": "741" + "$ref": "761" }, "headers": [], "isErrorResponse": false, @@ -24064,13 +24619,13 @@ }, "parameters": [ { - "$id": "1763", + "$id": "1809", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1764", + "$id": "1810", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24086,13 +24641,13 @@ "decorators": [] }, { - "$id": "1765", + "$id": "1811", "kind": "method", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1766", + "$id": "1812", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24108,13 +24663,13 @@ "decorators": [] }, { - "$id": "1767", + "$id": "1813", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "741" + "$ref": "761" }, "location": "Body", "isApiVersion": false, @@ -24126,7 +24681,7 @@ "decorators": [] }, { - "$id": "1768", + "$id": "1814", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -24144,7 +24699,7 @@ "decorators": [] }, { - "$id": "1769", + "$id": "1815", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -24163,7 +24718,7 @@ ], "response": { "type": { - "$ref": "741" + "$ref": "761" } }, "isOverride": false, @@ -24172,7 +24727,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update" }, { - "$id": "1770", + "$id": "1816", "kind": "basic", "name": "delete", "accessibility": "public", @@ -24181,20 +24736,20 @@ ], "doc": "Deletes the endpoint access to the target resource.", "operation": { - "$id": "1771", + "$id": "1817", "name": "delete", "resourceName": "EndpointResource", "doc": "Deletes the endpoint access to the target resource.", "accessibility": "public", "parameters": [ { - "$id": "1772", + "$id": "1818", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1773", + "$id": "1819", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24204,7 +24759,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1774", + "$id": "1820", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -24218,13 +24773,13 @@ "readOnly": false }, { - "$id": "1775", + "$id": "1821", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1776", + "$id": "1822", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24242,13 +24797,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.delete.resourceUri" }, { - "$id": "1777", + "$id": "1823", "kind": "path", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1778", + "$id": "1824", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24298,13 +24853,13 @@ }, "parameters": [ { - "$id": "1779", + "$id": "1825", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1780", + "$id": "1826", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24320,13 +24875,13 @@ "decorators": [] }, { - "$id": "1781", + "$id": "1827", "kind": "method", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1782", + "$id": "1828", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24349,7 +24904,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.delete" }, { - "$id": "1783", + "$id": "1829", "kind": "paging", "name": "list", "accessibility": "public", @@ -24358,20 +24913,20 @@ ], "doc": "List EndpointResource resources by parent", "operation": { - "$id": "1784", + "$id": "1830", "name": "list", "resourceName": "EndpointResource", "doc": "List EndpointResource resources by parent", "accessibility": "public", "parameters": [ { - "$id": "1785", + "$id": "1831", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1786", + "$id": "1832", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24381,7 +24936,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1787", + "$id": "1833", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -24395,13 +24950,13 @@ "readOnly": false }, { - "$id": "1788", + "$id": "1834", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1789", + "$id": "1835", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24419,7 +24974,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.list.resourceUri" }, { - "$id": "1790", + "$id": "1836", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -24441,7 +24996,7 @@ 200 ], "bodyType": { - "$ref": "754" + "$ref": "774" }, "headers": [], "isErrorResponse": false, @@ -24466,13 +25021,13 @@ }, "parameters": [ { - "$id": "1791", + "$id": "1837", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1792", + "$id": "1838", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24488,7 +25043,7 @@ "decorators": [] }, { - "$id": "1793", + "$id": "1839", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -24507,7 +25062,7 @@ ], "response": { "type": { - "$ref": "756" + "$ref": "776" }, "resultSegments": [ "value" @@ -24533,13 +25088,13 @@ ], "parameters": [ { - "$id": "1794", + "$id": "1840", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1795", + "$id": "1841", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -24550,7 +25105,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1796", + "$id": "1842", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -24563,7 +25118,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" } ], "initializedBy": 0, @@ -24578,17 +25133,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1797", + "$id": "1843", "kind": "client", "name": "SolutionResources", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1798", + "$id": "1844", "kind": "basic", "name": "get", "accessibility": "public", @@ -24597,20 +25152,20 @@ ], "doc": "Get a SelfHelpResource", "operation": { - "$id": "1799", + "$id": "1845", "name": "get", "resourceName": "SelfHelpResource", "doc": "Get a SelfHelpResource", "accessibility": "public", "parameters": [ { - "$id": "1800", + "$id": "1846", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1801", + "$id": "1847", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24620,7 +25175,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1802", + "$id": "1848", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -24634,13 +25189,13 @@ "readOnly": false }, { - "$id": "1803", + "$id": "1849", "kind": "path", "name": "scope", "serializedName": "scope", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1804", + "$id": "1850", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24658,13 +25213,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SolutionResources.get.scope" }, { - "$id": "1805", + "$id": "1851", "kind": "path", "name": "selfHelpName", "serializedName": "selfHelpName", "doc": "The name of the SelfHelpResource", "type": { - "$id": "1806", + "$id": "1852", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24682,7 +25237,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SolutionResources.get.selfHelpName" }, { - "$id": "1807", + "$id": "1853", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -24704,7 +25259,7 @@ 200 ], "bodyType": { - "$ref": "760" + "$ref": "780" }, "headers": [], "isErrorResponse": false, @@ -24724,13 +25279,13 @@ }, "parameters": [ { - "$id": "1808", + "$id": "1854", "kind": "method", "name": "scope", "serializedName": "scope", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1809", + "$id": "1855", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24746,13 +25301,13 @@ "decorators": [] }, { - "$id": "1810", + "$id": "1856", "kind": "method", "name": "selfHelpName", "serializedName": "selfHelpName", "doc": "The name of the SelfHelpResource", "type": { - "$id": "1811", + "$id": "1857", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24768,7 +25323,7 @@ "decorators": [] }, { - "$id": "1812", + "$id": "1858", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -24787,7 +25342,7 @@ ], "response": { "type": { - "$ref": "760" + "$ref": "780" } }, "isOverride": false, @@ -24798,13 +25353,13 @@ ], "parameters": [ { - "$id": "1813", + "$id": "1859", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1814", + "$id": "1860", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -24815,7 +25370,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1815", + "$id": "1861", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -24828,7 +25383,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" } ], "initializedBy": 0, @@ -24843,17 +25398,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1816", + "$id": "1862", "kind": "client", "name": "PlaywrightQuotas", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1817", + "$id": "1863", "kind": "basic", "name": "get", "accessibility": "public", @@ -24862,20 +25417,20 @@ ], "doc": "Get subscription-level location-based Playwright quota resource by name.", "operation": { - "$id": "1818", + "$id": "1864", "name": "get", "resourceName": "PlaywrightQuota", "doc": "Get subscription-level location-based Playwright quota resource by name.", "accessibility": "public", "parameters": [ { - "$id": "1819", + "$id": "1865", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1820", + "$id": "1866", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24885,7 +25440,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1821", + "$id": "1867", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -24899,18 +25454,18 @@ "readOnly": false }, { - "$id": "1822", + "$id": "1868", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1823", + "$id": "1869", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1824", + "$id": "1870", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24930,18 +25485,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get.subscriptionId" }, { - "$id": "1825", + "$id": "1871", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1826", + "$id": "1872", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1827", + "$id": "1873", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24961,7 +25516,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get.location" }, { - "$id": "1828", + "$id": "1874", "kind": "path", "name": "playwrightQuotaName", "serializedName": "playwrightQuotaName", @@ -24981,7 +25536,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get.playwrightQuotaName" }, { - "$id": "1829", + "$id": "1875", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -25003,7 +25558,7 @@ 200 ], "bodyType": { - "$ref": "768" + "$ref": "788" }, "headers": [], "isErrorResponse": false, @@ -25028,18 +25583,18 @@ }, "parameters": [ { - "$id": "1830", + "$id": "1876", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1831", + "$id": "1877", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1832", + "$id": "1878", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25057,7 +25612,7 @@ "decorators": [] }, { - "$id": "1833", + "$id": "1879", "kind": "method", "name": "playwrightQuotaName", "serializedName": "playwrightQuotaName", @@ -25075,7 +25630,7 @@ "decorators": [] }, { - "$id": "1834", + "$id": "1880", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -25094,7 +25649,7 @@ ], "response": { "type": { - "$ref": "768" + "$ref": "788" } }, "isOverride": false, @@ -25103,7 +25658,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get" }, { - "$id": "1835", + "$id": "1881", "kind": "paging", "name": "listBySubscription", "accessibility": "public", @@ -25112,20 +25667,20 @@ ], "doc": "List Playwright quota resources for a given subscription Id.", "operation": { - "$id": "1836", + "$id": "1882", "name": "listBySubscription", "resourceName": "PlaywrightQuota", "doc": "List Playwright quota resources for a given subscription Id.", "accessibility": "public", "parameters": [ { - "$id": "1837", + "$id": "1883", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1838", + "$id": "1884", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25135,7 +25690,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1839", + "$id": "1885", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -25149,18 +25704,18 @@ "readOnly": false }, { - "$id": "1840", + "$id": "1886", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1841", + "$id": "1887", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1842", + "$id": "1888", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25180,18 +25735,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.listBySubscription.subscriptionId" }, { - "$id": "1843", + "$id": "1889", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1844", + "$id": "1890", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1845", + "$id": "1891", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25211,7 +25766,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.listBySubscription.location" }, { - "$id": "1846", + "$id": "1892", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -25233,7 +25788,7 @@ 200 ], "bodyType": { - "$ref": "779" + "$ref": "799" }, "headers": [], "isErrorResponse": false, @@ -25258,18 +25813,18 @@ }, "parameters": [ { - "$id": "1847", + "$id": "1893", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1848", + "$id": "1894", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1849", + "$id": "1895", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25287,7 +25842,7 @@ "decorators": [] }, { - "$id": "1850", + "$id": "1896", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -25306,7 +25861,7 @@ ], "response": { "type": { - "$ref": "781" + "$ref": "801" }, "resultSegments": [ "value" @@ -25330,7 +25885,7 @@ } }, { - "$id": "1851", + "$id": "1897", "kind": "basic", "name": "createOrUpdate", "accessibility": "public", @@ -25339,20 +25894,20 @@ ], "doc": "Create a PlaywrightQuota", "operation": { - "$id": "1852", + "$id": "1898", "name": "createOrUpdate", "resourceName": "PlaywrightQuota", "doc": "Create a PlaywrightQuota", "accessibility": "public", "parameters": [ { - "$id": "1853", + "$id": "1899", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1854", + "$id": "1900", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25362,7 +25917,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1855", + "$id": "1901", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -25376,18 +25931,18 @@ "readOnly": false }, { - "$id": "1856", + "$id": "1902", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1857", + "$id": "1903", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1858", + "$id": "1904", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25407,18 +25962,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.subscriptionId" }, { - "$id": "1859", + "$id": "1905", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1860", + "$id": "1906", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1861", + "$id": "1907", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25438,7 +25993,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.location" }, { - "$id": "1862", + "$id": "1908", "kind": "path", "name": "playwrightQuotaName", "serializedName": "playwrightQuotaName", @@ -25458,7 +26013,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.playwrightQuotaName" }, { - "$id": "1863", + "$id": "1909", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -25475,7 +26030,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.contentType" }, { - "$id": "1864", + "$id": "1910", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -25491,13 +26046,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.accept" }, { - "$id": "1865", + "$id": "1911", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "768" + "$ref": "788" }, "isApiVersion": false, "contentTypes": [ @@ -25517,7 +26072,7 @@ 200 ], "bodyType": { - "$ref": "768" + "$ref": "788" }, "headers": [], "isErrorResponse": false, @@ -25530,7 +26085,7 @@ 201 ], "bodyType": { - "$ref": "768" + "$ref": "788" }, "headers": [], "isErrorResponse": false, @@ -25558,18 +26113,18 @@ }, "parameters": [ { - "$id": "1866", + "$id": "1912", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1867", + "$id": "1913", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1868", + "$id": "1914", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25587,7 +26142,7 @@ "decorators": [] }, { - "$id": "1869", + "$id": "1915", "kind": "method", "name": "playwrightQuotaName", "serializedName": "playwrightQuotaName", @@ -25605,13 +26160,13 @@ "decorators": [] }, { - "$id": "1870", + "$id": "1916", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "768" + "$ref": "788" }, "location": "Body", "isApiVersion": false, @@ -25623,7 +26178,7 @@ "decorators": [] }, { - "$id": "1871", + "$id": "1917", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -25641,7 +26196,7 @@ "decorators": [] }, { - "$id": "1872", + "$id": "1918", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -25660,7 +26215,7 @@ ], "response": { "type": { - "$ref": "768" + "$ref": "788" } }, "isOverride": false, @@ -25671,13 +26226,13 @@ ], "parameters": [ { - "$id": "1873", + "$id": "1919", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1874", + "$id": "1920", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -25688,7 +26243,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1875", + "$id": "1921", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -25701,10 +26256,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -25719,17 +26274,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1876", + "$id": "1922", "kind": "client", "name": "JobResources", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1877", + "$id": "1923", "kind": "basic", "name": "get", "accessibility": "public", @@ -25738,20 +26293,20 @@ ], "doc": "Gets information about the specified job.", "operation": { - "$id": "1878", + "$id": "1924", "name": "get", "resourceName": "JobResource", "doc": "Gets information about the specified job.", "accessibility": "public", "parameters": [ { - "$id": "1879", + "$id": "1925", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1880", + "$id": "1926", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25761,7 +26316,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1881", + "$id": "1927", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -25775,18 +26330,18 @@ "readOnly": false }, { - "$id": "1882", + "$id": "1928", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1883", + "$id": "1929", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1884", + "$id": "1930", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25806,13 +26361,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.subscriptionId" }, { - "$id": "1885", + "$id": "1931", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1886", + "$id": "1932", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25830,13 +26385,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.resourceGroupName" }, { - "$id": "1887", + "$id": "1933", "kind": "path", "name": "jobName", "serializedName": "jobName", "doc": "The name of the JobResource", "type": { - "$id": "1888", + "$id": "1934", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25854,13 +26409,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.jobName" }, { - "$id": "1889", + "$id": "1935", "kind": "query", "name": "$expand", "serializedName": "$expand", "doc": "$expand is supported on details parameter for job, which provides details on the job stages.", "type": { - "$id": "1890", + "$id": "1936", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25875,7 +26430,7 @@ "readOnly": false }, { - "$id": "1891", + "$id": "1937", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -25897,7 +26452,7 @@ 200 ], "bodyType": { - "$ref": "785" + "$ref": "805" }, "headers": [], "isErrorResponse": false, @@ -25922,13 +26477,13 @@ }, "parameters": [ { - "$id": "1892", + "$id": "1938", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1893", + "$id": "1939", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25944,13 +26499,13 @@ "decorators": [] }, { - "$id": "1894", + "$id": "1940", "kind": "method", "name": "jobName", "serializedName": "jobName", "doc": "The name of the JobResource", "type": { - "$id": "1895", + "$id": "1941", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25966,13 +26521,13 @@ "decorators": [] }, { - "$id": "1896", + "$id": "1942", "kind": "method", "name": "$expand", "serializedName": "$expand", "doc": "$expand is supported on details parameter for job, which provides details on the job stages.", "type": { - "$id": "1897", + "$id": "1943", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25988,7 +26543,7 @@ "decorators": [] }, { - "$id": "1898", + "$id": "1944", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -26007,7 +26562,7 @@ ], "response": { "type": { - "$ref": "785" + "$ref": "805" } }, "isOverride": false, @@ -26016,7 +26571,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get" }, { - "$id": "1899", + "$id": "1945", "kind": "lro", "name": "update", "accessibility": "public", @@ -26025,20 +26580,20 @@ ], "doc": "Update a JobResource", "operation": { - "$id": "1900", + "$id": "1946", "name": "update", "resourceName": "JobResource", "doc": "Update a JobResource", "accessibility": "public", "parameters": [ { - "$id": "1901", + "$id": "1947", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1902", + "$id": "1948", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26048,7 +26603,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1903", + "$id": "1949", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -26062,18 +26617,18 @@ "readOnly": false }, { - "$id": "1904", + "$id": "1950", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1905", + "$id": "1951", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1906", + "$id": "1952", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26093,13 +26648,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.subscriptionId" }, { - "$id": "1907", + "$id": "1953", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1908", + "$id": "1954", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26117,13 +26672,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.resourceGroupName" }, { - "$id": "1909", + "$id": "1955", "kind": "path", "name": "jobName", "serializedName": "jobName", "doc": "The name of the JobResource", "type": { - "$id": "1910", + "$id": "1956", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26141,13 +26696,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.jobName" }, { - "$id": "1911", + "$id": "1957", "kind": "header", "name": "If-Match", "serializedName": "If-Match", "doc": "Defines the If-Match condition. The patch will be performed only if the ETag of the job on the server matches this value.", "type": { - "$id": "1912", + "$id": "1958", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26162,7 +26717,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.If-Match" }, { - "$id": "1913", + "$id": "1959", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -26179,7 +26734,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.contentType" }, { - "$id": "1914", + "$id": "1960", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -26195,13 +26750,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.accept" }, { - "$id": "1915", + "$id": "1961", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "794" + "$ref": "814" }, "isApiVersion": false, "contentTypes": [ @@ -26221,7 +26776,7 @@ 200 ], "bodyType": { - "$ref": "785" + "$ref": "805" }, "headers": [], "isErrorResponse": false, @@ -26239,7 +26794,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1916", + "$id": "1962", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26251,7 +26806,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1917", + "$id": "1963", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -26281,13 +26836,13 @@ }, "parameters": [ { - "$id": "1918", + "$id": "1964", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1919", + "$id": "1965", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26303,13 +26858,13 @@ "decorators": [] }, { - "$id": "1920", + "$id": "1966", "kind": "method", "name": "jobName", "serializedName": "jobName", "doc": "The name of the JobResource", "type": { - "$id": "1921", + "$id": "1967", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26325,13 +26880,13 @@ "decorators": [] }, { - "$id": "1922", + "$id": "1968", "kind": "method", "name": "If-Match", "serializedName": "If-Match", "doc": "Defines the If-Match condition. The patch will be performed only if the ETag of the job on the server matches this value.", "type": { - "$id": "1923", + "$id": "1969", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26347,13 +26902,13 @@ "decorators": [] }, { - "$id": "1924", + "$id": "1970", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "794" + "$ref": "814" }, "location": "Body", "isApiVersion": false, @@ -26365,7 +26920,7 @@ "decorators": [] }, { - "$id": "1925", + "$id": "1971", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -26383,7 +26938,7 @@ "decorators": [] }, { - "$id": "1926", + "$id": "1972", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -26402,7 +26957,7 @@ ], "response": { "type": { - "$ref": "785" + "$ref": "805" } }, "isOverride": false, @@ -26416,7 +26971,7 @@ 200 ], "bodyType": { - "$ref": "785" + "$ref": "805" } } } @@ -26424,13 +26979,13 @@ ], "parameters": [ { - "$id": "1927", + "$id": "1973", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1928", + "$id": "1974", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -26441,7 +26996,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1929", + "$id": "1975", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -26454,10 +27009,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -26472,17 +27027,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1930", + "$id": "1976", "kind": "client", "name": "HciVmInstances", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1931", + "$id": "1977", "kind": "basic", "name": "get", "accessibility": "public", @@ -26491,20 +27046,20 @@ ], "doc": "Gets a virtual machine instance", "operation": { - "$id": "1932", + "$id": "1978", "name": "get", "resourceName": "HciVmInstance", "doc": "Gets a virtual machine instance", "accessibility": "public", "parameters": [ { - "$id": "1933", + "$id": "1979", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1934", + "$id": "1980", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26514,7 +27069,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1935", + "$id": "1981", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -26528,13 +27083,13 @@ "readOnly": false }, { - "$id": "1936", + "$id": "1982", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1937", + "$id": "1983", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26552,7 +27107,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.HciVmInstances.get.resourceUri" }, { - "$id": "1938", + "$id": "1984", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -26574,7 +27129,7 @@ 200 ], "bodyType": { - "$ref": "797" + "$ref": "817" }, "headers": [], "isErrorResponse": false, @@ -26599,13 +27154,13 @@ }, "parameters": [ { - "$id": "1939", + "$id": "1985", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1940", + "$id": "1986", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26621,7 +27176,7 @@ "decorators": [] }, { - "$id": "1941", + "$id": "1987", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -26640,7 +27195,7 @@ ], "response": { "type": { - "$ref": "797" + "$ref": "817" } }, "isOverride": false, @@ -26651,13 +27206,13 @@ ], "parameters": [ { - "$id": "1942", + "$id": "1988", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1943", + "$id": "1989", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -26668,7 +27223,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1944", + "$id": "1990", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -26681,7 +27236,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" } ], "initializedBy": 0, @@ -26696,17 +27251,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1945", + "$id": "1991", "kind": "client", "name": "GroupQuotaSubscriptionRequestStatuses", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1946", + "$id": "1992", "kind": "basic", "name": "get", "accessibility": "public", @@ -26715,20 +27270,20 @@ ], "doc": "Get API to check the status of a subscriptionIds request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", "operation": { - "$id": "1947", + "$id": "1993", "name": "get", "resourceName": "GroupQuotaSubscriptionRequestStatus", "doc": "Get API to check the status of a subscriptionIds request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", "accessibility": "public", "parameters": [ { - "$id": "1948", + "$id": "1994", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1949", + "$id": "1995", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26738,7 +27293,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1950", + "$id": "1996", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -26752,13 +27307,13 @@ "readOnly": false }, { - "$id": "1951", + "$id": "1997", "kind": "path", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1952", + "$id": "1998", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26776,13 +27331,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaSubscriptionRequestStatuses.get.managementGroupId" }, { - "$id": "1953", + "$id": "1999", "kind": "path", "name": "requestId", "serializedName": "requestId", "doc": "The name of the GroupQuotaSubscriptionRequestStatus", "type": { - "$id": "1954", + "$id": "2000", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26800,7 +27355,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaSubscriptionRequestStatuses.get.requestId" }, { - "$id": "1955", + "$id": "2001", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -26822,7 +27377,7 @@ 200 ], "bodyType": { - "$ref": "805" + "$ref": "825" }, "headers": [], "isErrorResponse": false, @@ -26842,13 +27397,13 @@ }, "parameters": [ { - "$id": "1956", + "$id": "2002", "kind": "method", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1957", + "$id": "2003", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26864,13 +27419,13 @@ "decorators": [] }, { - "$id": "1958", + "$id": "2004", "kind": "method", "name": "requestId", "serializedName": "requestId", "doc": "The name of the GroupQuotaSubscriptionRequestStatus", "type": { - "$id": "1959", + "$id": "2005", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26886,7 +27441,7 @@ "decorators": [] }, { - "$id": "1960", + "$id": "2006", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -26905,7 +27460,7 @@ ], "response": { "type": { - "$ref": "805" + "$ref": "825" } }, "isOverride": false, @@ -26916,13 +27471,13 @@ ], "parameters": [ { - "$id": "1961", + "$id": "2007", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1962", + "$id": "2008", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -26933,7 +27488,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1963", + "$id": "2009", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -26946,7 +27501,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" } ], "initializedBy": 0, @@ -26961,17 +27516,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "1964", + "$id": "2010", "kind": "client", "name": "GroupQuotaLimitLists", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1965", + "$id": "2011", "kind": "basic", "name": "list", "accessibility": "public", @@ -26980,20 +27535,20 @@ ], "doc": "Gets the GroupQuotaLimits for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}.", "operation": { - "$id": "1966", + "$id": "2012", "name": "list", "resourceName": "GroupQuotaLimitList", "doc": "Gets the GroupQuotaLimits for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}.", "accessibility": "public", "parameters": [ { - "$id": "1967", + "$id": "2013", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1968", + "$id": "2014", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27003,7 +27558,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1969", + "$id": "2015", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -27017,13 +27572,13 @@ "readOnly": false }, { - "$id": "1970", + "$id": "2016", "kind": "path", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1971", + "$id": "2017", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27041,13 +27596,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.list.managementGroupId" }, { - "$id": "1972", + "$id": "2018", "kind": "path", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "1973", + "$id": "2019", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27065,13 +27620,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.list.groupQuotaName" }, { - "$id": "1974", + "$id": "2020", "kind": "path", "name": "resourceProviderName", "serializedName": "resourceProviderName", "doc": "The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.", "type": { - "$id": "1975", + "$id": "2021", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27089,18 +27644,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.list.resourceProviderName" }, { - "$id": "1976", + "$id": "2022", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1977", + "$id": "2023", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1978", + "$id": "2024", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27120,7 +27675,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.list.location" }, { - "$id": "1979", + "$id": "2025", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -27142,7 +27697,7 @@ 200 ], "bodyType": { - "$ref": "831" + "$ref": "851" }, "headers": [], "isErrorResponse": false, @@ -27162,13 +27717,13 @@ }, "parameters": [ { - "$id": "1980", + "$id": "2026", "kind": "method", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1981", + "$id": "2027", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27184,13 +27739,13 @@ "decorators": [] }, { - "$id": "1982", + "$id": "2028", "kind": "method", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "1983", + "$id": "2029", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27206,13 +27761,13 @@ "decorators": [] }, { - "$id": "1984", + "$id": "2030", "kind": "method", "name": "resourceProviderName", "serializedName": "resourceProviderName", "doc": "The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.", "type": { - "$id": "1985", + "$id": "2031", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27228,18 +27783,18 @@ "decorators": [] }, { - "$id": "1986", + "$id": "2032", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1987", + "$id": "2033", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1988", + "$id": "2034", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27257,7 +27812,7 @@ "decorators": [] }, { - "$id": "1989", + "$id": "2035", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -27276,7 +27831,7 @@ ], "response": { "type": { - "$ref": "831" + "$ref": "851" } }, "isOverride": false, @@ -27285,7 +27840,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.list" }, { - "$id": "1990", + "$id": "2036", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -27294,20 +27849,20 @@ ], "doc": "Create a GroupQuotaLimitList", "operation": { - "$id": "1991", + "$id": "2037", "name": "createOrUpdate", "resourceName": "GroupQuotaLimitList", "doc": "Create a GroupQuotaLimitList", "accessibility": "public", "parameters": [ { - "$id": "1992", + "$id": "2038", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1993", + "$id": "2039", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27317,7 +27872,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1994", + "$id": "2040", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -27331,13 +27886,13 @@ "readOnly": false }, { - "$id": "1995", + "$id": "2041", "kind": "path", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1996", + "$id": "2042", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27355,13 +27910,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate.managementGroupId" }, { - "$id": "1997", + "$id": "2043", "kind": "path", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "1998", + "$id": "2044", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27379,13 +27934,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate.groupQuotaName" }, { - "$id": "1999", + "$id": "2045", "kind": "path", "name": "resourceProviderName", "serializedName": "resourceProviderName", "doc": "The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.", "type": { - "$id": "2000", + "$id": "2046", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27403,18 +27958,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate.resourceProviderName" }, { - "$id": "2001", + "$id": "2047", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "2002", + "$id": "2048", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "2003", + "$id": "2049", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27434,7 +27989,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate.location" }, { - "$id": "2004", + "$id": "2050", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -27451,7 +28006,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate.contentType" }, { - "$id": "2005", + "$id": "2051", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -27467,13 +28022,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate.accept" }, { - "$id": "2006", + "$id": "2052", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "831" + "$ref": "851" }, "isApiVersion": false, "contentTypes": [ @@ -27493,7 +28048,7 @@ 200 ], "bodyType": { - "$ref": "831" + "$ref": "851" }, "headers": [], "isErrorResponse": false, @@ -27506,7 +28061,7 @@ 201 ], "bodyType": { - "$ref": "831" + "$ref": "851" }, "headers": [ { @@ -27514,12 +28069,12 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "2007", + "$id": "2053", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "2008", + "$id": "2054", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -27533,7 +28088,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "2009", + "$id": "2055", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27545,7 +28100,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "2010", + "$id": "2056", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -27573,13 +28128,13 @@ }, "parameters": [ { - "$id": "2011", + "$id": "2057", "kind": "method", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "2012", + "$id": "2058", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27595,13 +28150,13 @@ "decorators": [] }, { - "$id": "2013", + "$id": "2059", "kind": "method", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "2014", + "$id": "2060", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27617,13 +28172,13 @@ "decorators": [] }, { - "$id": "2015", + "$id": "2061", "kind": "method", "name": "resourceProviderName", "serializedName": "resourceProviderName", "doc": "The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.", "type": { - "$id": "2016", + "$id": "2062", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27639,18 +28194,18 @@ "decorators": [] }, { - "$id": "2017", + "$id": "2063", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "2018", + "$id": "2064", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "2019", + "$id": "2065", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27668,13 +28223,13 @@ "decorators": [] }, { - "$id": "2020", + "$id": "2066", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "831" + "$ref": "851" }, "location": "Body", "isApiVersion": false, @@ -27686,18 +28241,18 @@ "decorators": [] }, { - "$id": "2021", + "$id": "2067", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "2022", + "$id": "2068", "kind": "enum", "name": "createOrUpdateContentType", "crossLanguageDefinitionId": "", "valueType": { - "$id": "2023", + "$id": "2069", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27705,12 +28260,12 @@ }, "values": [ { - "$id": "2024", + "$id": "2070", "kind": "enumvalue", "name": "application/json", "value": "application/json", "valueType": { - "$id": "2025", + "$id": "2071", "kind": "string", "decorators": [], "doc": "A sequence of textual characters.", @@ -27718,7 +28273,7 @@ "crossLanguageDefinitionId": "TypeSpec.string" }, "enumType": { - "$ref": "2022" + "$ref": "2068" }, "decorators": [] } @@ -27739,7 +28294,7 @@ "decorators": [] }, { - "$id": "2026", + "$id": "2072", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -27758,7 +28313,7 @@ ], "response": { "type": { - "$ref": "831" + "$ref": "851" } }, "isOverride": false, @@ -27772,13 +28327,13 @@ 200 ], "bodyType": { - "$ref": "831" + "$ref": "851" } } } }, { - "$id": "2027", + "$id": "2073", "kind": "lro", "name": "update", "accessibility": "public", @@ -27787,20 +28342,20 @@ ], "doc": "Create the GroupQuota requests for a specific ResourceProvider/Location/Resource. The resourceName properties are specified in the request body. Only 1 resource quota can be requested. Please note that patch request creates a new groupQuota request.\nUse the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", "operation": { - "$id": "2028", + "$id": "2074", "name": "update", "resourceName": "GroupQuotaLimitList", "doc": "Create the GroupQuota requests for a specific ResourceProvider/Location/Resource. The resourceName properties are specified in the request body. Only 1 resource quota can be requested. Please note that patch request creates a new groupQuota request.\nUse the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", "accessibility": "public", "parameters": [ { - "$id": "2029", + "$id": "2075", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2030", + "$id": "2076", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27810,7 +28365,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2031", + "$id": "2077", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -27824,13 +28379,13 @@ "readOnly": false }, { - "$id": "2032", + "$id": "2078", "kind": "path", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "2033", + "$id": "2079", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27848,13 +28403,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.update.managementGroupId" }, { - "$id": "2034", + "$id": "2080", "kind": "path", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "2035", + "$id": "2081", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27872,13 +28427,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.update.groupQuotaName" }, { - "$id": "2036", + "$id": "2082", "kind": "path", "name": "resourceProviderName", "serializedName": "resourceProviderName", "doc": "The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.", "type": { - "$id": "2037", + "$id": "2083", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27896,18 +28451,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.update.resourceProviderName" }, { - "$id": "2038", + "$id": "2084", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "2039", + "$id": "2085", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "2040", + "$id": "2086", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27927,7 +28482,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.update.location" }, { - "$id": "2041", + "$id": "2087", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -27944,7 +28499,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.update.contentType" }, { - "$id": "2042", + "$id": "2088", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -27960,13 +28515,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.update.accept" }, { - "$id": "2043", + "$id": "2089", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "Resource create parameters.", "type": { - "$ref": "841" + "$ref": "861" }, "isApiVersion": false, "contentTypes": [ @@ -27986,7 +28541,7 @@ 200 ], "bodyType": { - "$ref": "831" + "$ref": "851" }, "headers": [], "isErrorResponse": false, @@ -28004,12 +28559,12 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "2044", + "$id": "2090", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "2045", + "$id": "2091", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -28023,7 +28578,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "2046", + "$id": "2092", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28035,7 +28590,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "2047", + "$id": "2093", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -28060,13 +28615,13 @@ }, "parameters": [ { - "$id": "2048", + "$id": "2094", "kind": "method", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "2049", + "$id": "2095", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28082,13 +28637,13 @@ "decorators": [] }, { - "$id": "2050", + "$id": "2096", "kind": "method", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "2051", + "$id": "2097", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28104,13 +28659,13 @@ "decorators": [] }, { - "$id": "2052", + "$id": "2098", "kind": "method", "name": "resourceProviderName", "serializedName": "resourceProviderName", "doc": "The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.", "type": { - "$id": "2053", + "$id": "2099", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28126,18 +28681,18 @@ "decorators": [] }, { - "$id": "2054", + "$id": "2100", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "2055", + "$id": "2101", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "2056", + "$id": "2102", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28155,13 +28710,13 @@ "decorators": [] }, { - "$id": "2057", + "$id": "2103", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "Resource create parameters.", "type": { - "$ref": "841" + "$ref": "861" }, "location": "Body", "isApiVersion": false, @@ -28173,18 +28728,18 @@ "decorators": [] }, { - "$id": "2058", + "$id": "2104", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "2059", + "$id": "2105", "kind": "enum", "name": "updateContentType", "crossLanguageDefinitionId": "", "valueType": { - "$id": "2060", + "$id": "2106", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28192,12 +28747,12 @@ }, "values": [ { - "$id": "2061", + "$id": "2107", "kind": "enumvalue", "name": "application/json", "value": "application/json", "valueType": { - "$id": "2062", + "$id": "2108", "kind": "string", "decorators": [], "doc": "A sequence of textual characters.", @@ -28205,7 +28760,7 @@ "crossLanguageDefinitionId": "TypeSpec.string" }, "enumType": { - "$ref": "2059" + "$ref": "2105" }, "decorators": [] } @@ -28226,7 +28781,7 @@ "decorators": [] }, { - "$id": "2063", + "$id": "2109", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -28245,7 +28800,7 @@ ], "response": { "type": { - "$ref": "831" + "$ref": "851" } }, "isOverride": false, @@ -28259,7 +28814,7 @@ 200 ], "bodyType": { - "$ref": "831" + "$ref": "851" } } } @@ -28267,13 +28822,13 @@ ], "parameters": [ { - "$id": "2064", + "$id": "2110", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "2065", + "$id": "2111", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -28284,7 +28839,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "2066", + "$id": "2112", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -28297,7 +28852,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" } ], "initializedBy": 0, @@ -28312,17 +28867,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "2067", + "$id": "2113", "kind": "client", "name": "SubscriptionQuotaAllocationsLists", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "2068", + "$id": "2114", "kind": "basic", "name": "get", "accessibility": "public", @@ -28331,20 +28886,20 @@ ], "doc": "Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota.", "operation": { - "$id": "2069", + "$id": "2115", "name": "get", "resourceName": "SubscriptionQuotaAllocationsList", "doc": "Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota.", "accessibility": "public", "parameters": [ { - "$id": "2070", + "$id": "2116", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2071", + "$id": "2117", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28354,7 +28909,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2072", + "$id": "2118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -28368,13 +28923,13 @@ "readOnly": false }, { - "$id": "2073", + "$id": "2119", "kind": "path", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "2074", + "$id": "2120", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28392,18 +28947,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SubscriptionQuotaAllocationsLists.get.managementGroupId" }, { - "$id": "2075", + "$id": "2121", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2076", + "$id": "2122", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2077", + "$id": "2123", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28423,13 +28978,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SubscriptionQuotaAllocationsLists.get.subscriptionId" }, { - "$id": "2078", + "$id": "2124", "kind": "path", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "2079", + "$id": "2125", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28447,13 +29002,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SubscriptionQuotaAllocationsLists.get.groupQuotaName" }, { - "$id": "2080", + "$id": "2126", "kind": "path", "name": "resourceProviderName", "serializedName": "resourceProviderName", "doc": "The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.", "type": { - "$id": "2081", + "$id": "2127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28471,18 +29026,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SubscriptionQuotaAllocationsLists.get.resourceProviderName" }, { - "$id": "2082", + "$id": "2128", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "2083", + "$id": "2129", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "2084", + "$id": "2130", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28502,7 +29057,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SubscriptionQuotaAllocationsLists.get.location" }, { - "$id": "2085", + "$id": "2131", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -28524,7 +29079,7 @@ 200 ], "bodyType": { - "$ref": "844" + "$ref": "864" }, "headers": [], "isErrorResponse": false, @@ -28544,13 +29099,13 @@ }, "parameters": [ { - "$id": "2086", + "$id": "2132", "kind": "method", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "2087", + "$id": "2133", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28566,13 +29121,13 @@ "decorators": [] }, { - "$id": "2088", + "$id": "2134", "kind": "method", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "2089", + "$id": "2135", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28588,13 +29143,13 @@ "decorators": [] }, { - "$id": "2090", + "$id": "2136", "kind": "method", "name": "resourceProviderName", "serializedName": "resourceProviderName", "doc": "The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.", "type": { - "$id": "2091", + "$id": "2137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28610,18 +29165,18 @@ "decorators": [] }, { - "$id": "2092", + "$id": "2138", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "2093", + "$id": "2139", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "2094", + "$id": "2140", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28639,7 +29194,7 @@ "decorators": [] }, { - "$id": "2095", + "$id": "2141", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -28658,7 +29213,7 @@ ], "response": { "type": { - "$ref": "844" + "$ref": "864" } }, "isOverride": false, @@ -28669,13 +29224,13 @@ ], "parameters": [ { - "$id": "2096", + "$id": "2142", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "2097", + "$id": "2143", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -28686,7 +29241,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "2098", + "$id": "2144", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -28699,10 +29254,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -28717,18 +29272,18 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "2099", + "$id": "2145", "kind": "client", "name": "NetworkProviderActions", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "doc": "Provider-level operations for network actions.\nThis demonstrates a non-resource LRO operation.", "methods": [ { - "$id": "2100", + "$id": "2146", "kind": "lro", "name": "queryNetworkSiblingSet", "accessibility": "public", @@ -28737,20 +29292,20 @@ ], "doc": "Query network sibling set - a provider-level async action.\nThis is a non-resource LRO operation that returns NetworkSiblingSet.", "operation": { - "$id": "2101", + "$id": "2147", "name": "queryNetworkSiblingSet", "resourceName": "NetworkProviderActions", "doc": "Query network sibling set - a provider-level async action.\nThis is a non-resource LRO operation that returns NetworkSiblingSet.", "accessibility": "public", "parameters": [ { - "$id": "2102", + "$id": "2148", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2103", + "$id": "2149", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28760,7 +29315,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2104", + "$id": "2150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -28774,7 +29329,7 @@ "readOnly": false }, { - "$id": "2105", + "$id": "2151", "kind": "path", "name": "provider", "serializedName": "provider", @@ -28794,7 +29349,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.NetworkProviderActions.queryNetworkSiblingSet.provider" }, { - "$id": "2106", + "$id": "2152", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -28811,7 +29366,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.NetworkProviderActions.queryNetworkSiblingSet.contentType" }, { - "$id": "2107", + "$id": "2153", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -28827,13 +29382,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.NetworkProviderActions.queryNetworkSiblingSet.accept" }, { - "$id": "2108", + "$id": "2154", "kind": "body", "name": "body", "serializedName": "body", "doc": "The request body", "type": { - "$ref": "853" + "$ref": "873" }, "isApiVersion": false, "contentTypes": [ @@ -28858,7 +29413,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "2109", + "$id": "2155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28870,7 +29425,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "2110", + "$id": "2156", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -28885,7 +29440,7 @@ 200 ], "bodyType": { - "$ref": "858" + "$ref": "878" }, "headers": [], "isErrorResponse": false, @@ -28908,7 +29463,7 @@ }, "parameters": [ { - "$id": "2111", + "$id": "2157", "kind": "method", "name": "provider", "serializedName": "provider", @@ -28926,13 +29481,13 @@ "decorators": [] }, { - "$id": "2112", + "$id": "2158", "kind": "method", "name": "body", "serializedName": "body", "doc": "The request body", "type": { - "$ref": "853" + "$ref": "873" }, "location": "Body", "isApiVersion": false, @@ -28944,7 +29499,7 @@ "decorators": [] }, { - "$id": "2113", + "$id": "2159", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -28962,7 +29517,7 @@ "decorators": [] }, { - "$id": "2114", + "$id": "2160", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -28981,7 +29536,7 @@ ], "response": { "type": { - "$ref": "858" + "$ref": "878" } }, "isOverride": false, @@ -28995,7 +29550,7 @@ 200 ], "bodyType": { - "$ref": "858" + "$ref": "878" } } } @@ -29003,13 +29558,13 @@ ], "parameters": [ { - "$id": "2115", + "$id": "2161", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "2116", + "$id": "2162", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -29020,7 +29575,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "2117", + "$id": "2163", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -29033,7 +29588,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" } ], "initializedBy": 0, @@ -29043,17 +29598,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "2118", + "$id": "2164", "kind": "client", "name": "Joos", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "2119", + "$id": "2165", "kind": "basic", "name": "createOrUpdate", "accessibility": "public", @@ -29062,20 +29617,20 @@ ], "doc": "Create a Joo", "operation": { - "$id": "2120", + "$id": "2166", "name": "createOrUpdate", "resourceName": "Joo", "doc": "Create a Joo", "accessibility": "public", "parameters": [ { - "$id": "2121", + "$id": "2167", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2122", + "$id": "2168", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29085,7 +29640,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2123", + "$id": "2169", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -29099,18 +29654,18 @@ "readOnly": false }, { - "$id": "2124", + "$id": "2170", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2125", + "$id": "2171", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2126", + "$id": "2172", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29130,13 +29685,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.createOrUpdate.subscriptionId" }, { - "$id": "2127", + "$id": "2173", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2128", + "$id": "2174", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29154,13 +29709,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.createOrUpdate.resourceGroupName" }, { - "$id": "2129", + "$id": "2175", "kind": "path", "name": "jooName", "serializedName": "jooName", "doc": "The name of the Joo", "type": { - "$id": "2130", + "$id": "2176", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29178,7 +29733,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.createOrUpdate.jooName" }, { - "$id": "2131", + "$id": "2177", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -29195,7 +29750,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.createOrUpdate.contentType" }, { - "$id": "2132", + "$id": "2178", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -29211,13 +29766,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.createOrUpdate.accept" }, { - "$id": "2133", + "$id": "2179", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "878" + "$ref": "898" }, "isApiVersion": false, "contentTypes": [ @@ -29237,7 +29792,7 @@ 200 ], "bodyType": { - "$ref": "878" + "$ref": "898" }, "headers": [], "isErrorResponse": false, @@ -29250,7 +29805,7 @@ 201 ], "bodyType": { - "$ref": "878" + "$ref": "898" }, "headers": [], "isErrorResponse": false, @@ -29278,13 +29833,13 @@ }, "parameters": [ { - "$id": "2134", + "$id": "2180", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2135", + "$id": "2181", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29300,13 +29855,13 @@ "decorators": [] }, { - "$id": "2136", + "$id": "2182", "kind": "method", "name": "jooName", "serializedName": "jooName", "doc": "The name of the Joo", "type": { - "$id": "2137", + "$id": "2183", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29322,13 +29877,13 @@ "decorators": [] }, { - "$id": "2138", + "$id": "2184", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "878" + "$ref": "898" }, "location": "Body", "isApiVersion": false, @@ -29340,7 +29895,7 @@ "decorators": [] }, { - "$id": "2139", + "$id": "2185", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -29358,7 +29913,7 @@ "decorators": [] }, { - "$id": "2140", + "$id": "2186", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -29377,7 +29932,7 @@ ], "response": { "type": { - "$ref": "878" + "$ref": "898" } }, "isOverride": false, @@ -29386,7 +29941,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.createOrUpdate" }, { - "$id": "2141", + "$id": "2187", "kind": "basic", "name": "get", "accessibility": "public", @@ -29395,20 +29950,20 @@ ], "doc": "Get a Joo", "operation": { - "$id": "2142", + "$id": "2188", "name": "get", "resourceName": "Joo", "doc": "Get a Joo", "accessibility": "public", "parameters": [ { - "$id": "2143", + "$id": "2189", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2144", + "$id": "2190", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29418,7 +29973,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2145", + "$id": "2191", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -29432,18 +29987,18 @@ "readOnly": false }, { - "$id": "2146", + "$id": "2192", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2147", + "$id": "2193", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2148", + "$id": "2194", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29463,13 +30018,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.get.subscriptionId" }, { - "$id": "2149", + "$id": "2195", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2150", + "$id": "2196", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29487,13 +30042,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.get.resourceGroupName" }, { - "$id": "2151", + "$id": "2197", "kind": "path", "name": "jooName", "serializedName": "jooName", "doc": "The name of the Joo", "type": { - "$id": "2152", + "$id": "2198", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29511,7 +30066,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.get.jooName" }, { - "$id": "2153", + "$id": "2199", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -29533,7 +30088,7 @@ 200 ], "bodyType": { - "$ref": "878" + "$ref": "898" }, "headers": [], "isErrorResponse": false, @@ -29558,13 +30113,13 @@ }, "parameters": [ { - "$id": "2154", + "$id": "2200", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2155", + "$id": "2201", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29580,13 +30135,13 @@ "decorators": [] }, { - "$id": "2156", + "$id": "2202", "kind": "method", "name": "jooName", "serializedName": "jooName", "doc": "The name of the Joo", "type": { - "$id": "2157", + "$id": "2203", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29602,7 +30157,7 @@ "decorators": [] }, { - "$id": "2158", + "$id": "2204", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -29621,7 +30176,7 @@ ], "response": { "type": { - "$ref": "878" + "$ref": "898" } }, "isOverride": false, @@ -29630,7 +30185,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.get" }, { - "$id": "2159", + "$id": "2205", "kind": "lro", "name": "delete", "accessibility": "public", @@ -29639,20 +30194,20 @@ ], "doc": "Delete a Joo", "operation": { - "$id": "2160", + "$id": "2206", "name": "delete", "resourceName": "Joo", "doc": "Delete a Joo", "accessibility": "public", "parameters": [ { - "$id": "2161", + "$id": "2207", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2162", + "$id": "2208", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29662,7 +30217,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2163", + "$id": "2209", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -29676,18 +30231,18 @@ "readOnly": false }, { - "$id": "2164", + "$id": "2210", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2165", + "$id": "2211", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2166", + "$id": "2212", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29707,13 +30262,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.delete.subscriptionId" }, { - "$id": "2167", + "$id": "2213", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2168", + "$id": "2214", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29731,13 +30286,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.delete.resourceGroupName" }, { - "$id": "2169", + "$id": "2215", "kind": "path", "name": "jooName", "serializedName": "jooName", "doc": "The name of the Joo", "type": { - "$id": "2170", + "$id": "2216", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29766,7 +30321,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "2171", + "$id": "2217", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29778,7 +30333,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "2172", + "$id": "2218", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -29812,13 +30367,13 @@ }, "parameters": [ { - "$id": "2173", + "$id": "2219", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2174", + "$id": "2220", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29834,13 +30389,13 @@ "decorators": [] }, { - "$id": "2175", + "$id": "2221", "kind": "method", "name": "jooName", "serializedName": "jooName", "doc": "The name of the Joo", "type": { - "$id": "2176", + "$id": "2222", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29873,13 +30428,13 @@ ], "parameters": [ { - "$id": "2177", + "$id": "2223", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "2178", + "$id": "2224", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -29890,7 +30445,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "2179", + "$id": "2225", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -29903,10 +30458,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -29921,17 +30476,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "2180", + "$id": "2226", "kind": "client", "name": "SAPVirtualInstances", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "2181", + "$id": "2227", "kind": "basic", "name": "get", "accessibility": "public", @@ -29940,20 +30495,20 @@ ], "doc": "Gets a Virtual Instance for SAP solutions resource", "operation": { - "$id": "2182", + "$id": "2228", "name": "get", "resourceName": "SAPVirtualInstance", "doc": "Gets a Virtual Instance for SAP solutions resource", "accessibility": "public", "parameters": [ { - "$id": "2183", + "$id": "2229", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2184", + "$id": "2230", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29963,7 +30518,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2185", + "$id": "2231", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -29977,18 +30532,18 @@ "readOnly": false }, { - "$id": "2186", + "$id": "2232", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2187", + "$id": "2233", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2188", + "$id": "2234", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30008,13 +30563,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.get.subscriptionId" }, { - "$id": "2189", + "$id": "2235", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2190", + "$id": "2236", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30032,13 +30587,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.get.resourceGroupName" }, { - "$id": "2191", + "$id": "2237", "kind": "path", "name": "sapVirtualInstanceName", "serializedName": "sapVirtualInstanceName", "doc": "The name of the SAPVirtualInstance", "type": { - "$id": "2192", + "$id": "2238", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30056,7 +30611,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.get.sapVirtualInstanceName" }, { - "$id": "2193", + "$id": "2239", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -30078,7 +30633,7 @@ 200 ], "bodyType": { - "$ref": "888" + "$ref": "908" }, "headers": [], "isErrorResponse": false, @@ -30103,13 +30658,13 @@ }, "parameters": [ { - "$id": "2194", + "$id": "2240", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2195", + "$id": "2241", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30125,13 +30680,13 @@ "decorators": [] }, { - "$id": "2196", + "$id": "2242", "kind": "method", "name": "sapVirtualInstanceName", "serializedName": "sapVirtualInstanceName", "doc": "The name of the SAPVirtualInstance", "type": { - "$id": "2197", + "$id": "2243", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30147,7 +30702,7 @@ "decorators": [] }, { - "$id": "2198", + "$id": "2244", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -30166,7 +30721,7 @@ ], "response": { "type": { - "$ref": "888" + "$ref": "908" } }, "isOverride": false, @@ -30175,7 +30730,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.get" }, { - "$id": "2199", + "$id": "2245", "kind": "lro", "name": "create", "accessibility": "public", @@ -30184,20 +30739,20 @@ ], "doc": "Creates a Virtual Instance for SAP solutions (VIS) resource", "operation": { - "$id": "2200", + "$id": "2246", "name": "create", "resourceName": "SAPVirtualInstance", "doc": "Creates a Virtual Instance for SAP solutions (VIS) resource", "accessibility": "public", "parameters": [ { - "$id": "2201", + "$id": "2247", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2202", + "$id": "2248", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30207,7 +30762,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2203", + "$id": "2249", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -30221,18 +30776,18 @@ "readOnly": false }, { - "$id": "2204", + "$id": "2250", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2205", + "$id": "2251", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2206", + "$id": "2252", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30252,13 +30807,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.subscriptionId" }, { - "$id": "2207", + "$id": "2253", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2208", + "$id": "2254", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30276,13 +30831,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.resourceGroupName" }, { - "$id": "2209", + "$id": "2255", "kind": "path", "name": "sapVirtualInstanceName", "serializedName": "sapVirtualInstanceName", "doc": "The name of the SAPVirtualInstance", "type": { - "$id": "2210", + "$id": "2256", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30300,7 +30855,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.sapVirtualInstanceName" }, { - "$id": "2211", + "$id": "2257", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -30317,7 +30872,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.contentType" }, { - "$id": "2212", + "$id": "2258", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -30333,13 +30888,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.accept" }, { - "$id": "2213", + "$id": "2259", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "888" + "$ref": "908" }, "isApiVersion": false, "contentTypes": [ @@ -30359,7 +30914,7 @@ 200 ], "bodyType": { - "$ref": "888" + "$ref": "908" }, "headers": [], "isErrorResponse": false, @@ -30372,7 +30927,7 @@ 201 ], "bodyType": { - "$ref": "888" + "$ref": "908" }, "headers": [ { @@ -30380,7 +30935,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "2214", + "$id": "2260", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30392,7 +30947,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "2215", + "$id": "2261", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -30425,13 +30980,1997 @@ }, "parameters": [ { - "$id": "2216", + "$id": "2262", + "kind": "method", + "name": "resourceGroupName", + "serializedName": "resourceGroupName", + "doc": "The name of the resource group. The name is case insensitive.", + "type": { + "$id": "2263", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.resourceGroupName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2264", + "kind": "method", + "name": "sapVirtualInstanceName", + "serializedName": "sapVirtualInstanceName", + "doc": "The name of the SAPVirtualInstance", + "type": { + "$id": "2265", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.sapVirtualInstanceName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2266", + "kind": "method", + "name": "resource", + "serializedName": "resource", + "doc": "Resource create parameters.", + "type": { + "$ref": "908" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.resource", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2267", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "281" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2268", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "283" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "908" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create", + "lroMetadata": { + "finalStateVia": 0, + "finalResponse": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "908" + } + } + } + }, + { + "$id": "2269", + "kind": "basic", + "name": "getAvailabilityZoneDetails", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "Get the recommended SAP Availability Zone Pair Details for your region.", + "operation": { + "$id": "2270", + "name": "getAvailabilityZoneDetails", + "resourceName": "SAPVirtualInstances", + "doc": "Get the recommended SAP Availability Zone Pair Details for your region.", + "accessibility": "public", + "parameters": [ + { + "$id": "2271", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "2272", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "2273", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.apiVersion", + "readOnly": false + }, + { + "$id": "2274", + "kind": "path", + "name": "subscriptionId", + "serializedName": "subscriptionId", + "doc": "The ID of the target subscription. The value must be an UUID.", + "type": { + "$id": "2275", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "2276", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Client", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.subscriptionId" + }, + { + "$id": "2277", + "kind": "path", + "name": "location", + "serializedName": "location", + "doc": "The name of the Azure region.", + "type": { + "$id": "2278", + "kind": "string", + "name": "azureLocation", + "crossLanguageDefinitionId": "Azure.Core.azureLocation", + "baseType": { + "$id": "2279", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.location" + }, + { + "$id": "2280", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "285" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.contentType" + }, + { + "$id": "2281", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "287" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.accept" + }, + { + "$id": "2282", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "The content of the action request", + "type": { + "$ref": "917" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "920" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/sapVirtualInstanceMetadata/default/getAvailabilityZoneDetails", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails", + "decorators": [ + { + "name": "Azure.ResourceManager.@armResourceAction", + "arguments": {} + } + ] + }, + "parameters": [ + { + "$id": "2283", + "kind": "method", + "name": "location", + "serializedName": "location", + "doc": "The name of the Azure region.", + "type": { + "$id": "2284", + "kind": "string", + "name": "azureLocation", + "crossLanguageDefinitionId": "Azure.Core.azureLocation", + "baseType": { + "$id": "2285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.location", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2286", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "The content of the action request", + "type": { + "$ref": "917" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2287", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "285" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2288", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "287" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "920" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails" + } + ], + "parameters": [ + { + "$id": "2289", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "2290", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "2291", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://management.azure.com" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" + }, + { + "$ref": "978" + }, + { + "$ref": "981" + } + ], + "initializedBy": 0, + "decorators": [ + { + "name": "Azure.ResourceManager.@armResourceOperations", + "arguments": {} + } + ], + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances", + "apiVersions": [ + "2024-05-01" + ], + "parent": { + "$ref": "954" + } + }, + { + "$id": "2292", + "kind": "client", + "name": "BestPractices", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "doc": "Best practice operations on /bestPractices/{bestPracticeName}", + "methods": [ + { + "$id": "2293", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "Get a BestPractice", + "operation": { + "$id": "2294", + "name": "get", + "resourceName": "BestPractice", + "doc": "Get a BestPractice", + "accessibility": "public", + "parameters": [ + { + "$id": "2295", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "2296", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "2297", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.get.apiVersion", + "readOnly": false + }, + { + "$id": "2298", + "kind": "path", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", + "type": { + "$id": "2299", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.get.bestPracticeName" + }, + { + "$id": "2300", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "289" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.get.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "923" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.get", + "decorators": [] + }, + "parameters": [ + { + "$id": "2301", + "kind": "method", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", + "type": { + "$id": "2302", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.get.bestPracticeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2303", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "289" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "923" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.get" + }, + { + "$id": "2304", + "kind": "basic", + "name": "createOrUpdate", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "Create a BestPractice", + "operation": { + "$id": "2305", + "name": "createOrUpdate", + "resourceName": "BestPractice", + "doc": "Create a BestPractice", + "accessibility": "public", + "parameters": [ + { + "$id": "2306", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "2307", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "2308", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.createOrUpdate.apiVersion", + "readOnly": false + }, + { + "$id": "2309", + "kind": "path", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", + "type": { + "$id": "2310", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.createOrUpdate.bestPracticeName" + }, + { + "$id": "2311", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "291" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.createOrUpdate.contentType" + }, + { + "$id": "2312", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "293" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.createOrUpdate.accept" + }, + { + "$id": "2313", + "kind": "body", + "name": "resource", + "serializedName": "resource", + "doc": "Resource create parameters.", + "type": { + "$ref": "923" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.createOrUpdate.resource" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "923" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + { + "statusCodes": [ + 201 + ], + "bodyType": { + "$ref": "923" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.createOrUpdate", + "decorators": [] + }, + "parameters": [ + { + "$id": "2314", + "kind": "method", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", + "type": { + "$id": "2315", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.createOrUpdate.bestPracticeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2316", + "kind": "method", + "name": "resource", + "serializedName": "resource", + "doc": "Resource create parameters.", + "type": { + "$ref": "923" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.createOrUpdate.resource", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2317", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "291" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.createOrUpdate.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2318", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "293" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.createOrUpdate.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "923" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.createOrUpdate" + }, + { + "$id": "2319", + "kind": "basic", + "name": "update", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "Update a BestPractice", + "operation": { + "$id": "2320", + "name": "update", + "resourceName": "BestPractice", + "doc": "Update a BestPractice", + "accessibility": "public", + "parameters": [ + { + "$id": "2321", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "2322", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "2323", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.update.apiVersion", + "readOnly": false + }, + { + "$id": "2324", + "kind": "path", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", + "type": { + "$id": "2325", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.update.bestPracticeName" + }, + { + "$id": "2326", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "295" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.update.contentType" + }, + { + "$id": "2327", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "297" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.update.accept" + }, + { + "$id": "2328", + "kind": "body", + "name": "properties", + "serializedName": "properties", + "doc": "Resource create parameters.", + "type": { + "$ref": "944" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.update.properties" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "923" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.update", + "decorators": [] + }, + "parameters": [ + { + "$id": "2329", + "kind": "method", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", + "type": { + "$id": "2330", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.update.bestPracticeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2331", + "kind": "method", + "name": "properties", + "serializedName": "properties", + "doc": "Resource create parameters.", + "type": { + "$ref": "944" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.update.properties", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2332", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "295" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.update.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2333", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "297" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.update.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "923" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.update" + }, + { + "$id": "2334", + "kind": "basic", + "name": "delete", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "Delete a BestPractice", + "operation": { + "$id": "2335", + "name": "delete", + "resourceName": "BestPractice", + "doc": "Delete a BestPractice", + "accessibility": "public", + "parameters": [ + { + "$id": "2336", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "2337", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "2338", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.delete.apiVersion", + "readOnly": false + }, + { + "$id": "2339", + "kind": "path", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", + "type": { + "$id": "2340", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.delete.bestPracticeName" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "headers": [], + "isErrorResponse": false + }, + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.delete", + "decorators": [] + }, + "parameters": [ + { + "$id": "2341", + "kind": "method", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", + "type": { + "$id": "2342", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.delete.bestPracticeName", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices.delete" + } + ], + "parameters": [ + { + "$id": "2343", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "2344", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "2345", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://management.azure.com" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" + }, + { + "$ref": "978" + } + ], + "initializedBy": 0, + "decorators": [ + { + "name": "Azure.ResourceManager.@armResourceOperations", + "arguments": {} + } + ], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPractices", + "apiVersions": [ + "2024-05-01" + ], + "parent": { + "$ref": "954" + } + }, + { + "$id": "2346", + "kind": "client", + "name": "BestPracticeVersions", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "doc": "Best practice version operations on /bestPractices/{bestPracticeName}/versions/{versionName}NOTE: This interface uses the SAME BestPractice model but at a different path", + "methods": [ + { + "$id": "2347", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "Get a BestPractice", + "operation": { + "$id": "2348", + "name": "get", + "resourceName": "BestPractice", + "doc": "Get a BestPractice", + "accessibility": "public", + "parameters": [ + { + "$id": "2349", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "2350", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "2351", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.get.apiVersion", + "readOnly": false + }, + { + "$id": "2352", + "kind": "path", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", + "type": { + "$id": "2353", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.get.bestPracticeName" + }, + { + "$id": "2354", + "kind": "path", + "name": "versionName", + "serializedName": "versionName", + "doc": "The name of the version", + "type": { + "$id": "2355", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.get.versionName" + }, + { + "$id": "2356", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "299" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.get.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "923" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}/versions/{versionName}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.get", + "decorators": [] + }, + "parameters": [ + { + "$id": "2357", + "kind": "method", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", + "type": { + "$id": "2358", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.get.bestPracticeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2359", + "kind": "method", + "name": "versionName", + "serializedName": "versionName", + "doc": "The name of the version", + "type": { + "$id": "2360", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.get.versionName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2361", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "299" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "923" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.get" + }, + { + "$id": "2362", + "kind": "basic", + "name": "createOrUpdate", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "Create a BestPractice", + "operation": { + "$id": "2363", + "name": "createOrUpdate", + "resourceName": "BestPractice", + "doc": "Create a BestPractice", + "accessibility": "public", + "parameters": [ + { + "$id": "2364", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "2365", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "2366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate.apiVersion", + "readOnly": false + }, + { + "$id": "2367", + "kind": "path", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", + "type": { + "$id": "2368", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate.bestPracticeName" + }, + { + "$id": "2369", + "kind": "path", + "name": "versionName", + "serializedName": "versionName", + "doc": "The name of the version", + "type": { + "$id": "2370", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate.versionName" + }, + { + "$id": "2371", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "301" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate.contentType" + }, + { + "$id": "2372", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "303" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate.accept" + }, + { + "$id": "2373", + "kind": "body", + "name": "resource", + "serializedName": "resource", + "doc": "Resource create parameters.", + "type": { + "$ref": "923" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate.resource" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "923" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + { + "statusCodes": [ + 201 + ], + "bodyType": { + "$ref": "923" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}/versions/{versionName}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate", + "decorators": [] + }, + "parameters": [ + { + "$id": "2374", + "kind": "method", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", + "type": { + "$id": "2375", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate.bestPracticeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2376", + "kind": "method", + "name": "versionName", + "serializedName": "versionName", + "doc": "The name of the version", + "type": { + "$id": "2377", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate.versionName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2378", + "kind": "method", + "name": "resource", + "serializedName": "resource", + "doc": "Resource create parameters.", + "type": { + "$ref": "923" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate.resource", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2379", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "301" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2380", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "303" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "923" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.createOrUpdate" + }, + { + "$id": "2381", + "kind": "basic", + "name": "update", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "Update a BestPractice", + "operation": { + "$id": "2382", + "name": "update", + "resourceName": "BestPractice", + "doc": "Update a BestPractice", + "accessibility": "public", + "parameters": [ + { + "$id": "2383", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "2384", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "2385", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.update.apiVersion", + "readOnly": false + }, + { + "$id": "2386", + "kind": "path", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", + "type": { + "$id": "2387", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.update.bestPracticeName" + }, + { + "$id": "2388", + "kind": "path", + "name": "versionName", + "serializedName": "versionName", + "doc": "The name of the version", + "type": { + "$id": "2389", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.update.versionName" + }, + { + "$id": "2390", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "305" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.update.contentType" + }, + { + "$id": "2391", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "307" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.update.accept" + }, + { + "$id": "2392", + "kind": "body", + "name": "properties", + "serializedName": "properties", + "doc": "Resource create parameters.", + "type": { + "$ref": "944" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.update.properties" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "923" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}/versions/{versionName}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.update", + "decorators": [] + }, + "parameters": [ + { + "$id": "2393", "kind": "method", - "name": "resourceGroupName", - "serializedName": "resourceGroupName", - "doc": "The name of the resource group. The name is case insensitive.", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", "type": { - "$id": "2217", + "$id": "2394", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30441,19 +32980,19 @@ "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.resourceGroupName", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.update.bestPracticeName", "readOnly": false, "access": "public", "decorators": [] }, { - "$id": "2218", + "$id": "2395", "kind": "method", - "name": "sapVirtualInstanceName", - "serializedName": "sapVirtualInstanceName", - "doc": "The name of the SAPVirtualInstance", + "name": "versionName", + "serializedName": "versionName", + "doc": "The name of the version", "type": { - "$id": "2219", + "$id": "2396", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30463,60 +33002,60 @@ "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.sapVirtualInstanceName", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.update.versionName", "readOnly": false, "access": "public", "decorators": [] }, { - "$id": "2220", + "$id": "2397", "kind": "method", - "name": "resource", - "serializedName": "resource", + "name": "properties", + "serializedName": "properties", "doc": "Resource create parameters.", "type": { - "$ref": "888" + "$ref": "944" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.resource", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.update.properties", "readOnly": false, "access": "public", "decorators": [] }, { - "$id": "2221", + "$id": "2398", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "281" + "$ref": "305" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.contentType", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.update.contentType", "readOnly": false, "access": "public", "decorators": [] }, { - "$id": "2222", + "$id": "2399", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "283" + "$ref": "307" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.accept", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.update.accept", "readOnly": false, "access": "public", "decorators": [] @@ -30524,49 +33063,38 @@ ], "response": { "type": { - "$ref": "888" + "$ref": "923" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create", - "lroMetadata": { - "finalStateVia": 0, - "finalResponse": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "888" - } - } - } + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.update" }, { - "$id": "2223", + "$id": "2400", "kind": "basic", - "name": "getAvailabilityZoneDetails", + "name": "delete", "accessibility": "public", "apiVersions": [ "2024-05-01" ], - "doc": "Get the recommended SAP Availability Zone Pair Details for your region.", + "doc": "Delete a BestPractice", "operation": { - "$id": "2224", - "name": "getAvailabilityZoneDetails", - "resourceName": "SAPVirtualInstances", - "doc": "Get the recommended SAP Availability Zone Pair Details for your region.", + "$id": "2401", + "name": "delete", + "resourceName": "BestPractice", + "doc": "Delete a BestPractice", "accessibility": "public", "parameters": [ { - "$id": "2225", + "$id": "2402", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2226", + "$id": "2403", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30576,7 +33104,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2227", + "$id": "2404", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -30586,27 +33114,20 @@ "optional": false, "scope": "Client", "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.apiVersion", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.delete.apiVersion", "readOnly": false }, { - "$id": "2228", + "$id": "2405", "kind": "path", - "name": "subscriptionId", - "serializedName": "subscriptionId", - "doc": "The ID of the target subscription. The value must be an UUID.", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", "type": { - "$id": "2229", + "$id": "2406", "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "2230", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "isApiVersion": false, @@ -30615,29 +33136,22 @@ "allowReserved": false, "skipUrlEncoding": false, "optional": false, - "scope": "Client", + "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.subscriptionId" + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.delete.bestPracticeName" }, { - "$id": "2231", + "$id": "2407", "kind": "path", - "name": "location", - "serializedName": "location", - "doc": "The name of the Azure region.", + "name": "versionName", + "serializedName": "versionName", + "doc": "The name of the version", "type": { - "$id": "2232", + "$id": "2408", "kind": "string", - "name": "azureLocation", - "crossLanguageDefinitionId": "Azure.Core.azureLocation", - "baseType": { - "$id": "2233", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "isApiVersion": false, @@ -30649,60 +33163,7 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.location" - }, - { - "$id": "2234", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "285" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.contentType" - }, - { - "$id": "2235", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "287" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.accept" - }, - { - "$id": "2236", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "The content of the action request", - "type": { - "$ref": "897" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.body" + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.delete.versionName" } ], "responses": [ @@ -30710,137 +33171,88 @@ "statusCodes": [ 200 ], - "bodyType": { - "$ref": "900" - }, "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "isErrorResponse": false + }, + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false } ], - "httpMethod": "POST", + "httpMethod": "DELETE", "uri": "{endpoint}", - "path": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/sapVirtualInstanceMetadata/default/getAvailabilityZoneDetails", - "requestMediaTypes": [ - "application/json" - ], + "path": "/providers/MgmtTypeSpec/bestPractices/{bestPracticeName}/versions/{versionName}", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails", - "decorators": [ - { - "name": "Azure.ResourceManager.@armResourceAction", - "arguments": {} - } - ] + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.delete", + "decorators": [] }, "parameters": [ { - "$id": "2237", + "$id": "2409", "kind": "method", - "name": "location", - "serializedName": "location", - "doc": "The name of the Azure region.", + "name": "bestPracticeName", + "serializedName": "bestPracticeName", + "doc": "The name of the best practice", "type": { - "$id": "2238", + "$id": "2410", "kind": "string", - "name": "azureLocation", - "crossLanguageDefinitionId": "Azure.Core.azureLocation", - "baseType": { - "$id": "2239", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "location": "Path", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.location", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.delete.bestPracticeName", "readOnly": false, "access": "public", "decorators": [] }, { - "$id": "2240", + "$id": "2411", "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "The content of the action request", + "name": "versionName", + "serializedName": "versionName", + "doc": "The name of the version", "type": { - "$ref": "897" + "$id": "2412", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", + "location": "Path", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2241", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "285" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2242", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "287" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.accept", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.delete.versionName", "readOnly": false, "access": "public", "decorators": [] } ], - "response": { - "type": { - "$ref": "900" - } - }, + "response": {}, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails" + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions.delete" } ], "parameters": [ { - "$id": "2243", + "$id": "2413", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "2244", + "$id": "2414", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -30851,7 +33263,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "2245", + "$id": "2415", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -30864,10 +33276,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" - }, - { - "$ref": "935" + "$ref": "978" } ], "initializedBy": 0, @@ -30877,22 +33286,22 @@ "arguments": {} } ], - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances", + "crossLanguageDefinitionId": "MgmtTypeSpec.BestPracticeVersions", "apiVersions": [ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "2246", + "$id": "2416", "kind": "client", "name": "Bar", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "2247", + "$id": "2417", "kind": "basic", "name": "get", "accessibility": "public", @@ -30901,20 +33310,20 @@ ], "doc": "Get a Bar", "operation": { - "$id": "2248", + "$id": "2418", "name": "get", "resourceName": "Bar", "doc": "Get a Bar", "accessibility": "public", "parameters": [ { - "$id": "2249", + "$id": "2419", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2250", + "$id": "2420", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30924,7 +33333,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2251", + "$id": "2421", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -30938,18 +33347,18 @@ "readOnly": false }, { - "$id": "2252", + "$id": "2422", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2253", + "$id": "2423", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2254", + "$id": "2424", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30969,13 +33378,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.subscriptionId" }, { - "$id": "2255", + "$id": "2425", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2256", + "$id": "2426", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30993,13 +33402,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.resourceGroupName" }, { - "$id": "2257", + "$id": "2427", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "2258", + "$id": "2428", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31017,13 +33426,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.fooName" }, { - "$id": "2259", + "$id": "2429", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "2260", + "$id": "2430", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31041,12 +33450,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.barName" }, { - "$id": "2261", + "$id": "2431", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "289" + "$ref": "309" }, "isApiVersion": false, "optional": false, @@ -31063,7 +33472,7 @@ 200 ], "bodyType": { - "$ref": "601" + "$ref": "621" }, "headers": [], "isErrorResponse": false, @@ -31088,13 +33497,13 @@ }, "parameters": [ { - "$id": "2262", + "$id": "2432", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2263", + "$id": "2433", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31110,13 +33519,13 @@ "decorators": [] }, { - "$id": "2264", + "$id": "2434", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "2265", + "$id": "2435", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31132,13 +33541,13 @@ "decorators": [] }, { - "$id": "2266", + "$id": "2436", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "2267", + "$id": "2437", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31154,12 +33563,12 @@ "decorators": [] }, { - "$id": "2268", + "$id": "2438", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "289" + "$ref": "309" }, "location": "Header", "isApiVersion": false, @@ -31173,7 +33582,7 @@ ], "response": { "type": { - "$ref": "601" + "$ref": "621" } }, "isOverride": false, @@ -31182,7 +33591,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get" }, { - "$id": "2269", + "$id": "2439", "kind": "basic", "name": "update", "accessibility": "public", @@ -31191,20 +33600,20 @@ ], "doc": "Update a Bar", "operation": { - "$id": "2270", + "$id": "2440", "name": "update", "resourceName": "Bar", "doc": "Update a Bar", "accessibility": "public", "parameters": [ { - "$id": "2271", + "$id": "2441", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2272", + "$id": "2442", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31214,7 +33623,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2273", + "$id": "2443", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -31228,18 +33637,18 @@ "readOnly": false }, { - "$id": "2274", + "$id": "2444", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2275", + "$id": "2445", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2276", + "$id": "2446", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31259,13 +33668,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.subscriptionId" }, { - "$id": "2277", + "$id": "2447", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2278", + "$id": "2448", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31283,13 +33692,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.resourceGroupName" }, { - "$id": "2279", + "$id": "2449", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "2280", + "$id": "2450", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31307,13 +33716,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.fooName" }, { - "$id": "2281", + "$id": "2451", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "2282", + "$id": "2452", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31331,13 +33740,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.barName" }, { - "$id": "2283", + "$id": "2453", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "291" + "$ref": "311" }, "isApiVersion": false, "optional": false, @@ -31348,12 +33757,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.contentType" }, { - "$id": "2284", + "$id": "2454", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "293" + "$ref": "313" }, "isApiVersion": false, "optional": false, @@ -31364,13 +33773,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.accept" }, { - "$id": "2285", + "$id": "2455", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "601" + "$ref": "621" }, "isApiVersion": false, "contentTypes": [ @@ -31390,7 +33799,7 @@ 200 ], "bodyType": { - "$ref": "601" + "$ref": "621" }, "headers": [], "isErrorResponse": false, @@ -31418,13 +33827,13 @@ }, "parameters": [ { - "$id": "2286", + "$id": "2456", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2287", + "$id": "2457", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31440,13 +33849,13 @@ "decorators": [] }, { - "$id": "2288", + "$id": "2458", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "2289", + "$id": "2459", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31462,13 +33871,13 @@ "decorators": [] }, { - "$id": "2290", + "$id": "2460", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "2291", + "$id": "2461", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31484,13 +33893,13 @@ "decorators": [] }, { - "$id": "2292", + "$id": "2462", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "601" + "$ref": "621" }, "location": "Body", "isApiVersion": false, @@ -31502,13 +33911,13 @@ "decorators": [] }, { - "$id": "2293", + "$id": "2463", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "291" + "$ref": "311" }, "location": "Header", "isApiVersion": false, @@ -31520,12 +33929,12 @@ "decorators": [] }, { - "$id": "2294", + "$id": "2464", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "293" + "$ref": "313" }, "location": "Header", "isApiVersion": false, @@ -31539,7 +33948,7 @@ ], "response": { "type": { - "$ref": "601" + "$ref": "621" } }, "isOverride": false, @@ -31550,13 +33959,13 @@ ], "parameters": [ { - "$id": "2295", + "$id": "2465", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "2296", + "$id": "2466", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -31567,7 +33976,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "2297", + "$id": "2467", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -31580,10 +33989,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -31593,17 +34002,17 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } }, { - "$id": "2298", + "$id": "2468", "kind": "client", "name": "ZooRecommendation", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "2299", + "$id": "2469", "kind": "basic", "name": "recommend", "accessibility": "public", @@ -31612,20 +34021,20 @@ ], "doc": "A synchronous resource action.", "operation": { - "$id": "2300", + "$id": "2470", "name": "recommend", "resourceName": "Zoos", "doc": "A synchronous resource action.", "accessibility": "public", "parameters": [ { - "$id": "2301", + "$id": "2471", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2302", + "$id": "2472", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31635,7 +34044,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2303", + "$id": "2473", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -31649,18 +34058,18 @@ "readOnly": false }, { - "$id": "2304", + "$id": "2474", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2305", + "$id": "2475", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2306", + "$id": "2476", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31680,13 +34089,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.recommend.subscriptionId" }, { - "$id": "2307", + "$id": "2477", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2308", + "$id": "2478", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31704,13 +34113,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.recommend.resourceGroupName" }, { - "$id": "2309", + "$id": "2479", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "2310", + "$id": "2480", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31728,12 +34137,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.recommend.zooName" }, { - "$id": "2311", + "$id": "2481", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "295" + "$ref": "315" }, "isApiVersion": false, "optional": false, @@ -31750,7 +34159,7 @@ 200 ], "bodyType": { - "$ref": "903" + "$ref": "949" }, "headers": [], "isErrorResponse": false, @@ -31775,13 +34184,13 @@ }, "parameters": [ { - "$id": "2312", + "$id": "2482", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2313", + "$id": "2483", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31797,13 +34206,13 @@ "decorators": [] }, { - "$id": "2314", + "$id": "2484", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "2315", + "$id": "2485", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -31819,12 +34228,12 @@ "decorators": [] }, { - "$id": "2316", + "$id": "2486", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "295" + "$ref": "315" }, "location": "Header", "isApiVersion": false, @@ -31838,7 +34247,7 @@ ], "response": { "type": { - "$ref": "903" + "$ref": "949" } }, "isOverride": false, @@ -31849,13 +34258,13 @@ ], "parameters": [ { - "$id": "2317", + "$id": "2487", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "2318", + "$id": "2488", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -31866,7 +34275,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "2319", + "$id": "2489", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -31879,10 +34288,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "932" + "$ref": "978" }, { - "$ref": "935" + "$ref": "981" } ], "initializedBy": 0, @@ -31892,7 +34301,7 @@ "2024-05-01" ], "parent": { - "$ref": "908" + "$ref": "954" } } ]