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 a1c72a1ebca3..ee4144433b37 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 @@ -35,9 +35,11 @@ import { armResourceListName, armResourceReadName, armResourceUpdateName, + armResourceWithParameter, extensionResourceOperationName, legacyExtensionResourceOperationName, legacyResourceOperationName, + builtInResourceOperationName, nonResourceMethodMetadata, parentResourceName, readsResourceName, @@ -356,6 +358,64 @@ function parseResourceOperation( ]; } return undefined; + case builtInResourceOperationName: + switch (decorator.args[2].jsValue) { + case "read": + return [ + ResourceOperationKind.Get, + getResourceModelIdCore( + sdkContext, + decorator.args[1].value as Model, + decorator.definition?.name + ) + ]; + case "createOrUpdate": + return [ + ResourceOperationKind.Create, + getResourceModelIdCore( + sdkContext, + decorator.args[1].value as Model, + decorator.definition?.name + ) + ]; + case "update": + return [ + ResourceOperationKind.Update, + getResourceModelIdCore( + sdkContext, + decorator.args[1].value as Model, + decorator.definition?.name + ) + ]; + case "delete": + return [ + ResourceOperationKind.Delete, + getResourceModelIdCore( + sdkContext, + decorator.args[1].value as Model, + decorator.definition?.name + ) + ]; + case "list": + return [ + ResourceOperationKind.List, + getResourceModelIdCore( + sdkContext, + decorator.args[1].value as Model, + decorator.definition?.name + ) + ]; + case "action": + return [ + ResourceOperationKind.Action, + getResourceModelIdCore( + sdkContext, + decorator.args[1].value as Model, + decorator.definition?.name + ) + ]; + } + return undefined; } } return undefined; @@ -437,7 +497,7 @@ function traverseClient(client: T, clients: T[]) { function getAllResourceModels(codeModel: CodeModel): InputModelType[] { const resourceModels: InputModelType[] = []; for (const model of codeModel.models) { - if (model.decorators?.some((d) => d.name == armResourceInternal)) { + if (model.decorators?.some((d) => d.name == armResourceInternal || d.name == armResourceWithParameter)) { resourceModels.push(model); } } diff --git a/eng/packages/http-client-csharp-mgmt/emitter/src/sdk-context-options.ts b/eng/packages/http-client-csharp-mgmt/emitter/src/sdk-context-options.ts index dec5eeba744c..087333f0a644 100644 --- a/eng/packages/http-client-csharp-mgmt/emitter/src/sdk-context-options.ts +++ b/eng/packages/http-client-csharp-mgmt/emitter/src/sdk-context-options.ts @@ -59,6 +59,12 @@ const armResourceUpdateRegex = "Azure\\.ResourceManager\\.@armResourceUpdate"; export const extensionResourceOperationName = "@extensionResourceOperation"; export const legacyExtensionResourceOperationName = "@legacyExtensionResourceOperation"; export const legacyResourceOperationName = "@legacyResourceOperation"; +export const builtInResourceOperationName = "@builtInResourceOperation"; + +export const armResourceWithParameter = + "Azure.ResourceManager.Private.@armResourceWithParameter"; +const armResourceWithParameterRegex = + "Azure\\.ResourceManager\\.Private\\.@armResourceWithParameter"; export const armResourceInternal = "Azure.ResourceManager.Private.@armResourceInternal"; @@ -114,6 +120,7 @@ export const azureSDKContextOptions: CreateSdkContextOptions = { resourceGroupResourceRegex, singletonRegex, subscriptionResourceRegex, - tenantResourceRegex + tenantResourceRegex, + armResourceWithParameterRegex, ] }; diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Visitors/NameVisitor.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Visitors/NameVisitor.cs index 1fa41892b147..a5d02fe09683 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Visitors/NameVisitor.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Visitors/NameVisitor.cs @@ -209,6 +209,11 @@ private void DoPreVisitPropertyNameRenaming(InputProperty property, PropertyProv // TODO: we will remove this manual updated when https://github.com/microsoft/typespec/issues/8079 is resolved if (method.EnclosingType is MrwSerializationTypeDefinition serializationTypeDefinition && _deserializationRename.TryGetValue(serializationTypeDefinition, out var newName) && method.Signature.Name.StartsWith("Deserialize")) { + // If the enclosing type name ends with "Data" (added by ResourceVisitor), ensure the method name also includes "Data" + if (serializationTypeDefinition.Name.EndsWith("Data") && !newName.EndsWith("Data")) + { + newName += "Data"; + } method.Signature.Update(name: newName); } @@ -224,6 +229,11 @@ private void DoPreVisitPropertyNameRenaming(InputProperty property, PropertyProv && statement.Expression is KeywordExpression keyword && keyword.Keyword == "return" && keyword.Expression is InvokeMethodExpression invokeMethod) { + // If the enclosing type name ends with "Data" (added by ResourceVisitor), ensure the method name also includes "Data" + if (serializationTypeDefinition.Name.EndsWith("Data") && !newName.EndsWith("Data")) + { + newName += "Data"; + } invokeMethod.Update(methodName: newName); } return base.VisitExpressionStatement(statement, method); @@ -242,6 +252,11 @@ private void DoPreVisitPropertyNameRenaming(InputProperty property, PropertyProv && keywordExpression.Keyword == "return" && keywordExpression.Expression is InvokeMethodExpression invokeMethod) { + // If the enclosing type name ends with "Data" (added by ResourceVisitor), ensure the method name also includes "Data" + if (serializationTypeDefinition.Name.EndsWith("Data") && !newName.EndsWith("Data")) + { + newName += "Data"; + } invokeMethod.Update(methodName: newName); } } diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/PrivateEndpointConnection.tsp b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/PrivateEndpointConnection.tsp index 23a61faed558..be719281fa54 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/PrivateEndpointConnection.tsp +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/PrivateEndpointConnection.tsp @@ -47,3 +47,57 @@ model StartRequest { */ startVm?: boolean; } +@parentResource(StorageSyncService) +model PrivateEndpointConnection is PrivateEndpointConnectionResource; +alias PrivateEndpointOperations = Azure.ResourceManager.PrivateEndpoints; + +@armResourceOperations +interface PrivateEndpointConnections { + /** + * Gets the specified private endpoint connection associated with the storage sync service. + */ + get is PrivateEndpointOperations.Read< + StorageSyncService, + >; + + /** + * Update the state of specified private endpoint connection associated with the storage sync service. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @Azure.Core.useFinalStateVia("location") + create is PrivateEndpointOperations.CreateOrUpdateAsync< + StorageSyncService, + Response = ArmResourceUpdatedResponse | (ArmAcceptedLroResponse & + Azure.Core.Foundations.RetryAfterHeader> & { + @header("x-ms-correlation-request-id") + @doc("correlation request id") + correlationRequestId?: string; + + @header("x-ms-request-id") + @doc("Request id") + requestId?: string; + }), + >; +} + +model StorageSyncService + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = StorageSyncService, + KeyName = "storageSyncServiceName", + SegmentName = "storageSyncServices", + NamePattern = "" + >; + ...Azure.ResourceManager.ManagedServiceIdentityProperty; +} + +model StorageSyncServiceProperties { + /** The storage sync service location. */ + storageSyncServiceLocation: string; +} + +@armResourceOperations +interface StorageSyncServices { + /** Gets the specified storage sync service. */ + get is ArmResourceRead; +} \ No newline at end of file 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 f0d5e66e5304..7eb7b743a88f 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 @@ -25,21 +25,29 @@ using Azure.ResourceManager; }) @versioned(Versions) @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) -namespace MgmtTypeSpec; +namespace MgmtTypeSpec { -interface Operations extends Azure.ResourceManager.Operations {} + interface Operations extends Azure.ResourceManager.Operations {} -/** The available API versions. */ -enum Versions { - v2024_05_01: "2024-05-01", -} + /** The available API versions. */ + enum Versions { + v2024_05_01: "2024-05-01", + } + + @@clientLocation(Bars.get, "Bar"); + @@clientLocation(Bars.update, "Bar"); -@@clientLocation(Bars.get, "Bar"); -@@clientLocation(Bars.update, "Bar"); + #suppress "deprecated" + @@Azure.ClientGenerator.Core.Legacy.flattenProperty(BarSettingsResource.flattenedNestedProperty); + @@Azure.ClientGenerator.Core.Legacy.flattenProperty(Foo.properties); -#suppress "deprecated" -@@Azure.ClientGenerator.Core.Legacy.flattenProperty(BarSettingsResource.flattenedNestedProperty); -@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Foo.properties); + @@alternateType(FooProperties.something, Azure.ResourceManager.Foundations.ManagedServiceIdentity, "csharp"); + @@clientName(Employees.listByParent, "GetEmployees", "csharp"); + @@alternateType(ZooAddressListListResult.value, Azure.ResourceManager.Models.SubResource[], "csharp"); + @@alternateType(Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties.privateEndpoint, Azure.ResourceManager.Models.SubResource, "csharp"); +} -@@alternateType(FooProperties.something, Azure.ResourceManager.Foundations.ManagedServiceIdentity, "csharp"); -@@clientName(Employees.listByParent, "GetEmployees", "csharp"); \ No newline at end of file +// We define this model here to test if the generated code would be replaced by Azure.ResourceManager.Models.SubResource via alternateType +namespace Azure.ResourceManager.Models { + model SubResource { } +} \ No newline at end of file diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.Serialization.cs new file mode 100644 index 000000000000..4a688cca4974 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.Serialization.cs @@ -0,0 +1,196 @@ +// 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 private endpoint connection resource. + public partial class AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData : 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(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData)} does not support writing '{format}' format."); + } + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData)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(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData DeserializeAzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData(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(); + PrivateEndpointConnectionProperties properties = 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 = PrivateEndpointConnectionProperties.DeserializePrivateEndpointConnectionProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + properties); + } + + /// 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(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData)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 DeserializeAzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData)} 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(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData azureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData) + { + if (azureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(azureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData, ModelSerializationExtensions.WireOptions); + return content; + } + + /// The to deserialize the from. + internal static AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData(document.RootElement, ModelSerializationExtensions.WireOptions); + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.cs new file mode 100644 index 000000000000..19b9c70da0ca --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.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.Core; +using Azure.Generator.MgmtTypeSpec.Tests.Models; +using Azure.ResourceManager.Models; + +namespace Azure.Generator.MgmtTypeSpec.Tests +{ + /// A private endpoint connection resource. + public partial class AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData : ResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData() + { + } + + /// 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 private endpoint connection properties. + internal AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, PrivateEndpointConnectionProperties properties) : base(id, name, resourceType, systemData) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The private endpoint connection properties. + [WirePath("properties")] + public PrivateEndpointConnectionProperties Properties { get; set; } + } +} 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 b7554887c217..9370e81fe6b2 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 @@ -51,6 +51,42 @@ private static MockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource Ge return managementGroupResource.GetCachedClient(client => new MockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource(client, managementGroupResource.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 PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAzureGeneratorMgmtTypeSpecTestsArmClient(client).GetPrivateEndpointConnectionResource(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 StorageSyncServiceResource GetStorageSyncServiceResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAzureGeneratorMgmtTypeSpecTestsArmClient(client).GetStorageSyncServiceResource(id); + } + /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// @@ -491,6 +527,61 @@ public static SAPVirtualInstanceResource GetSAPVirtualInstanceResource(this ArmC return GetMockableAzureGeneratorMgmtTypeSpecTestsArmClient(client).GetSAPVirtualInstanceResource(id); } + /// + /// Gets a collection of StorageSyncServices in the + /// + /// Mocking. + /// To mock this method, please mock instead. + /// + /// + /// The the method will execute against. + /// is null. + /// An object representing collection of StorageSyncServices and their operations over a StorageSyncServiceResource. + public static StorageSyncServiceCollection GetStorageSyncServices(this ResourceGroupResource resourceGroupResource) + { + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + + return GetMockableAzureGeneratorMgmtTypeSpecTestsResourceGroupResource(resourceGroupResource).GetStorageSyncServices(); + } + + /// + /// Gets the specified storage sync service. + /// + /// Mocking. + /// To mock this method, please mock instead. + /// + /// + /// The the method will execute against. + /// The name of the StorageSyncService. + /// The cancellation token to use. + /// is null. + [ForwardsClientCalls] + public static async Task> GetStorageSyncServiceAsync(this ResourceGroupResource resourceGroupResource, string storageSyncServiceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + + return await GetMockableAzureGeneratorMgmtTypeSpecTestsResourceGroupResource(resourceGroupResource).GetStorageSyncServiceAsync(storageSyncServiceName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the specified storage sync service. + /// + /// Mocking. + /// To mock this method, please mock instead. + /// + /// + /// The the method will execute against. + /// The name of the StorageSyncService. + /// The cancellation token to use. + /// is null. + [ForwardsClientCalls] + public static Response GetStorageSyncService(this ResourceGroupResource resourceGroupResource, string storageSyncServiceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + + return GetMockableAzureGeneratorMgmtTypeSpecTestsResourceGroupResource(resourceGroupResource).GetStorageSyncService(storageSyncServiceName, cancellationToken); + } + /// /// Gets a collection of Foos in the /// 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 1a620f2649ce..dcf8ca43a242 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 @@ -30,6 +30,24 @@ internal MockableAzureGeneratorMgmtTypeSpecTestsArmClient(ArmClient client, Reso { } + /// 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 PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(ResourceIdentifier id) + { + PrivateEndpointConnectionResource.ValidateResourceId(id); + return new PrivateEndpointConnectionResource(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 StorageSyncServiceResource GetStorageSyncServiceResource(ResourceIdentifier id) + { + StorageSyncServiceResource.ValidateResourceId(id); + return new StorageSyncServiceResource(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. diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsResourceGroupResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsResourceGroupResource.cs index 6130c24b9d6e..2548b90013e2 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsResourceGroupResource.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsResourceGroupResource.cs @@ -31,6 +31,71 @@ internal MockableAzureGeneratorMgmtTypeSpecTestsResourceGroupResource(ArmClient { } + /// Gets a collection of StorageSyncServices in the . + /// An object representing collection of StorageSyncServices and their operations over a StorageSyncServiceResource. + public virtual StorageSyncServiceCollection GetStorageSyncServices() + { + return GetCachedClient(client => new StorageSyncServiceCollection(client, Id)); + } + + /// + /// Gets the specified storage sync service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}. + /// + /// + /// Operation Id. + /// StorageSyncServices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the StorageSyncService. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetStorageSyncServiceAsync(string storageSyncServiceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(storageSyncServiceName, nameof(storageSyncServiceName)); + + return await GetStorageSyncServices().GetAsync(storageSyncServiceName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the specified storage sync service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}. + /// + /// + /// Operation Id. + /// StorageSyncServices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the StorageSyncService. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetStorageSyncService(string storageSyncServiceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(storageSyncServiceName, nameof(storageSyncServiceName)); + + return GetStorageSyncServices().Get(storageSyncServiceName, cancellationToken); + } + /// Gets a collection of Foos in the . /// An object representing collection of Foos and their operations over a FooResource. public virtual FooCollection GetFoos() diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/LongRunningOperation/PrivateEndpointConnectionOperationSource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/LongRunningOperation/PrivateEndpointConnectionOperationSource.cs new file mode 100644 index 000000000000..1ebf9d961a94 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/LongRunningOperation/PrivateEndpointConnectionOperationSource.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.Generator.MgmtTypeSpec.Tests +{ + /// + internal partial class PrivateEndpointConnectionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + /// + /// + internal PrivateEndpointConnectionOperationSource(ArmClient client) + { + _client = client; + } + + /// The response from the service. + /// The cancellation token to use. + /// + PrivateEndpointConnectionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = JsonDocument.Parse(response.ContentStream); + AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData data = AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.DeserializeAzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new PrivateEndpointConnectionResource(_client, data); + } + + /// The response from the service. + /// The cancellation token to use. + /// + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData data = AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.DeserializeAzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new PrivateEndpointConnectionResource(_client, data); + } + } +} 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 dd38fcde3ce9..7d064cce54d7 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 @@ -28,6 +28,62 @@ public static FooPreviewAction FooPreviewAction(string action = default, string return new FooPreviewAction(action, result, additionalBinaryDataProperties: null); } + /// A private endpoint connection resource. + /// 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 private endpoint connection properties. + /// A new instance for mocking. + public static AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, PrivateEndpointConnectionProperties properties = default) + { + return new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties: null, + properties); + } + + /// Properties of the private endpoint connection. + /// The group ids for the private endpoint resource. + /// The private endpoint resource. + /// A collection of information about the state of the connection between service consumer and provider. + /// The provisioning state of the private endpoint connection resource. + /// A new instance for mocking. + public static PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(IEnumerable groupIds = default, SubResource privateEndpoint = default, AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState privateLinkServiceConnectionState = default, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState? provisioningState = default) + { + groupIds ??= new ChangeTrackingList(); + + return new PrivateEndpointConnectionProperties(groupIds.ToList(), privateEndpoint, privateLinkServiceConnectionState, provisioningState, additionalBinaryDataProperties: null); + } + + /// 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. + /// Resource tags. + /// The geo-location where the resource lives. + /// The storage sync service location. + /// The managed service identities assigned to this resource. + /// A new instance for mocking. + public static StorageSyncServiceData StorageSyncServiceData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, IDictionary tags = default, AzureLocation location = default, string storageSyncServiceLocation = default, ManagedServiceIdentity identity = default) + { + tags ??= new ChangeTrackingDictionary(); + + return new StorageSyncServiceData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties: null, + tags, + location, + storageSyncServiceLocation is null ? default : new StorageSyncServiceProperties(storageSyncServiceLocation, null), + identity); + } + /// 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". 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 9e935fd4a28a..87b825e203eb 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 @@ -19,6 +19,8 @@ namespace Azure.Generator.MgmtTypeSpec.Tests /// [ModelReaderWriterBuildable(typeof(AllocatedQuotaToSubscriptionList))] [ModelReaderWriterBuildable(typeof(AllocatedToSubscription))] + [ModelReaderWriterBuildable(typeof(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData))] + [ModelReaderWriterBuildable(typeof(AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState))] [ModelReaderWriterBuildable(typeof(BarData))] [ModelReaderWriterBuildable(typeof(BarDeeplyNestedQuotaProperties))] [ModelReaderWriterBuildable(typeof(BarListResult))] @@ -88,6 +90,8 @@ namespace Azure.Generator.MgmtTypeSpec.Tests [ModelReaderWriterBuildable(typeof(PlaywrightQuotaListResult))] [ModelReaderWriterBuildable(typeof(PlaywrightQuotaProperties))] [ModelReaderWriterBuildable(typeof(PlaywrightQuotaResource))] + [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionProperties))] + [ModelReaderWriterBuildable(typeof(PrivateEndpointConnectionResource))] [ModelReaderWriterBuildable(typeof(QueryNetworkSiblingSetRequest))] [ModelReaderWriterBuildable(typeof(ResponseError))] [ModelReaderWriterBuildable(typeof(SafeFlattenModel))] @@ -99,6 +103,9 @@ namespace Azure.Generator.MgmtTypeSpec.Tests [ModelReaderWriterBuildable(typeof(SelfHelpResource))] [ModelReaderWriterBuildable(typeof(SelfHelpResourceData))] [ModelReaderWriterBuildable(typeof(SelfHelpResourceProperties))] + [ModelReaderWriterBuildable(typeof(StorageSyncServiceData))] + [ModelReaderWriterBuildable(typeof(StorageSyncServiceProperties))] + [ModelReaderWriterBuildable(typeof(StorageSyncServiceResource))] [ModelReaderWriterBuildable(typeof(SubResource))] [ModelReaderWriterBuildable(typeof(SubscriptionQuotaAllocationsListData))] [ModelReaderWriterBuildable(typeof(SubscriptionQuotaAllocationsListProperties))] diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState.cs new file mode 100644 index 000000000000..fa9f8ff2745a --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState.cs @@ -0,0 +1,81 @@ +// 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 current provisioning state. + public readonly partial struct AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState : IEquatable + { + private readonly string _value; + /// Connection has been provisioned. + private const string SucceededValue = "Succeeded"; + /// Connection is being created. + private const string CreatingValue = "Creating"; + /// Connection is being deleted. + private const string DeletingValue = "Deleting"; + /// Connection provisioning has failed. + private const string FailedValue = "Failed"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Connection has been provisioned. + public static AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState Succeeded { get; } = new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState(SucceededValue); + + /// Connection is being created. + public static AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState Creating { get; } = new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState(CreatingValue); + + /// Connection is being deleted. + public static AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState Deleting { get; } = new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState(DeletingValue); + + /// Connection provisioning has failed. + public static AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState Failed { get; } = new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState(FailedValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState left, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState 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 !=(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState left, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState(string value) => new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState(value); + + /// Converts a string to a . + /// The value. + public static implicit operator AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState?(string value) => value == null ? null : new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState other && Equals(other); + + /// + public bool Equals(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState 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/Models/AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus.cs new file mode 100644 index 000000000000..929f2a5c5d51 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus.cs @@ -0,0 +1,76 @@ +// 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 private endpoint connection status. + public readonly partial struct AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus : IEquatable + { + private readonly string _value; + /// Connection waiting for approval or rejection. + private const string PendingValue = "Pending"; + /// Connection approved. + private const string ApprovedValue = "Approved"; + /// Connection Rejected. + private const string RejectedValue = "Rejected"; + + /// Initializes a new instance of . + /// The value. + /// is null. + public AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + + /// Connection waiting for approval or rejection. + public static AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus Pending { get; } = new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus(PendingValue); + + /// Connection approved. + public static AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus Approved { get; } = new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus(ApprovedValue); + + /// Connection Rejected. + public static AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus Rejected { get; } = new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus(RejectedValue); + + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. + public static bool operator ==(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus left, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus 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 !=(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus left, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus right) => !left.Equals(right); + + /// Converts a string to a . + /// The value. + public static implicit operator AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus(string value) => new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus(value); + + /// Converts a string to a . + /// The value. + public static implicit operator AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus?(string value) => value == null ? null : new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus other && Equals(other); + + /// + public bool Equals(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus 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/Models/AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState.Serialization.cs new file mode 100644 index 000000000000..f11611ae1c47 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState.Serialization.cs @@ -0,0 +1,167 @@ +// 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 +{ + /// A collection of information about the state of the connection between service consumer and provider. + public partial class AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState : 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(AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(ActionsRequired)) + { + writer.WritePropertyName("actionsRequired"u8); + writer.WriteStringValue(ActionsRequired); + } + 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. + AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState 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(AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState DeserializeAzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus? status = default; + string description = default; + string actionsRequired = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("status"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("description"u8)) + { + description = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("actionsRequired"u8)) + { + actionsRequired = prop.Value.GetString(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState(status, description, actionsRequired, 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(AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState 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 DeserializeAzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState)} 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/AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState.cs new file mode 100644 index 000000000000..6611a8e06bc6 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState.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.Generator.MgmtTypeSpec.Tests; + +namespace Azure.Generator.MgmtTypeSpec.Tests.Models +{ + /// A collection of information about the state of the connection between service consumer and provider. + public partial class AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState() + { + } + + /// Initializes a new instance of . + /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + /// The reason for approval/rejection of the connection. + /// A message indicating if changes on the service provider require any updates on the consumer. + /// Keeps track of any properties unknown to the library. + internal AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus? status, string description, string actionsRequired, IDictionary additionalBinaryDataProperties) + { + Status = status; + Description = description; + ActionsRequired = actionsRequired; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + [WirePath("status")] + public AzureGeneratorMgmtTypeSpecTestsPrivateEndpointServiceConnectionStatus? Status { get; set; } + + /// The reason for approval/rejection of the connection. + [WirePath("description")] + public string Description { get; set; } + + /// A message indicating if changes on the service provider require any updates on the consumer. + [WirePath("actionsRequired")] + public string ActionsRequired { get; set; } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateEndpointConnectionProperties.Serialization.cs new file mode 100644 index 000000000000..131b85c25536 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateEndpointConnectionProperties.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.Generator.MgmtTypeSpec.Tests; +using Azure.ResourceManager.Resources.Models; + +namespace Azure.Generator.MgmtTypeSpec.Tests.Models +{ + /// Properties of the private endpoint connection. + public partial class PrivateEndpointConnectionProperties : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal PrivateEndpointConnectionProperties() + { + } + + /// 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(PrivateEndpointConnectionProperties)} does not support writing '{format}' format."); + } + if (options.Format != "W" && Optional.IsCollectionDefined(GroupIds)) + { + writer.WritePropertyName("groupIds"u8); + writer.WriteStartArray(); + foreach (string item in GroupIds) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(PrivateEndpoint)) + { + writer.WritePropertyName("privateEndpoint"u8); + ((IJsonModel)PrivateEndpoint).Write(writer, options); + } + writer.WritePropertyName("privateLinkServiceConnectionState"u8); + writer.WriteObjectValue(PrivateLinkServiceConnectionState, options); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.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. + PrivateEndpointConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionProperties 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(PrivateEndpointConnectionProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePrivateEndpointConnectionProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static PrivateEndpointConnectionProperties DeserializePrivateEndpointConnectionProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList groupIds = default; + SubResource privateEndpoint = default; + AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState privateLinkServiceConnectionState = default; + AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState? provisioningState = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("groupIds"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in prop.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + groupIds = array; + continue; + } + if (prop.NameEquals("privateEndpoint"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateEndpoint = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(prop.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureGeneratorMgmtTypeSpecTestsContext.Default); + continue; + } + if (prop.NameEquals("privateLinkServiceConnectionState"u8)) + { + privateLinkServiceConnectionState = AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState.DeserializeAzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState(prop.Value, options); + continue; + } + if (prop.NameEquals("provisioningState"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new PrivateEndpointConnectionProperties(groupIds ?? new ChangeTrackingList(), privateEndpoint, privateLinkServiceConnectionState, provisioningState, 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(PrivateEndpointConnectionProperties)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + PrivateEndpointConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual PrivateEndpointConnectionProperties 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 DeserializePrivateEndpointConnectionProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PrivateEndpointConnectionProperties)} 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/PrivateEndpointConnectionProperties.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateEndpointConnectionProperties.cs new file mode 100644 index 000000000000..656414c20765 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateEndpointConnectionProperties.cs @@ -0,0 +1,63 @@ +// 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; +using Azure.ResourceManager.Resources.Models; + +namespace Azure.Generator.MgmtTypeSpec.Tests.Models +{ + /// Properties of the private endpoint connection. + public partial class PrivateEndpointConnectionProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// A collection of information about the state of the connection between service consumer and provider. + /// is null. + public PrivateEndpointConnectionProperties(AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState privateLinkServiceConnectionState) + { + Argument.AssertNotNull(privateLinkServiceConnectionState, nameof(privateLinkServiceConnectionState)); + + GroupIds = new ChangeTrackingList(); + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + } + + /// Initializes a new instance of . + /// The group ids for the private endpoint resource. + /// The private endpoint resource. + /// A collection of information about the state of the connection between service consumer and provider. + /// The provisioning state of the private endpoint connection resource. + /// Keeps track of any properties unknown to the library. + internal PrivateEndpointConnectionProperties(IReadOnlyList groupIds, SubResource privateEndpoint, AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState privateLinkServiceConnectionState, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) + { + GroupIds = groupIds; + PrivateEndpoint = privateEndpoint; + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + ProvisioningState = provisioningState; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The group ids for the private endpoint resource. + [WirePath("groupIds")] + public IReadOnlyList GroupIds { get; } + + /// The private endpoint resource. + [WirePath("privateEndpoint")] + public SubResource PrivateEndpoint { get; set; } + + /// A collection of information about the state of the connection between service consumer and provider. + [WirePath("privateLinkServiceConnectionState")] + public AzureGeneratorMgmtTypeSpecTestsPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } + + /// The provisioning state of the private endpoint connection resource. + [WirePath("provisioningState")] + public AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionProvisioningState? ProvisioningState { get; } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/StorageSyncServiceProperties.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/StorageSyncServiceProperties.Serialization.cs new file mode 100644 index 000000000000..08977ea7add2 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/StorageSyncServiceProperties.Serialization.cs @@ -0,0 +1,143 @@ +// 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 StorageSyncServiceProperties. + internal partial class StorageSyncServiceProperties : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal StorageSyncServiceProperties() + { + } + + /// 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(StorageSyncServiceProperties)} does not support writing '{format}' format."); + } + writer.WritePropertyName("storageSyncServiceLocation"u8); + writer.WriteStringValue(StorageSyncServiceLocation); + 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. + StorageSyncServiceProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual StorageSyncServiceProperties 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(StorageSyncServiceProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeStorageSyncServiceProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static StorageSyncServiceProperties DeserializeStorageSyncServiceProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string storageSyncServiceLocation = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("storageSyncServiceLocation"u8)) + { + storageSyncServiceLocation = prop.Value.GetString(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new StorageSyncServiceProperties(storageSyncServiceLocation, 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(StorageSyncServiceProperties)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + StorageSyncServiceProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual StorageSyncServiceProperties 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 DeserializeStorageSyncServiceProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(StorageSyncServiceProperties)} 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/StorageSyncServiceProperties.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/StorageSyncServiceProperties.cs new file mode 100644 index 000000000000..2aa824124954 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/StorageSyncServiceProperties.cs @@ -0,0 +1,40 @@ +// 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 StorageSyncServiceProperties. + internal partial class StorageSyncServiceProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The storage sync service location. + internal StorageSyncServiceProperties(string storageSyncServiceLocation) + { + StorageSyncServiceLocation = storageSyncServiceLocation; + } + + /// Initializes a new instance of . + /// The storage sync service location. + /// Keeps track of any properties unknown to the library. + internal StorageSyncServiceProperties(string storageSyncServiceLocation, IDictionary additionalBinaryDataProperties) + { + StorageSyncServiceLocation = storageSyncServiceLocation; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The storage sync service location. + [WirePath("storageSyncServiceLocation")] + public string StorageSyncServiceLocation { get; } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateEndpointConnectionCollection.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateEndpointConnectionCollection.cs new file mode 100644 index 000000000000..8ab513226bb5 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateEndpointConnectionCollection.cs @@ -0,0 +1,505 @@ +// 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; + +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 GetPrivateEndpointConnections method from an instance of . + /// + public partial class PrivateEndpointConnectionCollection : ArmCollection + { + private readonly ClientDiagnostics _privateEndpointConnectionsClientDiagnostics; + private readonly PrivateEndpointConnections _privateEndpointConnectionsRestClient; + + /// Initializes a new instance of PrivateEndpointConnectionCollection for mocking. + protected PrivateEndpointConnectionCollection() + { + } + + /// 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 PrivateEndpointConnectionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(PrivateEndpointConnectionResource.ResourceType, out string privateEndpointConnectionApiVersion); + _privateEndpointConnectionsClientDiagnostics = new ClientDiagnostics("Azure.Generator.MgmtTypeSpec.Tests", PrivateEndpointConnectionResource.ResourceType.Namespace, Diagnostics); + _privateEndpointConnectionsRestClient = new PrivateEndpointConnections(_privateEndpointConnectionsClientDiagnostics, Pipeline, Endpoint, privateEndpointConnectionApiVersion ?? "2024-05-01"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != StorageSyncServiceResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, StorageSyncServiceResource.ResourceType), id); + } + } + + /// + /// Update the state of specified private endpoint connection associated with the storage sync service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// PrivateEndpointConnections_Create. + /// + /// + /// 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 private endpoint connection associated with the Azure resource. + /// 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 privateEndpointConnectionName, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _privateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _privateEndpointConnectionsRestClient.CreateCreateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.ToRequestContent(data), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + TestsArmOperation operation = new TestsArmOperation( + new PrivateEndpointConnectionOperationSource(Client), + _privateEndpointConnectionsClientDiagnostics, + Pipeline, + message.Request, + response, + OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + { + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update the state of specified private endpoint connection associated with the storage sync service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// PrivateEndpointConnections_Create. + /// + /// + /// 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 private endpoint connection associated with the Azure resource. + /// 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 privateEndpointConnectionName, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _privateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionCollection.CreateOrUpdate"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _privateEndpointConnectionsRestClient.CreateCreateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.ToRequestContent(data), context); + Response response = Pipeline.ProcessMessage(message, context); + TestsArmOperation operation = new TestsArmOperation( + new PrivateEndpointConnectionOperationSource(Client), + _privateEndpointConnectionsClientDiagnostics, + Pipeline, + message.Request, + response, + OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + { + operation.WaitForCompletion(cancellationToken); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specified private endpoint connection associated with the storage sync service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// PrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the private endpoint connection associated with the Azure resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _privateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _privateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specified private endpoint connection associated with the storage sync service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// PrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the private endpoint connection associated with the Azure resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Get(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _privateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _privateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// PrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the private endpoint connection associated with the Azure resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> ExistsAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _privateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _privateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData)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. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// PrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the private endpoint connection associated with the Azure resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Exists(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _privateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _privateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData)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. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// PrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the private endpoint connection associated with the Azure resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetIfExistsAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _privateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _privateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// PrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the private endpoint connection associated with the Azure resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual NullableResponse GetIfExists(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + using DiagnosticScope scope = _privateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _privateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(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/PrivateEndpointConnectionResource.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..2e9c96b317b4 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateEndpointConnectionResource.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 PrivateEndpointConnectionResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData(); + + /// 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. + AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData 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. + AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData 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/PrivateEndpointConnectionResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateEndpointConnectionResource.cs new file mode 100644 index 000000000000..39bb515e8cac --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateEndpointConnectionResource.cs @@ -0,0 +1,308 @@ +// 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; + +namespace Azure.Generator.MgmtTypeSpec.Tests +{ + /// + /// A class representing a PrivateEndpointConnection 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 GetPrivateEndpointConnections method. + /// + public partial class PrivateEndpointConnectionResource : ArmResource + { + private readonly ClientDiagnostics _privateEndpointConnectionsClientDiagnostics; + private readonly PrivateEndpointConnections _privateEndpointConnectionsRestClient; + private readonly AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "MgmtTypeSpec/storageSyncServices/privateEndpointConnections"; + + /// Initializes a new instance of PrivateEndpointConnectionResource for mocking. + protected PrivateEndpointConnectionResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal PrivateEndpointConnectionResource(ArmClient client, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData 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 PrivateEndpointConnectionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string privateEndpointConnectionApiVersion); + _privateEndpointConnectionsClientDiagnostics = new ClientDiagnostics("Azure.Generator.MgmtTypeSpec.Tests", ResourceType.Namespace, Diagnostics); + _privateEndpointConnectionsRestClient = new PrivateEndpointConnections(_privateEndpointConnectionsClientDiagnostics, Pipeline, Endpoint, privateEndpointConnectionApiVersion ?? "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 AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData 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 subscriptionId. + /// The resourceGroupName. + /// The storageSyncServiceName. + /// The privateEndpointConnectionName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string privateEndpointConnectionName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}"; + 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); + } + } + + /// + /// Gets the specified private endpoint connection associated with the storage sync service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// PrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _privateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _privateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specified private endpoint connection associated with the storage sync service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// PrivateEndpointConnections_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _privateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _privateEndpointConnectionsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a PrivateEndpointConnection. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// PrivateEndpointConnections_Create. + /// + /// + /// 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. + /// Resource create parameters. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _privateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _privateEndpointConnectionsRestClient.CreateCreateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.ToRequestContent(data), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + TestsArmOperation operation = new TestsArmOperation( + new PrivateEndpointConnectionOperationSource(Client), + _privateEndpointConnectionsClientDiagnostics, + Pipeline, + message.Request, + response, + OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + { + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a PrivateEndpointConnection. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}. + /// + /// + /// Operation Id. + /// PrivateEndpointConnections_Create. + /// + /// + /// 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. + /// Resource create parameters. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using DiagnosticScope scope = _privateEndpointConnectionsClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _privateEndpointConnectionsRestClient.CreateCreateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, AzureGeneratorMgmtTypeSpecTestsPrivateEndpointConnectionData.ToRequestContent(data), context); + Response response = Pipeline.ProcessMessage(message, context); + TestsArmOperation operation = new TestsArmOperation( + new PrivateEndpointConnectionOperationSource(Client), + _privateEndpointConnectionsClientDiagnostics, + Pipeline, + message.Request, + response, + OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + { + operation.WaitForCompletion(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/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs new file mode 100644 index 000000000000..4e11b746fe98 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -0,0 +1,88 @@ +// 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 PrivateEndpointConnections + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of PrivateEndpointConnections for mocking. + protected PrivateEndpointConnections() + { + } + + /// Initializes a new instance of PrivateEndpointConnections. + /// 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 PrivateEndpointConnections(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(Guid subscriptionId, string resourceGroupName, string storageSyncServiceName, string privateEndpointConnectionName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/MgmtTypeSpec/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, 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 CreateCreateRequest(Guid subscriptionId, string resourceGroupName, string storageSyncServiceName, string privateEndpointConnectionName, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/MgmtTypeSpec/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, 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; + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/StorageSyncServicesRestOperations.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/StorageSyncServicesRestOperations.cs new file mode 100644 index 000000000000..40cffe1c89a3 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/StorageSyncServicesRestOperations.cs @@ -0,0 +1,63 @@ +// 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 StorageSyncServices + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of StorageSyncServices for mocking. + protected StorageSyncServices() + { + } + + /// Initializes a new instance of StorageSyncServices. + /// 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 StorageSyncServices(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(Guid subscriptionId, string resourceGroupName, string storageSyncServiceName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId.ToString(), true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/MgmtTypeSpec/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, 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; + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/StorageSyncServiceCollection.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/StorageSyncServiceCollection.cs new file mode 100644 index 000000000000..37cd19b68d91 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/StorageSyncServiceCollection.cs @@ -0,0 +1,390 @@ +// 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 GetStorageSyncServices method from an instance of . + /// + public partial class StorageSyncServiceCollection : ArmCollection + { + private readonly ClientDiagnostics _storageSyncServicesClientDiagnostics; + private readonly StorageSyncServices _storageSyncServicesRestClient; + + /// Initializes a new instance of StorageSyncServiceCollection for mocking. + protected StorageSyncServiceCollection() + { + } + + /// 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 StorageSyncServiceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(StorageSyncServiceResource.ResourceType, out string storageSyncServiceApiVersion); + _storageSyncServicesClientDiagnostics = new ClientDiagnostics("Azure.Generator.MgmtTypeSpec.Tests", StorageSyncServiceResource.ResourceType.Namespace, Diagnostics); + _storageSyncServicesRestClient = new StorageSyncServices(_storageSyncServicesClientDiagnostics, Pipeline, Endpoint, storageSyncServiceApiVersion ?? "2024-05-01"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceGroupResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, ResourceGroupResource.ResourceType), id); + } + } + + /// + /// Gets the specified storage sync service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}. + /// + /// + /// Operation Id. + /// StorageSyncServices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the StorageSyncService. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetAsync(string storageSyncServiceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(storageSyncServiceName, nameof(storageSyncServiceName)); + + using DiagnosticScope scope = _storageSyncServicesClientDiagnostics.CreateScope("StorageSyncServiceCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _storageSyncServicesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, storageSyncServiceName, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(StorageSyncServiceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new StorageSyncServiceResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specified storage sync service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}. + /// + /// + /// Operation Id. + /// StorageSyncServices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the StorageSyncService. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Get(string storageSyncServiceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(storageSyncServiceName, nameof(storageSyncServiceName)); + + using DiagnosticScope scope = _storageSyncServicesClientDiagnostics.CreateScope("StorageSyncServiceCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _storageSyncServicesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, storageSyncServiceName, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(StorageSyncServiceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new StorageSyncServiceResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}. + /// + /// + /// Operation Id. + /// StorageSyncServices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the StorageSyncService. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> ExistsAsync(string storageSyncServiceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(storageSyncServiceName, nameof(storageSyncServiceName)); + + using DiagnosticScope scope = _storageSyncServicesClientDiagnostics.CreateScope("StorageSyncServiceCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _storageSyncServicesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, storageSyncServiceName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(StorageSyncServiceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((StorageSyncServiceData)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. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}. + /// + /// + /// Operation Id. + /// StorageSyncServices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the StorageSyncService. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Exists(string storageSyncServiceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(storageSyncServiceName, nameof(storageSyncServiceName)); + + using DiagnosticScope scope = _storageSyncServicesClientDiagnostics.CreateScope("StorageSyncServiceCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _storageSyncServicesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, storageSyncServiceName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(StorageSyncServiceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((StorageSyncServiceData)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. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}. + /// + /// + /// Operation Id. + /// StorageSyncServices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the StorageSyncService. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetIfExistsAsync(string storageSyncServiceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(storageSyncServiceName, nameof(storageSyncServiceName)); + + using DiagnosticScope scope = _storageSyncServicesClientDiagnostics.CreateScope("StorageSyncServiceCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _storageSyncServicesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, storageSyncServiceName, context); + await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(StorageSyncServiceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((StorageSyncServiceData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new StorageSyncServiceResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}. + /// + /// + /// Operation Id. + /// StorageSyncServices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// + /// The name of the StorageSyncService. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual NullableResponse GetIfExists(string storageSyncServiceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(storageSyncServiceName, nameof(storageSyncServiceName)); + + using DiagnosticScope scope = _storageSyncServicesClientDiagnostics.CreateScope("StorageSyncServiceCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _storageSyncServicesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, storageSyncServiceName, context); + Pipeline.Send(message, context.CancellationToken); + Response result = message.Response; + Response response = default; + switch (result.Status) + { + case 200: + response = Response.FromValue(StorageSyncServiceData.FromResponse(result), result); + break; + case 404: + response = Response.FromValue((StorageSyncServiceData)null, result); + break; + default: + throw new RequestFailedException(result); + } + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new StorageSyncServiceResource(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/StorageSyncServiceData.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/StorageSyncServiceData.Serialization.cs new file mode 100644 index 000000000000..662184e47017 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/StorageSyncServiceData.Serialization.cs @@ -0,0 +1,235 @@ +// 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 +{ + /// Concrete tracked resource types can be created by aliasing this type using a specific property type. + public partial class StorageSyncServiceData : TrackedResourceData, IJsonModel + { + /// Initializes a new instance of for deserialization. + internal StorageSyncServiceData() + { + } + + /// 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(StorageSyncServiceData)} 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(Identity)) + { + writer.WritePropertyName("identity"u8); + ((IJsonModel)Identity).Write(writer, options); + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + StorageSyncServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (StorageSyncServiceData)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(StorageSyncServiceData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeStorageSyncServiceData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static StorageSyncServiceData DeserializeStorageSyncServiceData(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(); + IDictionary tags = default; + AzureLocation location = default; + StorageSyncServiceProperties properties = default; + ManagedServiceIdentity identity = 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("tags"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var prop0 in prop.Value.EnumerateObject()) + { + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + if (prop.NameEquals("location"u8)) + { + location = new AzureLocation(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = StorageSyncServiceProperties.DeserializeStorageSyncServiceProperties(prop.Value, options); + continue; + } + if (prop.NameEquals("identity"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(prop.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureGeneratorMgmtTypeSpecTestsContext.Default); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new StorageSyncServiceData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + tags ?? new ChangeTrackingDictionary(), + location, + properties, + identity); + } + + /// 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(StorageSyncServiceData)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + StorageSyncServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (StorageSyncServiceData)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 DeserializeStorageSyncServiceData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(StorageSyncServiceData)} does not support reading '{options.Format}' format."); + } + } + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to deserialize the from. + internal static StorageSyncServiceData FromResponse(Response response) + { + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeStorageSyncServiceData(document.RootElement, ModelSerializationExtensions.WireOptions); + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/StorageSyncServiceData.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/StorageSyncServiceData.cs new file mode 100644 index 000000000000..68f154e65985 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/StorageSyncServiceData.cs @@ -0,0 +1,63 @@ +// 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 +{ + /// Concrete tracked resource types can be created by aliasing this type using a specific property type. + public partial class StorageSyncServiceData : TrackedResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The geo-location where the resource lives. + internal StorageSyncServiceData(AzureLocation location) : base(location) + { + } + + /// 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. + /// Resource tags. + /// The geo-location where the resource lives. + /// The resource-specific properties for this resource. + /// The managed service identities assigned to this resource. + internal StorageSyncServiceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, IDictionary tags, AzureLocation location, StorageSyncServiceProperties properties, ManagedServiceIdentity identity) : base(id, name, resourceType, systemData, tags, location) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + Identity = identity; + } + + /// The resource-specific properties for this resource. + [WirePath("properties")] + internal StorageSyncServiceProperties Properties { get; } + + /// The managed service identities assigned to this resource. + [WirePath("identity")] + public ManagedServiceIdentity Identity { get; } + + /// The storage sync service location. + [WirePath("properties.storageSyncServiceLocation")] + public string StorageSyncServiceLocation + { + get + { + return Properties.StorageSyncServiceLocation; + } + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/StorageSyncServiceResource.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/StorageSyncServiceResource.Serialization.cs new file mode 100644 index 000000000000..d2b89a7f162c --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/StorageSyncServiceResource.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 StorageSyncServiceResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new StorageSyncServiceData(); + + /// 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. + StorageSyncServiceData 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. + StorageSyncServiceData 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/StorageSyncServiceResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/StorageSyncServiceResource.cs new file mode 100644 index 000000000000..6ba82e5f4945 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/StorageSyncServiceResource.cs @@ -0,0 +1,223 @@ +// 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 StorageSyncService 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 GetStorageSyncServices method. + /// + public partial class StorageSyncServiceResource : ArmResource + { + private readonly ClientDiagnostics _storageSyncServicesClientDiagnostics; + private readonly StorageSyncServices _storageSyncServicesRestClient; + private readonly StorageSyncServiceData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "MgmtTypeSpec/storageSyncServices"; + + /// Initializes a new instance of StorageSyncServiceResource for mocking. + protected StorageSyncServiceResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal StorageSyncServiceResource(ArmClient client, StorageSyncServiceData 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 StorageSyncServiceResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string storageSyncServiceApiVersion); + _storageSyncServicesClientDiagnostics = new ClientDiagnostics("Azure.Generator.MgmtTypeSpec.Tests", ResourceType.Namespace, Diagnostics); + _storageSyncServicesRestClient = new StorageSyncServices(_storageSyncServicesClientDiagnostics, Pipeline, Endpoint, storageSyncServiceApiVersion ?? "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 StorageSyncServiceData 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 subscriptionId. + /// The resourceGroupName. + /// The storageSyncServiceName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string storageSyncServiceName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}"; + 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); + } + } + + /// + /// Gets the specified storage sync service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}. + /// + /// + /// Operation Id. + /// StorageSyncServices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _storageSyncServicesClientDiagnostics.CreateScope("StorageSyncServiceResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _storageSyncServicesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(StorageSyncServiceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new StorageSyncServiceResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specified storage sync service. + /// + /// + /// Request Path. + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}. + /// + /// + /// Operation Id. + /// StorageSyncServices_Get. + /// + /// + /// Default Api Version. + /// 2024-05-01. + /// + /// + /// Resource. + /// . + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _storageSyncServicesClientDiagnostics.CreateScope("StorageSyncServiceResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _storageSyncServicesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(StorageSyncServiceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new StorageSyncServiceResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a collection of PrivateEndpointConnections in the . + /// An object representing collection of PrivateEndpointConnections and their operations over a PrivateEndpointConnectionResource. + public virtual PrivateEndpointConnectionCollection GetPrivateEndpointConnections() + { + return GetCachedClient(client => new PrivateEndpointConnectionCollection(client, Id)); + } + + /// Gets the specified private endpoint connection associated with the storage sync service. + /// The name of the private endpoint connection associated with the Azure resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetPrivateEndpointConnectionAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + return await GetPrivateEndpointConnections().GetAsync(privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); + } + + /// Gets the specified private endpoint connection associated with the storage sync service. + /// The name of the private endpoint connection associated with the Azure resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetPrivateEndpointConnection(string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); + + return GetPrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken); + } + } +} 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 6dafdc431899..850d1d0d9fd1 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 @@ -322,8 +322,8 @@ { "$id": "26", "kind": "enum", - "name": "ExtendedLocationType", - "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ExtendedLocationType", + "name": "PrivateEndpointServiceConnectionStatus", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus", "valueType": { "$id": "27", "kind": "string", @@ -335,28 +335,168 @@ { "$id": "28", "kind": "enumvalue", - "name": "EdgeZone", - "value": "EdgeZone", + "name": "Pending", + "value": "Pending", "valueType": { "$ref": "27" }, "enumType": { "$ref": "26" }, - "doc": "Azure Edge Zones location type", + "doc": "Connection waiting for approval or rejection", "decorators": [] }, { "$id": "29", "kind": "enumvalue", - "name": "CustomLocation", - "value": "CustomLocation", + "name": "Approved", + "value": "Approved", + "valueType": { + "$ref": "27" + }, + "enumType": { + "$ref": "26" + }, + "doc": "Connection approved", + "decorators": [] + }, + { + "$id": "30", + "kind": "enumvalue", + "name": "Rejected", + "value": "Rejected", "valueType": { "$ref": "27" }, "enumType": { "$ref": "26" }, + "doc": "Connection Rejected", + "decorators": [] + } + ], + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "doc": "The private endpoint connection status.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "decorators": [] + }, + { + "$id": "31", + "kind": "enum", + "name": "PrivateEndpointConnectionProvisioningState", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "33", + "kind": "enumvalue", + "name": "Succeeded", + "value": "Succeeded", + "valueType": { + "$ref": "32" + }, + "enumType": { + "$ref": "31" + }, + "doc": "Connection has been provisioned", + "decorators": [] + }, + { + "$id": "34", + "kind": "enumvalue", + "name": "Creating", + "value": "Creating", + "valueType": { + "$ref": "32" + }, + "enumType": { + "$ref": "31" + }, + "doc": "Connection is being created", + "decorators": [] + }, + { + "$id": "35", + "kind": "enumvalue", + "name": "Deleting", + "value": "Deleting", + "valueType": { + "$ref": "32" + }, + "enumType": { + "$ref": "31" + }, + "doc": "Connection is being deleted", + "decorators": [] + }, + { + "$id": "36", + "kind": "enumvalue", + "name": "Failed", + "value": "Failed", + "valueType": { + "$ref": "32" + }, + "enumType": { + "$ref": "31" + }, + "doc": "Connection provisioning has failed", + "decorators": [] + } + ], + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "doc": "The current provisioning state.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json,LroInitial,LroFinalEnvelope", + "decorators": [] + }, + { + "$id": "37", + "kind": "enum", + "name": "ExtendedLocationType", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ExtendedLocationType", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "39", + "kind": "enumvalue", + "name": "EdgeZone", + "value": "EdgeZone", + "valueType": { + "$ref": "38" + }, + "enumType": { + "$ref": "37" + }, + "doc": "Azure Edge Zones location type", + "decorators": [] + }, + { + "$id": "40", + "kind": "enumvalue", + "name": "CustomLocation", + "value": "CustomLocation", + "valueType": { + "$ref": "38" + }, + "enumType": { + "$ref": "37" + }, "doc": "Azure Custom Locations type", "decorators": [] } @@ -369,12 +509,12 @@ "decorators": [] }, { - "$id": "30", + "$id": "41", "kind": "enum", "name": "ManagedServiceIdentityType", "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ManagedServiceIdentityType", "valueType": { - "$id": "31", + "$id": "42", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -382,57 +522,57 @@ }, "values": [ { - "$id": "32", + "$id": "43", "kind": "enumvalue", "name": "None", "value": "None", "valueType": { - "$ref": "31" + "$ref": "42" }, "enumType": { - "$ref": "30" + "$ref": "41" }, "doc": "No managed identity.", "decorators": [] }, { - "$id": "33", + "$id": "44", "kind": "enumvalue", "name": "SystemAssigned", "value": "SystemAssigned", "valueType": { - "$ref": "31" + "$ref": "42" }, "enumType": { - "$ref": "30" + "$ref": "41" }, "doc": "System assigned managed identity.", "decorators": [] }, { - "$id": "34", + "$id": "45", "kind": "enumvalue", "name": "UserAssigned", "value": "UserAssigned", "valueType": { - "$ref": "31" + "$ref": "42" }, "enumType": { - "$ref": "30" + "$ref": "41" }, "doc": "User assigned managed identity.", "decorators": [] }, { - "$id": "35", + "$id": "46", "kind": "enumvalue", "name": "SystemAndUserAssigned", "value": "SystemAssigned, UserAssigned", "valueType": { - "$ref": "31" + "$ref": "42" }, "enumType": { - "$ref": "30" + "$ref": "41" }, "doc": "System and user assigned managed identity.", "decorators": [] @@ -446,12 +586,12 @@ "decorators": [] }, { - "$id": "36", + "$id": "47", "kind": "enum", "name": "MarketplaceSubscriptionStatus", "crossLanguageDefinitionId": "LiftrBase.MarketplaceSubscriptionStatus", "valueType": { - "$id": "37", + "$id": "48", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -459,57 +599,57 @@ }, "values": [ { - "$id": "38", + "$id": "49", "kind": "enumvalue", "name": "PendingFulfillmentStart", "value": "PendingFulfillmentStart", "valueType": { - "$ref": "37" + "$ref": "48" }, "enumType": { - "$ref": "36" + "$ref": "47" }, "doc": "Purchased but not yet activated", "decorators": [] }, { - "$id": "39", + "$id": "50", "kind": "enumvalue", "name": "Subscribed", "value": "Subscribed", "valueType": { - "$ref": "37" + "$ref": "48" }, "enumType": { - "$ref": "36" + "$ref": "47" }, "doc": "Marketplace subscription is activated", "decorators": [] }, { - "$id": "40", + "$id": "51", "kind": "enumvalue", "name": "Suspended", "value": "Suspended", "valueType": { - "$ref": "37" + "$ref": "48" }, "enumType": { - "$ref": "36" + "$ref": "47" }, "doc": "This state indicates that a customer's payment for the Marketplace service was not received", "decorators": [] }, { - "$id": "41", + "$id": "52", "kind": "enumvalue", "name": "Unsubscribed", "value": "Unsubscribed", "valueType": { - "$ref": "37" + "$ref": "48" }, "enumType": { - "$ref": "36" + "$ref": "47" }, "doc": "Customer has cancelled the subscription", "decorators": [] @@ -523,12 +663,12 @@ "decorators": [] }, { - "$id": "42", + "$id": "53", "kind": "enum", "name": "RenewalMode", "crossLanguageDefinitionId": "LiftrBase.RenewalMode", "valueType": { - "$id": "43", + "$id": "54", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -536,29 +676,29 @@ }, "values": [ { - "$id": "44", + "$id": "55", "kind": "enumvalue", "name": "Auto", "value": "Auto", "valueType": { - "$ref": "43" + "$ref": "54" }, "enumType": { - "$ref": "42" + "$ref": "53" }, "doc": "Automatic renewal", "decorators": [] }, { - "$id": "45", + "$id": "56", "kind": "enumvalue", "name": "Manual", "value": "Manual", "valueType": { - "$ref": "43" + "$ref": "54" }, "enumType": { - "$ref": "42" + "$ref": "53" }, "doc": "Manual renewal", "decorators": [] @@ -572,12 +712,12 @@ "decorators": [] }, { - "$id": "46", + "$id": "57", "kind": "enum", "name": "LimitType", "crossLanguageDefinitionId": "MgmtTypeSpec.LimitType", "valueType": { - "$id": "47", + "$id": "58", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -585,15 +725,15 @@ }, "values": [ { - "$id": "48", + "$id": "59", "kind": "enumvalue", "name": "LimitValue", "value": "LimitValue", "valueType": { - "$ref": "47" + "$ref": "58" }, "enumType": { - "$ref": "46" + "$ref": "57" }, "decorators": [] } @@ -606,12 +746,12 @@ "decorators": [] }, { - "$id": "49", + "$id": "60", "kind": "enum", "name": "QuotaName", "crossLanguageDefinitionId": "MgmtTypeSpec.QuotaName", "valueType": { - "$id": "50", + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -619,15 +759,15 @@ }, "values": [ { - "$id": "51", + "$id": "62", "kind": "enumvalue", "name": "ExecutionMinutes", "value": "ExecutionMinutes", "valueType": { - "$ref": "50" + "$ref": "61" }, "enumType": { - "$ref": "49" + "$ref": "60" }, "doc": "Quota for execution duration in minutes.", "decorators": [] @@ -641,12 +781,12 @@ "decorators": [] }, { - "$id": "52", + "$id": "63", "kind": "enum", "name": "PlaywrightQuotaName", "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotaName", "valueType": { - "$id": "53", + "$id": "64", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -654,15 +794,15 @@ }, "values": [ { - "$id": "54", + "$id": "65", "kind": "enumvalue", "name": "ExecutionMinutes", "value": "ExecutionMinutes", "valueType": { - "$ref": "53" + "$ref": "64" }, "enumType": { - "$ref": "52" + "$ref": "63" }, "doc": "Quota for execution duration in minutes.", "decorators": [] @@ -676,12 +816,12 @@ "decorators": [] }, { - "$id": "55", + "$id": "66", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "MgmtTypeSpec.Versions", "valueType": { - "$id": "56", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -689,15 +829,15 @@ }, "values": [ { - "$id": "57", + "$id": "68", "kind": "enumvalue", "name": "v2024_05_01", "value": "2024-05-01", "valueType": { - "$ref": "56" + "$ref": "67" }, "enumType": { - "$ref": "55" + "$ref": "66" }, "decorators": [] } @@ -712,13 +852,13 @@ ], "constants": [ { - "$id": "58", + "$id": "69", "kind": "constant", "name": "previewActionsContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "59", + "$id": "70", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -728,13 +868,13 @@ "decorators": [] }, { - "$id": "60", + "$id": "71", "kind": "constant", "name": "previewActionsContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "61", + "$id": "72", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -744,13 +884,13 @@ "decorators": [] }, { - "$id": "62", + "$id": "73", "kind": "constant", "name": "listContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "63", + "$id": "74", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -760,13 +900,13 @@ "decorators": [] }, { - "$id": "64", + "$id": "75", "kind": "constant", "name": "listByMongoClusterContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "65", + "$id": "76", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -776,13 +916,13 @@ "decorators": [] }, { - "$id": "66", + "$id": "77", "kind": "constant", "name": "startContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "67", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -792,13 +932,13 @@ "decorators": [] }, { - "$id": "68", + "$id": "79", "kind": "constant", "name": "startContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "69", + "$id": "80", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -808,13 +948,109 @@ "decorators": [] }, { - "$id": "70", + "$id": "81", "kind": "constant", "name": "startContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "71", + "$id": "82", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "83", + "kind": "constant", + "name": "getContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "84", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "85", + "kind": "constant", + "name": "createContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "86", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "87", + "kind": "constant", + "name": "createContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "89", + "kind": "constant", + "name": "createContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "91", + "kind": "constant", + "name": "createContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "92", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "93", + "kind": "constant", + "name": "getContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "94", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -824,13 +1060,13 @@ "decorators": [] }, { - "$id": "72", + "$id": "95", "kind": "constant", "name": "createOrUpdateContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "73", + "$id": "96", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -840,13 +1076,13 @@ "decorators": [] }, { - "$id": "74", + "$id": "97", "kind": "constant", "name": "createOrUpdateContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "75", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -856,13 +1092,13 @@ "decorators": [] }, { - "$id": "76", + "$id": "99", "kind": "constant", "name": "createOrUpdateContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "77", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -872,13 +1108,13 @@ "decorators": [] }, { - "$id": "78", + "$id": "101", "kind": "constant", "name": "createOrUpdateContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "79", + "$id": "102", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -888,13 +1124,13 @@ "decorators": [] }, { - "$id": "80", + "$id": "103", "kind": "constant", - "name": "getContentType", + "name": "getContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "81", + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -904,13 +1140,13 @@ "decorators": [] }, { - "$id": "82", + "$id": "105", "kind": "constant", "name": "listContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "83", + "$id": "106", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -920,13 +1156,13 @@ "decorators": [] }, { - "$id": "84", + "$id": "107", "kind": "constant", "name": "listBySubscriptionContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "85", + "$id": "108", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -936,13 +1172,13 @@ "decorators": [] }, { - "$id": "86", + "$id": "109", "kind": "constant", "name": "fooActionContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "87", + "$id": "110", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -952,13 +1188,13 @@ "decorators": [] }, { - "$id": "88", + "$id": "111", "kind": "constant", "name": "fooActionContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "89", + "$id": "112", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -968,13 +1204,13 @@ "decorators": [] }, { - "$id": "90", + "$id": "113", "kind": "constant", "name": "fooActionContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "91", + "$id": "114", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -984,13 +1220,13 @@ "decorators": [] }, { - "$id": "92", + "$id": "115", "kind": "constant", "name": "fooActionContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "93", + "$id": "116", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1000,13 +1236,13 @@ "decorators": [] }, { - "$id": "94", + "$id": "117", "kind": "constant", - "name": "getContentType1", + "name": "getContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "95", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1016,13 +1252,13 @@ "decorators": [] }, { - "$id": "96", + "$id": "119", "kind": "constant", "name": "createOrUpdateContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "97", + "$id": "120", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1032,13 +1268,13 @@ "decorators": [] }, { - "$id": "98", + "$id": "121", "kind": "constant", "name": "createOrUpdateContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "99", + "$id": "122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1048,13 +1284,13 @@ "decorators": [] }, { - "$id": "100", + "$id": "123", "kind": "constant", "name": "updateContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "101", + "$id": "124", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1064,13 +1300,13 @@ "decorators": [] }, { - "$id": "102", + "$id": "125", "kind": "constant", "name": "updateContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "103", + "$id": "126", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1080,13 +1316,13 @@ "decorators": [] }, { - "$id": "104", + "$id": "127", "kind": "constant", "name": "createOrUpdateContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "105", + "$id": "128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1096,13 +1332,13 @@ "decorators": [] }, { - "$id": "106", + "$id": "129", "kind": "constant", "name": "createOrUpdateContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "107", + "$id": "130", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1112,13 +1348,13 @@ "decorators": [] }, { - "$id": "108", + "$id": "131", "kind": "constant", "name": "createOrUpdateContentType8", "namespace": "", "usage": "None", "valueType": { - "$id": "109", + "$id": "132", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1128,13 +1364,13 @@ "decorators": [] }, { - "$id": "110", + "$id": "133", "kind": "constant", "name": "createOrUpdateContentType9", "namespace": "", "usage": "None", "valueType": { - "$id": "111", + "$id": "134", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1144,13 +1380,13 @@ "decorators": [] }, { - "$id": "112", + "$id": "135", "kind": "constant", "name": "listContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "113", + "$id": "136", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1160,13 +1396,13 @@ "decorators": [] }, { - "$id": "114", + "$id": "137", "kind": "constant", "name": "createOrUpdateContentType10", "namespace": "", "usage": "None", "valueType": { - "$id": "115", + "$id": "138", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1176,13 +1412,13 @@ "decorators": [] }, { - "$id": "116", + "$id": "139", "kind": "constant", "name": "createOrUpdateContentType11", "namespace": "", "usage": "None", "valueType": { - "$id": "117", + "$id": "140", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1192,13 +1428,13 @@ "decorators": [] }, { - "$id": "118", + "$id": "141", "kind": "constant", "name": "createOrUpdateContentType12", "namespace": "", "usage": "None", "valueType": { - "$id": "119", + "$id": "142", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1208,13 +1444,13 @@ "decorators": [] }, { - "$id": "120", + "$id": "143", "kind": "constant", "name": "createOrUpdateContentType13", "namespace": "", "usage": "None", "valueType": { - "$id": "121", + "$id": "144", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1224,13 +1460,13 @@ "decorators": [] }, { - "$id": "122", + "$id": "145", "kind": "constant", - "name": "getContentType2", + "name": "getContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "123", + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1240,13 +1476,13 @@ "decorators": [] }, { - "$id": "124", + "$id": "147", "kind": "constant", - "name": "getContentType3", + "name": "getContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "125", + "$id": "148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1256,13 +1492,13 @@ "decorators": [] }, { - "$id": "126", + "$id": "149", "kind": "constant", "name": "updateContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "127", + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1272,13 +1508,13 @@ "decorators": [] }, { - "$id": "128", + "$id": "151", "kind": "constant", "name": "updateContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "129", + "$id": "152", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1288,13 +1524,13 @@ "decorators": [] }, { - "$id": "130", + "$id": "153", "kind": "constant", "name": "updateContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "131", + "$id": "154", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1304,13 +1540,13 @@ "decorators": [] }, { - "$id": "132", + "$id": "155", "kind": "constant", "name": "updateContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "133", + "$id": "156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1320,13 +1556,13 @@ "decorators": [] }, { - "$id": "134", + "$id": "157", "kind": "constant", "name": "listByParentContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "135", + "$id": "158", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1336,13 +1572,13 @@ "decorators": [] }, { - "$id": "136", + "$id": "159", "kind": "constant", "name": "createOrUpdateContentType14", "namespace": "", "usage": "None", "valueType": { - "$id": "137", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1352,13 +1588,13 @@ "decorators": [] }, { - "$id": "138", + "$id": "161", "kind": "constant", "name": "createOrUpdateContentType15", "namespace": "", "usage": "None", "valueType": { - "$id": "139", + "$id": "162", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1368,13 +1604,13 @@ "decorators": [] }, { - "$id": "140", + "$id": "163", "kind": "constant", "name": "createOrUpdateContentType16", "namespace": "", "usage": "None", "valueType": { - "$id": "141", + "$id": "164", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1384,13 +1620,13 @@ "decorators": [] }, { - "$id": "142", + "$id": "165", "kind": "constant", "name": "createOrUpdateContentType17", "namespace": "", "usage": "None", "valueType": { - "$id": "143", + "$id": "166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1400,13 +1636,13 @@ "decorators": [] }, { - "$id": "144", + "$id": "167", "kind": "constant", - "name": "getContentType4", + "name": "getContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "145", + "$id": "168", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1416,13 +1652,13 @@ "decorators": [] }, { - "$id": "146", + "$id": "169", "kind": "constant", "name": "updateContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "147", + "$id": "170", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1432,13 +1668,13 @@ "decorators": [] }, { - "$id": "148", + "$id": "171", "kind": "constant", "name": "updateContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "149", + "$id": "172", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1448,13 +1684,13 @@ "decorators": [] }, { - "$id": "150", + "$id": "173", "kind": "constant", "name": "updateContentType8", "namespace": "", "usage": "None", "valueType": { - "$id": "151", + "$id": "174", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1464,13 +1700,13 @@ "decorators": [] }, { - "$id": "152", + "$id": "175", "kind": "constant", "name": "updateContentType9", "namespace": "", "usage": "None", "valueType": { - "$id": "153", + "$id": "176", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1480,13 +1716,13 @@ "decorators": [] }, { - "$id": "154", + "$id": "177", "kind": "constant", "name": "listContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "155", + "$id": "178", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1496,13 +1732,13 @@ "decorators": [] }, { - "$id": "156", + "$id": "179", "kind": "constant", "name": "listBySubscriptionContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "157", + "$id": "180", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1512,13 +1748,13 @@ "decorators": [] }, { - "$id": "158", + "$id": "181", "kind": "constant", "name": "createOrUpdateContentType18", "namespace": "", "usage": "None", "valueType": { - "$id": "159", + "$id": "182", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1528,13 +1764,13 @@ "decorators": [] }, { - "$id": "160", + "$id": "183", "kind": "constant", "name": "createOrUpdateContentType19", "namespace": "", "usage": "None", "valueType": { - "$id": "161", + "$id": "184", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1544,13 +1780,13 @@ "decorators": [] }, { - "$id": "162", + "$id": "185", "kind": "constant", "name": "createOrUpdateContentType20", "namespace": "", "usage": "None", "valueType": { - "$id": "163", + "$id": "186", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1560,13 +1796,13 @@ "decorators": [] }, { - "$id": "164", + "$id": "187", "kind": "constant", "name": "createOrUpdateContentType21", "namespace": "", "usage": "None", "valueType": { - "$id": "165", + "$id": "188", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1576,13 +1812,13 @@ "decorators": [] }, { - "$id": "166", + "$id": "189", "kind": "constant", - "name": "getContentType5", + "name": "getContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "167", + "$id": "190", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1592,13 +1828,13 @@ "decorators": [] }, { - "$id": "168", + "$id": "191", "kind": "constant", "name": "updateContentType10", "namespace": "", "usage": "None", "valueType": { - "$id": "169", + "$id": "192", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1608,13 +1844,13 @@ "decorators": [] }, { - "$id": "170", + "$id": "193", "kind": "constant", "name": "updateContentType11", "namespace": "", "usage": "None", "valueType": { - "$id": "171", + "$id": "194", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1624,13 +1860,13 @@ "decorators": [] }, { - "$id": "172", + "$id": "195", "kind": "constant", "name": "updateContentType12", "namespace": "", "usage": "None", "valueType": { - "$id": "173", + "$id": "196", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1640,13 +1876,13 @@ "decorators": [] }, { - "$id": "174", + "$id": "197", "kind": "constant", "name": "updateContentType13", "namespace": "", "usage": "None", "valueType": { - "$id": "175", + "$id": "198", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1656,13 +1892,13 @@ "decorators": [] }, { - "$id": "176", + "$id": "199", "kind": "constant", "name": "listContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "177", + "$id": "200", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1672,13 +1908,13 @@ "decorators": [] }, { - "$id": "178", + "$id": "201", "kind": "constant", "name": "listBySubscriptionContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "179", + "$id": "202", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1688,13 +1924,13 @@ "decorators": [] }, { - "$id": "180", + "$id": "203", "kind": "constant", "name": "zooAddressListContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "181", + "$id": "204", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1704,13 +1940,13 @@ "decorators": [] }, { - "$id": "182", + "$id": "205", "kind": "constant", - "name": "getContentType6", + "name": "getContentType8", "namespace": "", "usage": "None", "valueType": { - "$id": "183", + "$id": "206", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1720,13 +1956,13 @@ "decorators": [] }, { - "$id": "184", + "$id": "207", "kind": "constant", "name": "createOrUpdateContentType22", "namespace": "", "usage": "None", "valueType": { - "$id": "185", + "$id": "208", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1736,13 +1972,13 @@ "decorators": [] }, { - "$id": "186", + "$id": "209", "kind": "constant", "name": "createOrUpdateContentType23", "namespace": "", "usage": "None", "valueType": { - "$id": "187", + "$id": "210", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1752,13 +1988,13 @@ "decorators": [] }, { - "$id": "188", + "$id": "211", "kind": "constant", "name": "updateContentType14", "namespace": "", "usage": "None", "valueType": { - "$id": "189", + "$id": "212", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1768,13 +2004,13 @@ "decorators": [] }, { - "$id": "190", + "$id": "213", "kind": "constant", "name": "updateContentType15", "namespace": "", "usage": "None", "valueType": { - "$id": "191", + "$id": "214", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1784,13 +2020,13 @@ "decorators": [] }, { - "$id": "192", + "$id": "215", "kind": "constant", "name": "listContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "193", + "$id": "216", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1800,13 +2036,13 @@ "decorators": [] }, { - "$id": "194", + "$id": "217", "kind": "constant", - "name": "getContentType7", + "name": "getContentType9", "namespace": "", "usage": "None", "valueType": { - "$id": "195", + "$id": "218", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1816,13 +2052,13 @@ "decorators": [] }, { - "$id": "196", + "$id": "219", "kind": "constant", - "name": "getContentType8", + "name": "getContentType10", "namespace": "", "usage": "None", "valueType": { - "$id": "197", + "$id": "220", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1832,13 +2068,13 @@ "decorators": [] }, { - "$id": "198", + "$id": "221", "kind": "constant", "name": "listBySubscriptionContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "199", + "$id": "222", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1848,13 +2084,13 @@ "decorators": [] }, { - "$id": "200", + "$id": "223", "kind": "constant", "name": "createOrUpdateContentType24", "namespace": "", "usage": "None", "valueType": { - "$id": "201", + "$id": "224", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1864,13 +2100,13 @@ "decorators": [] }, { - "$id": "202", + "$id": "225", "kind": "constant", "name": "createOrUpdateContentType25", "namespace": "", "usage": "None", "valueType": { - "$id": "203", + "$id": "226", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1880,13 +2116,13 @@ "decorators": [] }, { - "$id": "204", + "$id": "227", "kind": "constant", - "name": "getContentType9", + "name": "getContentType11", "namespace": "", "usage": "None", "valueType": { - "$id": "205", + "$id": "228", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1896,13 +2132,13 @@ "decorators": [] }, { - "$id": "206", + "$id": "229", "kind": "constant", "name": "updateContentType16", "namespace": "", "usage": "None", "valueType": { - "$id": "207", + "$id": "230", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1912,13 +2148,13 @@ "decorators": [] }, { - "$id": "208", + "$id": "231", "kind": "constant", "name": "updateContentType17", "namespace": "", "usage": "None", "valueType": { - "$id": "209", + "$id": "232", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1928,13 +2164,13 @@ "decorators": [] }, { - "$id": "210", + "$id": "233", "kind": "constant", "name": "updateContentType18", "namespace": "", "usage": "None", "valueType": { - "$id": "211", + "$id": "234", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1944,13 +2180,13 @@ "decorators": [] }, { - "$id": "212", + "$id": "235", "kind": "constant", "name": "updateContentType19", "namespace": "", "usage": "None", "valueType": { - "$id": "213", + "$id": "236", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1960,13 +2196,13 @@ "decorators": [] }, { - "$id": "214", + "$id": "237", "kind": "constant", - "name": "getContentType10", + "name": "getContentType12", "namespace": "", "usage": "None", "valueType": { - "$id": "215", + "$id": "238", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1976,13 +2212,13 @@ "decorators": [] }, { - "$id": "216", + "$id": "239", "kind": "constant", - "name": "getContentType11", + "name": "getContentType13", "namespace": "", "usage": "None", "valueType": { - "$id": "217", + "$id": "240", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1992,13 +2228,13 @@ "decorators": [] }, { - "$id": "218", + "$id": "241", "kind": "constant", "name": "listContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "219", + "$id": "242", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2008,13 +2244,13 @@ "decorators": [] }, { - "$id": "220", + "$id": "243", "kind": "constant", "name": "createOrUpdateContentType26", "namespace": "", "usage": "None", "valueType": { - "$id": "221", + "$id": "244", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2024,13 +2260,13 @@ "decorators": [] }, { - "$id": "222", + "$id": "245", "kind": "constant", "name": "createOrUpdateContentType27", "namespace": "", "usage": "None", "valueType": { - "$id": "223", + "$id": "246", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2040,13 +2276,13 @@ "decorators": [] }, { - "$id": "224", + "$id": "247", "kind": "constant", "name": "createOrUpdateContentType28", "namespace": "", "usage": "None", "valueType": { - "$id": "225", + "$id": "248", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2056,13 +2292,13 @@ "decorators": [] }, { - "$id": "226", + "$id": "249", "kind": "constant", "name": "updateContentType20", "namespace": "", "usage": "None", "valueType": { - "$id": "227", + "$id": "250", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2072,13 +2308,13 @@ "decorators": [] }, { - "$id": "228", + "$id": "251", "kind": "constant", "name": "updateContentType21", "namespace": "", "usage": "None", "valueType": { - "$id": "229", + "$id": "252", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2088,13 +2324,13 @@ "decorators": [] }, { - "$id": "230", + "$id": "253", "kind": "constant", "name": "updateContentType22", "namespace": "", "usage": "None", "valueType": { - "$id": "231", + "$id": "254", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2104,13 +2340,13 @@ "decorators": [] }, { - "$id": "232", + "$id": "255", "kind": "constant", - "name": "getContentType12", + "name": "getContentType14", "namespace": "", "usage": "None", "valueType": { - "$id": "233", + "$id": "256", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2120,13 +2356,13 @@ "decorators": [] }, { - "$id": "234", + "$id": "257", "kind": "constant", "name": "PreviewActionsParameterProvider", "namespace": "", "usage": "None", "valueType": { - "$id": "235", + "$id": "258", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2136,13 +2372,13 @@ "decorators": [] }, { - "$id": "236", + "$id": "259", "kind": "constant", "name": "queryNetworkSiblingSetContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "237", + "$id": "260", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2152,13 +2388,13 @@ "decorators": [] }, { - "$id": "238", + "$id": "261", "kind": "constant", "name": "queryNetworkSiblingSetContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "239", + "$id": "262", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2168,13 +2404,13 @@ "decorators": [] }, { - "$id": "240", + "$id": "263", "kind": "constant", "name": "PreviewActionsParameterProvider1", "namespace": "", "usage": "None", "valueType": { - "$id": "241", + "$id": "264", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2184,13 +2420,13 @@ "decorators": [] }, { - "$id": "242", + "$id": "265", "kind": "constant", "name": "queryNetworkSiblingSetContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "243", + "$id": "266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2200,13 +2436,13 @@ "decorators": [] }, { - "$id": "244", + "$id": "267", "kind": "constant", "name": "queryNetworkSiblingSetContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "245", + "$id": "268", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2216,13 +2452,13 @@ "decorators": [] }, { - "$id": "246", + "$id": "269", "kind": "constant", "name": "createOrUpdateContentType29", "namespace": "", "usage": "None", "valueType": { - "$id": "247", + "$id": "270", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2232,13 +2468,13 @@ "decorators": [] }, { - "$id": "248", + "$id": "271", "kind": "constant", "name": "createOrUpdateContentType30", "namespace": "", "usage": "None", "valueType": { - "$id": "249", + "$id": "272", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2248,13 +2484,13 @@ "decorators": [] }, { - "$id": "250", + "$id": "273", "kind": "constant", - "name": "getContentType13", + "name": "getContentType15", "namespace": "", "usage": "None", "valueType": { - "$id": "251", + "$id": "274", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2264,13 +2500,13 @@ "decorators": [] }, { - "$id": "252", + "$id": "275", "kind": "constant", - "name": "getContentType14", + "name": "getContentType16", "namespace": "", "usage": "None", "valueType": { - "$id": "253", + "$id": "276", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2280,13 +2516,13 @@ "decorators": [] }, { - "$id": "254", + "$id": "277", "kind": "constant", - "name": "createContentType", + "name": "createContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "255", + "$id": "278", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2296,13 +2532,13 @@ "decorators": [] }, { - "$id": "256", + "$id": "279", "kind": "constant", - "name": "createContentType1", + "name": "createContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "257", + "$id": "280", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2312,13 +2548,13 @@ "decorators": [] }, { - "$id": "258", + "$id": "281", "kind": "constant", - "name": "createContentType2", + "name": "createContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "259", + "$id": "282", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2328,13 +2564,13 @@ "decorators": [] }, { - "$id": "260", + "$id": "283", "kind": "constant", - "name": "createContentType3", + "name": "createContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "261", + "$id": "284", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2344,13 +2580,13 @@ "decorators": [] }, { - "$id": "262", + "$id": "285", "kind": "constant", "name": "getAvailabilityZoneDetailsContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "263", + "$id": "286", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2360,13 +2596,13 @@ "decorators": [] }, { - "$id": "264", + "$id": "287", "kind": "constant", "name": "getAvailabilityZoneDetailsContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "265", + "$id": "288", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2376,13 +2612,13 @@ "decorators": [] }, { - "$id": "266", + "$id": "289", "kind": "constant", - "name": "getContentType15", + "name": "getContentType17", "namespace": "", "usage": "None", "valueType": { - "$id": "267", + "$id": "290", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2392,13 +2628,13 @@ "decorators": [] }, { - "$id": "268", + "$id": "291", "kind": "constant", "name": "updateContentType23", "namespace": "", "usage": "None", "valueType": { - "$id": "269", + "$id": "292", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2408,13 +2644,13 @@ "decorators": [] }, { - "$id": "270", + "$id": "293", "kind": "constant", "name": "updateContentType24", "namespace": "", "usage": "None", "valueType": { - "$id": "271", + "$id": "294", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2424,13 +2660,13 @@ "decorators": [] }, { - "$id": "272", + "$id": "295", "kind": "constant", "name": "recommendContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "273", + "$id": "296", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2442,7 +2678,7 @@ ], "models": [ { - "$id": "274", + "$id": "297", "kind": "model", "name": "FooPreviewAction", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -2456,13 +2692,13 @@ ], "properties": [ { - "$id": "275", + "$id": "298", "kind": "property", "name": "action", "serializedName": "action", "doc": "The action to be performed.", "type": { - "$id": "276", + "$id": "299", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2482,12 +2718,12 @@ "isHttpMetadata": false }, { - "$id": "277", + "$id": "300", "kind": "property", "name": "result", "serializedName": "result", "type": { - "$id": "278", + "$id": "301", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2509,7 +2745,7 @@ ] }, { - "$id": "279", + "$id": "302", "kind": "model", "name": "ErrorResponse", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -2525,13 +2761,13 @@ ], "properties": [ { - "$id": "280", + "$id": "303", "kind": "property", "name": "error", "serializedName": "error", "doc": "The error object.", "type": { - "$id": "281", + "$id": "304", "kind": "model", "name": "ErrorDetail", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -2546,13 +2782,13 @@ ], "properties": [ { - "$id": "282", + "$id": "305", "kind": "property", "name": "code", "serializedName": "code", "doc": "The error code.", "type": { - "$id": "283", + "$id": "306", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2572,13 +2808,13 @@ "isHttpMetadata": false }, { - "$id": "284", + "$id": "307", "kind": "property", "name": "message", "serializedName": "message", "doc": "The error message.", "type": { - "$id": "285", + "$id": "308", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2598,13 +2834,13 @@ "isHttpMetadata": false }, { - "$id": "286", + "$id": "309", "kind": "property", "name": "target", "serializedName": "target", "doc": "The error target.", "type": { - "$id": "287", + "$id": "310", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2624,17 +2860,17 @@ "isHttpMetadata": false }, { - "$id": "288", + "$id": "311", "kind": "property", "name": "details", "serializedName": "details", "doc": "The error details.", "type": { - "$id": "289", + "$id": "312", "kind": "array", "name": "ArrayErrorDetail", "valueType": { - "$ref": "281" + "$ref": "304" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2653,17 +2889,17 @@ "isHttpMetadata": false }, { - "$id": "290", + "$id": "313", "kind": "property", "name": "additionalInfo", "serializedName": "additionalInfo", "doc": "The error additional info.", "type": { - "$id": "291", + "$id": "314", "kind": "array", "name": "ArrayErrorAdditionalInfo", "valueType": { - "$id": "292", + "$id": "315", "kind": "model", "name": "ErrorAdditionalInfo", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -2678,13 +2914,13 @@ ], "properties": [ { - "$id": "293", + "$id": "316", "kind": "property", "name": "type", "serializedName": "type", "doc": "The additional info type.", "type": { - "$id": "294", + "$id": "317", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2704,13 +2940,13 @@ "isHttpMetadata": false }, { - "$id": "295", + "$id": "318", "kind": "property", "name": "info", "serializedName": "info", "doc": "The additional info.", "type": { - "$id": "296", + "$id": "319", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2765,13 +3001,13 @@ ] }, { - "$ref": "281" + "$ref": "304" }, { - "$ref": "292" + "$ref": "315" }, { - "$id": "297", + "$id": "320", "kind": "model", "name": "OperationListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -2786,17 +3022,17 @@ ], "properties": [ { - "$id": "298", + "$id": "321", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Operation items on this page", "type": { - "$id": "299", + "$id": "322", "kind": "array", "name": "ArrayOperation", "valueType": { - "$id": "300", + "$id": "323", "kind": "model", "name": "Operation", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -2812,13 +3048,13 @@ ], "properties": [ { - "$id": "301", + "$id": "324", "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": "302", + "$id": "325", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2838,13 +3074,13 @@ "isHttpMetadata": false }, { - "$id": "303", + "$id": "326", "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": "304", + "$id": "327", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -2864,13 +3100,13 @@ "isHttpMetadata": false }, { - "$id": "305", + "$id": "328", "kind": "property", "name": "display", "serializedName": "display", "doc": "Localized display information for this particular operation.", "type": { - "$id": "306", + "$id": "329", "kind": "model", "name": "OperationDisplay", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -2885,13 +3121,13 @@ ], "properties": [ { - "$id": "307", + "$id": "330", "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": "308", + "$id": "331", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2911,13 +3147,13 @@ "isHttpMetadata": false }, { - "$id": "309", + "$id": "332", "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": "310", + "$id": "333", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2937,13 +3173,13 @@ "isHttpMetadata": false }, { - "$id": "311", + "$id": "334", "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": "312", + "$id": "335", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2963,13 +3199,13 @@ "isHttpMetadata": false }, { - "$id": "313", + "$id": "336", "kind": "property", "name": "description", "serializedName": "description", "doc": "The short, localized friendly description of the operation; suitable for tool tips and detailed views.", "type": { - "$id": "314", + "$id": "337", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3004,7 +3240,7 @@ "isHttpMetadata": false }, { - "$id": "315", + "$id": "338", "kind": "property", "name": "origin", "serializedName": "origin", @@ -3026,7 +3262,7 @@ "isHttpMetadata": false }, { - "$id": "316", + "$id": "339", "kind": "property", "name": "actionType", "serializedName": "actionType", @@ -3066,18 +3302,18 @@ "isHttpMetadata": false }, { - "$id": "317", + "$id": "340", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "318", + "$id": "341", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "319", + "$id": "342", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -3101,13 +3337,13 @@ ] }, { - "$ref": "300" + "$ref": "323" }, { - "$ref": "306" + "$ref": "329" }, { - "$id": "320", + "$id": "343", "kind": "model", "name": "PrivateLinkListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3122,17 +3358,17 @@ ], "properties": [ { - "$id": "321", + "$id": "344", "kind": "property", "name": "value", "serializedName": "value", "doc": "The PrivateLink items on this page", "type": { - "$id": "322", + "$id": "345", "kind": "array", "name": "ArrayPrivateLink", "valueType": { - "$id": "323", + "$id": "346", "kind": "model", "name": "PrivateLink", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3150,7 +3386,7 @@ } ], "baseModel": { - "$id": "324", + "$id": "347", "kind": "model", "name": "ProxyResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3165,7 +3401,7 @@ } ], "baseModel": { - "$id": "325", + "$id": "348", "kind": "model", "name": "Resource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3181,18 +3417,18 @@ ], "properties": [ { - "$id": "326", + "$id": "349", "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": "327", + "$id": "350", "kind": "string", "name": "armResourceIdentifier", "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", "baseType": { - "$id": "328", + "$id": "351", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3214,13 +3450,13 @@ "isHttpMetadata": false }, { - "$id": "329", + "$id": "352", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the resource", "type": { - "$id": "330", + "$id": "353", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3240,18 +3476,18 @@ "isHttpMetadata": false }, { - "$id": "331", + "$id": "354", "kind": "property", "name": "type", "serializedName": "type", "doc": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"", "type": { - "$id": "332", + "$id": "355", "kind": "string", "name": "armResourceType", "crossLanguageDefinitionId": "Azure.Core.armResourceType", "baseType": { - "$id": "333", + "$id": "356", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3273,13 +3509,13 @@ "isHttpMetadata": false }, { - "$id": "334", + "$id": "357", "kind": "property", "name": "systemData", "serializedName": "systemData", "doc": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", "type": { - "$id": "335", + "$id": "358", "kind": "model", "name": "SystemData", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3294,13 +3530,13 @@ ], "properties": [ { - "$id": "336", + "$id": "359", "kind": "property", "name": "createdBy", "serializedName": "createdBy", "doc": "The identity that created the resource.", "type": { - "$id": "337", + "$id": "360", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3320,7 +3556,7 @@ "isHttpMetadata": false }, { - "$id": "338", + "$id": "361", "kind": "property", "name": "createdByType", "serializedName": "createdByType", @@ -3342,18 +3578,18 @@ "isHttpMetadata": false }, { - "$id": "339", + "$id": "362", "kind": "property", "name": "createdAt", "serializedName": "createdAt", "doc": "The timestamp of resource creation (UTC).", "type": { - "$id": "340", + "$id": "363", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "341", + "$id": "364", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3376,13 +3612,13 @@ "isHttpMetadata": false }, { - "$id": "342", + "$id": "365", "kind": "property", "name": "lastModifiedBy", "serializedName": "lastModifiedBy", "doc": "The identity that last modified the resource.", "type": { - "$id": "343", + "$id": "366", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3402,7 +3638,7 @@ "isHttpMetadata": false }, { - "$id": "344", + "$id": "367", "kind": "property", "name": "lastModifiedByType", "serializedName": "lastModifiedByType", @@ -3424,18 +3660,18 @@ "isHttpMetadata": false }, { - "$id": "345", + "$id": "368", "kind": "property", "name": "lastModifiedAt", "serializedName": "lastModifiedAt", "doc": "The timestamp of resource last modification (UTC)", "type": { - "$id": "346", + "$id": "369", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "347", + "$id": "370", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3478,13 +3714,13 @@ }, "properties": [ { - "$id": "348", + "$id": "371", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "349", + "$id": "372", "kind": "model", "name": "PrivateLinkResourceProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3499,13 +3735,13 @@ ], "properties": [ { - "$id": "350", + "$id": "373", "kind": "property", "name": "groupId", "serializedName": "groupId", "doc": "The private link resource group id.", "type": { - "$id": "351", + "$id": "374", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3525,17 +3761,17 @@ "isHttpMetadata": false }, { - "$id": "352", + "$id": "375", "kind": "property", "name": "requiredMembers", "serializedName": "requiredMembers", "doc": "The private link resource required member names.", "type": { - "$id": "353", + "$id": "376", "kind": "array", "name": "Array", "valueType": { - "$id": "354", + "$id": "377", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3558,13 +3794,13 @@ "isHttpMetadata": false }, { - "$id": "355", + "$id": "378", "kind": "property", "name": "requiredZoneNames", "serializedName": "requiredZoneNames", "doc": "The private link resource private link DNS zone name.", "type": { - "$ref": "353" + "$ref": "376" }, "optional": true, "readOnly": false, @@ -3595,13 +3831,13 @@ "isHttpMetadata": false }, { - "$id": "356", + "$id": "379", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the private link associated with the Azure resource.", "type": { - "$id": "357", + "$id": "380", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3621,13 +3857,13 @@ "isHttpMetadata": true }, { - "$id": "358", + "$id": "381", "kind": "property", "name": "identity", "serializedName": "identity", "doc": "The managed service identities assigned to this resource.", "type": { - "$id": "359", + "$id": "382", "kind": "model", "name": "ManagedServiceIdentity", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3642,18 +3878,18 @@ ], "properties": [ { - "$id": "360", + "$id": "383", "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": "361", + "$id": "384", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "362", + "$id": "385", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3675,18 +3911,18 @@ "isHttpMetadata": false }, { - "$id": "363", + "$id": "386", "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": "364", + "$id": "387", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "365", + "$id": "388", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3708,7 +3944,7 @@ "isHttpMetadata": false }, { - "$id": "366", + "$id": "389", "kind": "property", "name": "type", "serializedName": "type", @@ -3730,26 +3966,26 @@ "isHttpMetadata": false }, { - "$id": "367", + "$id": "390", "kind": "property", "name": "userAssignedIdentities", "serializedName": "userAssignedIdentities", "doc": "The identities assigned to this resource by the user.", "type": { - "$id": "368", + "$id": "391", "kind": "dict", "keyType": { - "$id": "369", + "$id": "392", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "370", + "$id": "393", "kind": "nullable", "type": { - "$id": "371", + "$id": "394", "kind": "model", "name": "UserAssignedIdentity", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3764,18 +4000,18 @@ ], "properties": [ { - "$id": "372", + "$id": "395", "kind": "property", "name": "principalId", "serializedName": "principalId", "doc": "The principal ID of the assigned identity.", "type": { - "$id": "373", + "$id": "396", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "374", + "$id": "397", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3797,18 +4033,18 @@ "isHttpMetadata": false }, { - "$id": "375", + "$id": "398", "kind": "property", "name": "clientId", "serializedName": "clientId", "doc": "The client ID of the assigned identity.", "type": { - "$id": "376", + "$id": "399", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "377", + "$id": "400", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3882,18 +4118,18 @@ "isHttpMetadata": false }, { - "$id": "378", + "$id": "401", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "379", + "$id": "402", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "380", + "$id": "403", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -3917,28 +4153,28 @@ ] }, { - "$ref": "323" + "$ref": "346" }, { - "$ref": "349" + "$ref": "372" }, { - "$ref": "359" + "$ref": "382" }, { - "$ref": "371" + "$ref": "394" }, { - "$ref": "324" + "$ref": "347" }, { - "$ref": "325" + "$ref": "348" }, { - "$ref": "335" + "$ref": "358" }, { - "$id": "381", + "$id": "404", "kind": "model", "name": "StartParameterBody", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3952,12 +4188,12 @@ ], "properties": [ { - "$id": "382", + "$id": "405", "kind": "property", "name": "body", "doc": "SAP Application server instance start request body.", "type": { - "$id": "383", + "$id": "406", "kind": "model", "name": "StartRequest", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -3972,13 +4208,13 @@ ], "properties": [ { - "$id": "384", + "$id": "407", "kind": "property", "name": "startVm", "serializedName": "startVm", "doc": "The boolean value indicates whether to start the virtual machines before starting the SAP instances.", "type": { - "$id": "385", + "$id": "408", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -4011,10 +4247,10 @@ ] }, { - "$ref": "383" + "$ref": "406" }, { - "$id": "386", + "$id": "409", "kind": "model", "name": "OperationStatusResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -4029,18 +4265,18 @@ ], "properties": [ { - "$id": "387", + "$id": "410", "kind": "property", "name": "id", "serializedName": "id", "doc": "Fully qualified ID for the async operation.", "type": { - "$id": "388", + "$id": "411", "kind": "string", "name": "armResourceIdentifier", "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", "baseType": { - "$id": "389", + "$id": "412", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4062,13 +4298,13 @@ "isHttpMetadata": false }, { - "$id": "390", + "$id": "413", "kind": "property", "name": "name", "serializedName": "name", "doc": "Name of the async operation.", "type": { - "$id": "391", + "$id": "414", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4088,13 +4324,13 @@ "isHttpMetadata": false }, { - "$id": "392", + "$id": "415", "kind": "property", "name": "status", "serializedName": "status", "doc": "Operation status.", "type": { - "$id": "393", + "$id": "416", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4114,13 +4350,13 @@ "isHttpMetadata": false }, { - "$id": "394", + "$id": "417", "kind": "property", "name": "percentComplete", "serializedName": "percentComplete", "doc": "Percent of the operation that is complete.", "type": { - "$id": "395", + "$id": "418", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -4140,18 +4376,18 @@ "isHttpMetadata": false }, { - "$id": "396", + "$id": "419", "kind": "property", "name": "startTime", "serializedName": "startTime", "doc": "The start time of the operation.", "type": { - "$id": "397", + "$id": "420", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "398", + "$id": "421", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4174,18 +4410,18 @@ "isHttpMetadata": false }, { - "$id": "399", + "$id": "422", "kind": "property", "name": "endTime", "serializedName": "endTime", "doc": "The end time of the operation.", "type": { - "$id": "400", + "$id": "423", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "401", + "$id": "424", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4208,17 +4444,17 @@ "isHttpMetadata": false }, { - "$id": "402", + "$id": "425", "kind": "property", "name": "operations", "serializedName": "operations", "doc": "The operations list.", "type": { - "$id": "403", + "$id": "426", "kind": "array", "name": "ArrayOperationStatusResult", "valueType": { - "$ref": "386" + "$ref": "409" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4237,13 +4473,13 @@ "isHttpMetadata": false }, { - "$id": "404", + "$id": "427", "kind": "property", "name": "error", "serializedName": "error", "doc": "If present, details of the operation error.", "type": { - "$ref": "281" + "$ref": "304" }, "optional": true, "readOnly": false, @@ -4259,18 +4495,18 @@ "isHttpMetadata": false }, { - "$id": "405", + "$id": "428", "kind": "property", "name": "resourceId", "serializedName": "resourceId", "doc": "Fully qualified ID of the resource against which the original async operation was started.", "type": { - "$id": "406", + "$id": "429", "kind": "string", "name": "armResourceIdentifier", "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", "baseType": { - "$id": "407", + "$id": "430", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4294,7 +4530,7 @@ ] }, { - "$id": "408", + "$id": "431", "kind": "model", "name": "ArmOperationStatusResourceProvisioningState", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -4309,7 +4545,7 @@ ], "properties": [ { - "$id": "409", + "$id": "432", "kind": "property", "name": "status", "serializedName": "status", @@ -4331,13 +4567,13 @@ "isHttpMetadata": false }, { - "$id": "410", + "$id": "433", "kind": "property", "name": "id", "serializedName": "id", "doc": "The unique identifier for the operationStatus resource", "type": { - "$id": "411", + "$id": "434", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4357,13 +4593,13 @@ "isHttpMetadata": true }, { - "$id": "412", + "$id": "435", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the operationStatus resource", "type": { - "$id": "413", + "$id": "436", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4383,18 +4619,18 @@ "isHttpMetadata": false }, { - "$id": "414", + "$id": "437", "kind": "property", "name": "startTime", "serializedName": "startTime", "doc": "Operation start time", "type": { - "$id": "415", + "$id": "438", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "416", + "$id": "439", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4417,18 +4653,18 @@ "isHttpMetadata": false }, { - "$id": "417", + "$id": "440", "kind": "property", "name": "endTime", "serializedName": "endTime", "doc": "Operation complete time", "type": { - "$id": "418", + "$id": "441", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "419", + "$id": "442", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4451,13 +4687,13 @@ "isHttpMetadata": false }, { - "$id": "420", + "$id": "443", "kind": "property", "name": "percentComplete", "serializedName": "percentComplete", "doc": "The progress made toward completing the operation", "type": { - "$id": "421", + "$id": "444", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -4477,13 +4713,13 @@ "isHttpMetadata": false }, { - "$id": "422", + "$id": "445", "kind": "property", "name": "error", "serializedName": "error", "doc": "Errors that occurred if the operation ended with Canceled or Failed status", "type": { - "$ref": "281" + "$ref": "304" }, "optional": true, "readOnly": true, @@ -4501,390 +4737,153 @@ ] }, { - "$id": "423", + "$id": "446", "kind": "model", - "name": "Foo", + "name": "PrivateEndpointConnection", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.Foo", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnection", "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", - "doc": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", + "doc": "A private endpoint connection resource", "decorators": [ { "name": "Azure.ResourceManager.@armProviderNamespace", "arguments": {} }, { - "name": "Azure.ResourceManager.Private.@armResourceInternal", + "name": "Azure.ResourceManager.Private.@armResourceWithParameter", + "arguments": { + "type": "privateEndpointConnections", + "nameParameter": "privateEndpointConnectionName" + } + }, + { + "name": "TypeSpec.Rest.@parentResource", "arguments": {} }, { "name": "Azure.ClientGenerator.Core.@resourceSchema", "arguments": { - "resourceIdPattern": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", - "resourceType": "MgmtTypeSpec/foos", + "resourceIdPattern": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "resourceType": "MgmtTypeSpec/storageSyncServices/privateEndpointConnections", "methods": [ { - "$id": "424", - "methodId": "MgmtTypeSpec.Foos.createOrUpdate", - "kind": "Create", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", - "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" - }, - { - "$id": "425", - "methodId": "MgmtTypeSpec.Foos.get", + "$id": "447", + "methodId": "MgmtTypeSpec.PrivateEndpointConnections.get", "kind": "Get", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", - "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" - }, - { - "$id": "426", - "methodId": "MgmtTypeSpec.Foos.delete", - "kind": "Delete", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" - }, - { - "$id": "427", - "methodId": "MgmtTypeSpec.Foos.list", - "kind": "List", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos", - "operationScope": "ResourceGroup" - }, - { - "$id": "428", - "methodId": "MgmtTypeSpec.Foos.listBySubscription", - "kind": "List", - "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/foos", - "operationScope": "Subscription" + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}" }, { - "$id": "429", - "methodId": "MgmtTypeSpec.Foos.fooAction", - "kind": "Action", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/exportDependencies", + "$id": "448", + "methodId": "MgmtTypeSpec.PrivateEndpointConnections.create", + "kind": "Create", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}" } ], "resourceScope": "ResourceGroup", - "resourceName": "Foo" + "parentResourceId": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}", + "resourceName": "PrivateEndpointConnection" } } ], "baseModel": { - "$id": "430", - "kind": "model", - "name": "TrackedResource", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.TrackedResource", - "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", - "doc": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'", - "summary": "Tracked Resource", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "baseModel": { - "$ref": "325" - }, - "properties": [ - { - "$id": "431", - "kind": "property", - "name": "tags", - "serializedName": "tags", - "doc": "Resource tags.", - "type": { - "$id": "432", - "kind": "dict", - "keyType": { - "$id": "433", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "434", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.TrackedResource.tags", - "serializationOptions": { - "json": { - "name": "tags" - } - }, - "isHttpMetadata": false - }, - { - "$id": "435", - "kind": "property", - "name": "location", - "serializedName": "location", - "doc": "The geo-location where the resource lives", - "type": { - "$id": "436", - "kind": "string", - "name": "azureLocation", - "crossLanguageDefinitionId": "Azure.Core.azureLocation", - "baseType": { - "$id": "437", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.TrackedResource.location", - "serializationOptions": { - "json": { - "name": "location" - } - }, - "isHttpMetadata": false - } - ] + "$ref": "348" }, "properties": [ { - "$id": "438", + "$id": "449", "kind": "property", "name": "properties", "serializedName": "properties", - "doc": "The resource-specific properties for this resource.", + "doc": "The private endpoint connection properties", "type": { - "$id": "439", + "$id": "450", "kind": "model", - "name": "FooProperties", + "name": "PrivateEndpointConnectionProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties", "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "doc": "Properties of the private endpoint connection.", "decorators": [ { "name": "Azure.ResourceManager.@armProviderNamespace", "arguments": {} - }, - { - "name": "Azure.ClientGenerator.Core.@useSystemTextJsonConverter", - "arguments": { - "scope": "csharp" - } } ], "properties": [ { - "$id": "440", + "$id": "451", "kind": "property", - "name": "serviceUrl", - "serializedName": "serviceUrl", - "doc": "the service url", + "name": "groupIds", + "serializedName": "groupIds", + "doc": "The group ids for the private endpoint resource.", "type": { - "$id": "441", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] + "$ref": "376" }, "optional": true, - "readOnly": false, + "readOnly": true, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.serviceUrl", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties.groupIds", "serializationOptions": { "json": { - "name": "serviceUrl" + "name": "groupIds" } }, "isHttpMetadata": false }, { - "$id": "442", + "$id": "452", "kind": "property", - "name": "something", - "serializedName": "something", - "doc": "something", + "name": "privateEndpoint", + "serializedName": "privateEndpoint", + "doc": "The private endpoint resource.", "type": { - "$ref": "359" + "$id": "453", + "kind": "model", + "name": "SubResource", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "Azure.ResourceManager.Models.SubResource", + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [] }, - "optional": false, + "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.something", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties.privateEndpoint", "serializationOptions": { "json": { - "name": "something" + "name": "privateEndpoint" } }, "isHttpMetadata": false }, { - "$id": "443", + "$id": "454", "kind": "property", - "name": "boolValue", - "serializedName": "boolValue", - "doc": "boolean value", + "name": "privateLinkServiceConnectionState", + "serializedName": "privateLinkServiceConnectionState", + "doc": "A collection of information about the state of the connection between service consumer and provider.", "type": { - "$id": "444", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.boolValue", - "serializationOptions": { - "json": { - "name": "boolValue" - } - }, - "isHttpMetadata": false - }, - { - "$id": "445", - "kind": "property", - "name": "floatValue", - "serializedName": "floatValue", - "doc": "float value", - "type": { - "$id": "446", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.floatValue", - "serializationOptions": { - "json": { - "name": "floatValue" - } - }, - "isHttpMetadata": false - }, - { - "$id": "447", - "kind": "property", - "name": "doubleValue", - "serializedName": "doubleValue", - "doc": "double value", - "type": { - "$id": "448", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.doubleValue", - "serializationOptions": { - "json": { - "name": "doubleValue" - } - }, - "isHttpMetadata": false - }, - { - "$id": "449", - "kind": "property", - "name": "prop1", - "serializedName": "prop1", - "type": { - "$ref": "353" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.prop1", - "serializationOptions": { - "json": { - "name": "prop1" - } - }, - "isHttpMetadata": false - }, - { - "$id": "450", - "kind": "property", - "name": "prop2", - "serializedName": "prop2", - "type": { - "$id": "451", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "452", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.prop2", - "serializationOptions": { - "json": { - "name": "prop2" - } - }, - "isHttpMetadata": false - }, - { - "$id": "453", - "kind": "property", - "name": "nestedProperty", - "serializedName": "nestedProperty", - "type": { - "$id": "454", + "$id": "455", "kind": "model", - "name": "NestedFooModel", + "name": "PrivateLinkServiceConnectionState", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.NestedFooModel", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState", "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "doc": "A collection of information about the state of the connection between service consumer and provider.", "decorators": [ { "name": "Azure.ResourceManager.@armProviderNamespace", @@ -4893,192 +4892,285 @@ ], "properties": [ { - "$id": "455", + "$id": "456", "kind": "property", - "name": "properties", - "serializedName": "properties", + "name": "status", + "serializedName": "status", + "doc": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.", "type": { - "$ref": "439" + "$ref": "26" }, - "optional": false, + "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.NestedFooModel.properties", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState.status", "serializationOptions": { "json": { - "name": "properties" + "name": "status" } }, "isHttpMetadata": false - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.nestedProperty", - "serializationOptions": { - "json": { - "name": "nestedProperty" - } - }, - "isHttpMetadata": false - }, - { - "$id": "456", - "kind": "property", - "name": "optionalProperty", - "serializedName": "optionalProperty", - "type": { - "$id": "457", - "kind": "model", - "name": "SafeFlattenModel", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.SafeFlattenModel", - "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", - "decorators": [ + }, { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [ + "$id": "457", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The reason for approval/rejection of the connection.", + "type": { + "$id": "458", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, { - "$id": "458", + "$id": "459", "kind": "property", - "name": "flattenedProperty", - "serializedName": "flattenedProperty", + "name": "actionsRequired", + "serializedName": "actionsRequired", + "doc": "A message indicating if changes on the service provider require any updates on the consumer.", "type": { - "$id": "459", + "$id": "460", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "optional": false, + "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.SafeFlattenModel.flattenedProperty", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState.actionsRequired", "serializationOptions": { "json": { - "name": "flattenedProperty" + "name": "actionsRequired" } }, "isHttpMetadata": false } ] }, - "optional": true, + "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.optionalProperty", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties.privateLinkServiceConnectionState", "serializationOptions": { "json": { - "name": "optionalProperty" + "name": "privateLinkServiceConnectionState" } }, "isHttpMetadata": false }, { - "$id": "460", + "$id": "461", "kind": "property", - "name": "etag", - "serializedName": "etag", - "doc": "ETag property for testing etag parameter name generation", + "name": "provisioningState", + "serializedName": "provisioningState", + "doc": "The provisioning state of the private endpoint connection resource.", "type": { - "$id": "461", - "kind": "string", - "name": "eTag", - "crossLanguageDefinitionId": "Azure.Core.eTag", - "baseType": { - "$id": "462", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] + "$ref": "31" }, "optional": true, - "readOnly": false, + "readOnly": true, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.etag", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties.provisioningState", "serializationOptions": { "json": { - "name": "etag" + "name": "provisioningState" } }, "isHttpMetadata": false } ] }, - "optional": false, + "optional": true, "readOnly": false, "discriminator": false, - "flatten": true, - "decorators": [ - { - "name": "Azure.ResourceManager.@flattenProperty", - "arguments": {} - } - ], - "crossLanguageDefinitionId": "MgmtTypeSpec.Foo.properties", + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnection.properties", "serializationOptions": { "json": { "name": "properties" } }, "isHttpMetadata": false + } + ] + }, + { + "$ref": "450" + }, + { + "$ref": "453" + }, + { + "$ref": "455" + }, + { + "$id": "462", + "kind": "model", + "name": "StorageSyncService", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncService", + "usage": "Output,Json", + "doc": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} }, { - "$id": "463", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the Foo", - "type": { - "$id": "464", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.Foo.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": true + "name": "Azure.ResourceManager.Private.@armResourceInternal", + "arguments": {} }, { - "$id": "465", - "kind": "property", - "name": "extendedLocation", - "serializedName": "extendedLocation", - "type": { - "$id": "466", - "kind": "model", - "name": "ExtendedLocation", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ExtendedLocation", - "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", - "doc": "The complex type of the extended location.", + "name": "Azure.ClientGenerator.Core.@resourceSchema", + "arguments": { + "resourceIdPattern": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}", + "resourceType": "MgmtTypeSpec/storageSyncServices", + "methods": [ + { + "$id": "463", + "methodId": "MgmtTypeSpec.StorageSyncServices.get", + "kind": "Get", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}" + } + ], + "resourceScope": "ResourceGroup", + "resourceName": "StorageSyncService" + } + } + ], + "baseModel": { + "$id": "464", + "kind": "model", + "name": "TrackedResource", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.TrackedResource", + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "doc": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'", + "summary": "Tracked Resource", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "baseModel": { + "$ref": "348" + }, + "properties": [ + { + "$id": "465", + "kind": "property", + "name": "tags", + "serializedName": "tags", + "doc": "Resource tags.", + "type": { + "$id": "466", + "kind": "dict", + "keyType": { + "$id": "467", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "468", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.TrackedResource.tags", + "serializationOptions": { + "json": { + "name": "tags" + } + }, + "isHttpMetadata": false + }, + { + "$id": "469", + "kind": "property", + "name": "location", + "serializedName": "location", + "doc": "The geo-location where the resource lives", + "type": { + "$id": "470", + "kind": "string", + "name": "azureLocation", + "crossLanguageDefinitionId": "Azure.Core.azureLocation", + "baseType": { + "$id": "471", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.TrackedResource.location", + "serializationOptions": { + "json": { + "name": "location" + } + }, + "isHttpMetadata": false + } + ] + }, + "properties": [ + { + "$id": "472", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "The resource-specific properties for this resource.", + "type": { + "$id": "473", + "kind": "model", + "name": "StorageSyncServiceProperties", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServiceProperties", + "usage": "Output,Json", "decorators": [ { "name": "Azure.ResourceManager.@armProviderNamespace", @@ -5087,13 +5179,13 @@ ], "properties": [ { - "$id": "467", + "$id": "474", "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the extended location.", + "name": "storageSyncServiceLocation", + "serializedName": "storageSyncServiceLocation", + "doc": "The storage sync service location.", "type": { - "$id": "468", + "$id": "475", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5104,32 +5196,10 @@ "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ExtendedLocation.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "469", - "kind": "property", - "name": "type", - "serializedName": "type", - "doc": "The type of the extended location.", - "type": { - "$ref": "26" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ExtendedLocation.type", + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServiceProperties.storageSyncServiceLocation", "serializationOptions": { "json": { - "name": "type" + "name": "storageSyncServiceLocation" } }, "isHttpMetadata": false @@ -5141,142 +5211,339 @@ "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.Foo.extendedLocation", + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncService.properties", "serializationOptions": { "json": { - "name": "extendedLocation" + "name": "properties" } }, "isHttpMetadata": false }, { - "$id": "470", + "$id": "476", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the StorageSyncService", + "type": { + "$id": "477", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncService.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": true + }, + { + "$id": "478", "kind": "property", "name": "identity", "serializedName": "identity", "doc": "The managed service identities assigned to this resource.", "type": { - "$id": "471", - "kind": "model", - "name": "ManagedServiceIdentityV4", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ManagedServiceIdentityV4", - "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", - "doc": "Managed service identity (system assigned and/or user assigned identities)", - "decorators": [ + "$ref": "382" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncService.identity", + "serializationOptions": { + "json": { + "name": "identity" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "473" + }, + { + "$ref": "464" + }, + { + "$id": "479", + "kind": "model", + "name": "Foo", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.Foo", + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "doc": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + }, + { + "name": "Azure.ResourceManager.Private.@armResourceInternal", + "arguments": {} + }, + { + "name": "Azure.ClientGenerator.Core.@resourceSchema", + "arguments": { + "resourceIdPattern": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", + "resourceType": "MgmtTypeSpec/foos", + "methods": [ { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [ + "$id": "480", + "methodId": "MgmtTypeSpec.Foos.createOrUpdate", + "kind": "Create", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" + }, { - "$id": "472", - "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": "473", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "474", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ManagedServiceIdentityV4.principalId", - "serializationOptions": { - "json": { - "name": "principalId" - } - }, - "isHttpMetadata": false + "$id": "481", + "methodId": "MgmtTypeSpec.Foos.get", + "kind": "Get", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "475", - "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": "476", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "477", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "$id": "482", + "methodId": "MgmtTypeSpec.Foos.delete", + "kind": "Delete", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" + }, + { + "$id": "483", + "methodId": "MgmtTypeSpec.Foos.list", + "kind": "List", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos", + "operationScope": "ResourceGroup" + }, + { + "$id": "484", + "methodId": "MgmtTypeSpec.Foos.listBySubscription", + "kind": "List", + "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/foos", + "operationScope": "Subscription" + }, + { + "$id": "485", + "methodId": "MgmtTypeSpec.Foos.fooAction", + "kind": "Action", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/exportDependencies", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" + } + ], + "resourceScope": "ResourceGroup", + "resourceName": "Foo" + } + } + ], + "baseModel": { + "$ref": "464" + }, + "properties": [ + { + "$id": "486", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "The resource-specific properties for this resource.", + "type": { + "$id": "487", + "kind": "model", + "name": "FooProperties", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties", + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + }, + { + "name": "Azure.ClientGenerator.Core.@useSystemTextJsonConverter", + "arguments": { + "scope": "csharp" + } + } + ], + "properties": [ + { + "$id": "488", + "kind": "property", + "name": "serviceUrl", + "serializedName": "serviceUrl", + "doc": "the service url", + "type": { + "$id": "489", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", "decorators": [] }, "optional": true, - "readOnly": true, + "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ManagedServiceIdentityV4.tenantId", + "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.serviceUrl", "serializationOptions": { "json": { - "name": "tenantId" + "name": "serviceUrl" } }, "isHttpMetadata": false }, { - "$id": "478", + "$id": "490", "kind": "property", - "name": "type", - "serializedName": "type", - "doc": "The type of managed identity assigned to this resource.", + "name": "something", + "serializedName": "something", + "doc": "something", "type": { - "$ref": "30" + "$ref": "382" }, "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ManagedServiceIdentityV4.type", + "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.something", "serializationOptions": { "json": { - "name": "type" + "name": "something" } }, "isHttpMetadata": false }, { - "$id": "479", + "$id": "491", "kind": "property", - "name": "userAssignedIdentities", - "serializedName": "userAssignedIdentities", - "doc": "The identities assigned to this resource by the user.", + "name": "boolValue", + "serializedName": "boolValue", + "doc": "boolean value", "type": { - "$id": "480", - "kind": "dict", - "keyType": { - "$id": "481", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "$id": "492", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.boolValue", + "serializationOptions": { + "json": { + "name": "boolValue" + } + }, + "isHttpMetadata": false + }, + { + "$id": "493", + "kind": "property", + "name": "floatValue", + "serializedName": "floatValue", + "doc": "float value", + "type": { + "$id": "494", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.floatValue", + "serializationOptions": { + "json": { + "name": "floatValue" + } + }, + "isHttpMetadata": false + }, + { + "$id": "495", + "kind": "property", + "name": "doubleValue", + "serializedName": "doubleValue", + "doc": "double value", + "type": { + "$id": "496", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.doubleValue", + "serializationOptions": { + "json": { + "name": "doubleValue" + } + }, + "isHttpMetadata": false + }, + { + "$id": "497", + "kind": "property", + "name": "prop1", + "serializedName": "prop1", + "type": { + "$ref": "376" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.prop1", + "serializationOptions": { + "json": { + "name": "prop1" + } + }, + "isHttpMetadata": false + }, + { + "$id": "498", + "kind": "property", + "name": "prop2", + "serializedName": "prop2", + "type": { + "$id": "499", + "kind": "array", + "name": "Array1", "valueType": { - "$ref": "371" + "$id": "500", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] }, + "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] }, "optional": true, @@ -5284,315 +5551,304 @@ "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ManagedServiceIdentityV4.userAssignedIdentities", + "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.prop2", "serializationOptions": { "json": { - "name": "userAssignedIdentities" + "name": "prop2" } }, "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.Foo.identity", - "serializationOptions": { - "json": { - "name": "identity" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "439" - }, - { - "$ref": "454" - }, - { - "$ref": "457" - }, - { - "$ref": "466" - }, - { - "$ref": "471" - }, - { - "$ref": "430" - }, - { - "$id": "482", - "kind": "model", - "name": "FooListResult", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult", - "usage": "Output,Json", - "doc": "The response of a Foo list operation.", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [ - { - "$id": "483", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "The Foo items on this page", - "type": { - "$id": "484", - "kind": "array", - "name": "ArrayFoo", - "valueType": { - "$ref": "423" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + }, + { + "$id": "501", + "kind": "property", + "name": "nestedProperty", + "serializedName": "nestedProperty", + "type": { + "$id": "502", + "kind": "model", + "name": "NestedFooModel", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.NestedFooModel", + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "503", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "type": { + "$ref": "487" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.NestedFooModel.properties", + "serializationOptions": { + "json": { + "name": "properties" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.nestedProperty", + "serializationOptions": { + "json": { + "name": "nestedProperty" + } + }, + "isHttpMetadata": false + }, + { + "$id": "504", + "kind": "property", + "name": "optionalProperty", + "serializedName": "optionalProperty", + "type": { + "$id": "505", + "kind": "model", + "name": "SafeFlattenModel", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.SafeFlattenModel", + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "506", + "kind": "property", + "name": "flattenedProperty", + "serializedName": "flattenedProperty", + "type": { + "$id": "507", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.SafeFlattenModel.flattenedProperty", + "serializationOptions": { + "json": { + "name": "flattenedProperty" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.optionalProperty", + "serializationOptions": { + "json": { + "name": "optionalProperty" + } + }, + "isHttpMetadata": false + }, + { + "$id": "508", + "kind": "property", + "name": "etag", + "serializedName": "etag", + "doc": "ETag property for testing etag parameter name generation", + "type": { + "$id": "509", + "kind": "string", + "name": "eTag", + "crossLanguageDefinitionId": "Azure.Core.eTag", + "baseType": { + "$id": "510", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.etag", + "serializationOptions": { + "json": { + "name": "etag" + } + }, + "isHttpMetadata": false + } + ] }, "optional": false, "readOnly": false, "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.value", - "serializationOptions": { - "json": { - "name": "value" - } - }, - "isHttpMetadata": false - }, - { - "$id": "485", - "kind": "property", - "name": "nextLink", - "serializedName": "nextLink", - "doc": "The link to the next page of items", - "type": { - "$id": "486", - "kind": "url", - "name": "ResourceLocation", - "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", - "baseType": { - "$id": "487", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.nextLink", - "serializationOptions": { - "json": { - "name": "nextLink" + "flatten": true, + "decorators": [ + { + "name": "Azure.ResourceManager.@flattenProperty", + "arguments": {} } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "488", - "kind": "model", - "name": "FooActionRequest", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.FooActionRequest", - "usage": "Input,Json", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [ - { - "$id": "489", - "kind": "property", - "name": "id", - "serializedName": "id", - "type": { - "$id": "490", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooActionRequest.id", + ], + "crossLanguageDefinitionId": "MgmtTypeSpec.Foo.properties", "serializationOptions": { "json": { - "name": "id" + "name": "properties" } }, "isHttpMetadata": false - } - ] - }, - { - "$id": "491", - "kind": "model", - "name": "FooActionResult", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.FooActionResult", - "usage": "Output,Json,LroInitial,LroFinalEnvelope", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [ + }, { - "$id": "492", + "$id": "511", "kind": "property", - "name": "msg", - "serializedName": "msg", + "name": "name", + "serializedName": "name", + "doc": "The name of the Foo", "type": { - "$id": "493", + "$id": "512", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "optional": false, - "readOnly": false, + "readOnly": true, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooActionResult.msg", + "crossLanguageDefinitionId": "MgmtTypeSpec.Foo.name", "serializationOptions": { "json": { - "name": "msg" + "name": "name" } }, - "isHttpMetadata": false + "isHttpMetadata": true }, { - "$id": "494", + "$id": "513", "kind": "property", - "name": "error", - "serializedName": "error", + "name": "extendedLocation", + "serializedName": "extendedLocation", "type": { - "$ref": "281" + "$id": "514", + "kind": "model", + "name": "ExtendedLocation", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ExtendedLocation", + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "doc": "The complex type of the extended location.", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "515", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the extended location.", + "type": { + "$id": "516", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ExtendedLocation.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "517", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the extended location.", + "type": { + "$ref": "37" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ExtendedLocation.type", + "serializationOptions": { + "json": { + "name": "type" + } + }, + "isHttpMetadata": false + } + ] }, "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooActionResult.error", + "crossLanguageDefinitionId": "MgmtTypeSpec.Foo.extendedLocation", "serializationOptions": { "json": { - "name": "error" + "name": "extendedLocation" } }, "isHttpMetadata": false - } - ] - }, - { - "$id": "495", - "kind": "model", - "name": "FooSettings", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettings", - "usage": "Input,Output,Json", - "doc": "Concrete proxy resource types can be created by aliasing this type using a specific property type.", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - }, - { - "name": "Azure.ResourceManager.Private.@armResourceInternal", - "arguments": {} - }, - { - "name": "Azure.ResourceManager.@singleton", - "arguments": {} }, { - "name": "Azure.ClientGenerator.Core.@resourceSchema", - "arguments": { - "resourceIdPattern": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", - "resourceType": "MgmtTypeSpec/FooSettings", - "methods": [ - { - "$id": "496", - "methodId": "MgmtTypeSpec.FooSettingsOperations.get", - "kind": "Get", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", - "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" - }, - { - "$id": "497", - "methodId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate", - "kind": "Create", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", - "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" - }, - { - "$id": "498", - "methodId": "MgmtTypeSpec.FooSettingsOperations.update", - "kind": "Update", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", - "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" - }, - { - "$id": "499", - "methodId": "MgmtTypeSpec.FooSettingsOperations.delete", - "kind": "Delete", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", - "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" - } - ], - "resourceScope": "ResourceGroup", - "singletonResourceName": "default", - "resourceName": "FooSettings" - } - } - ], - "baseModel": { - "$ref": "324" - }, - "properties": [ - { - "$id": "500", + "$id": "518", "kind": "property", - "name": "properties", - "serializedName": "properties", - "doc": "The resource-specific properties for this resource.", + "name": "identity", + "serializedName": "identity", + "doc": "The managed service identities assigned to this resource.", "type": { - "$id": "501", + "$id": "519", "kind": "model", - "name": "FooSettingsProperties", + "name": "ManagedServiceIdentityV4", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsProperties", - "usage": "Input,Output,Json", - "doc": "Base resource properties that can be extended for arm resources.", + "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ManagedServiceIdentityV4", + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "doc": "Managed service identity (system assigned and/or user assigned identities)", "decorators": [ { "name": "Azure.ResourceManager.@armProviderNamespace", @@ -5601,542 +5857,112 @@ ], "properties": [ { - "$id": "502", + "$id": "520", "kind": "property", - "name": "marketplace", - "serializedName": "marketplace", - "doc": "Marketplace details of the resource.", + "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": "503", - "kind": "model", - "name": "MarketplaceDetails", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "LiftrBase.MarketplaceDetails", - "usage": "Input,Output,Json", - "doc": "Marketplace details for an organization", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [ - { - "$id": "504", - "kind": "property", - "name": "subscriptionId", - "serializedName": "subscriptionId", - "doc": "Azure subscription id for the the marketplace offer is purchased from", - "type": { - "$id": "505", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.MarketplaceDetails.subscriptionId", - "serializationOptions": { - "json": { - "name": "subscriptionId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "506", - "kind": "property", - "name": "subscriptionStatus", - "serializedName": "subscriptionStatus", - "doc": "Marketplace subscription status", - "type": { - "$ref": "36" - }, - "optional": true, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.MarketplaceDetails.subscriptionStatus", - "serializationOptions": { - "json": { - "name": "subscriptionStatus" - } - }, - "isHttpMetadata": false - }, - { - "$id": "507", - "kind": "property", - "name": "offerDetails", - "serializedName": "offerDetails", - "doc": "Offer details for the marketplace that is selected by the user", - "type": { - "$id": "508", - "kind": "model", - "name": "OfferDetails", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "LiftrBase.OfferDetails", - "usage": "Input,Output,Json", - "doc": "Offer details for the marketplace that is selected by the user", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [ - { - "$id": "509", - "kind": "property", - "name": "publisherId", - "serializedName": "publisherId", - "doc": "Publisher Id for the marketplace offer", - "type": { - "$id": "510", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.OfferDetails.publisherId", - "serializationOptions": { - "json": { - "name": "publisherId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "511", - "kind": "property", - "name": "offerId", - "serializedName": "offerId", - "doc": "Offer Id for the marketplace offer", - "type": { - "$id": "512", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.OfferDetails.offerId", - "serializationOptions": { - "json": { - "name": "offerId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "513", - "kind": "property", - "name": "planId", - "serializedName": "planId", - "doc": "Plan Id for the marketplace offer", - "type": { - "$id": "514", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.OfferDetails.planId", - "serializationOptions": { - "json": { - "name": "planId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "515", - "kind": "property", - "name": "planName", - "serializedName": "planName", - "doc": "Plan Name for the marketplace offer", - "type": { - "$id": "516", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.OfferDetails.planName", - "serializationOptions": { - "json": { - "name": "planName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "517", - "kind": "property", - "name": "termUnit", - "serializedName": "termUnit", - "doc": "Plan Display Name for the marketplace offer", - "type": { - "$id": "518", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.OfferDetails.termUnit", - "serializationOptions": { - "json": { - "name": "termUnit" - } - }, - "isHttpMetadata": false - }, - { - "$id": "519", - "kind": "property", - "name": "termId", - "serializedName": "termId", - "doc": "Plan Display Name for the marketplace offer", - "type": { - "$id": "520", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.OfferDetails.termId", - "serializationOptions": { - "json": { - "name": "termId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "521", - "kind": "property", - "name": "renewalMode", - "serializedName": "renewalMode", - "doc": "Subscription renewal mode", - "type": { - "$ref": "42" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.OfferDetails.renewalMode", - "serializationOptions": { - "json": { - "name": "renewalMode" - } - }, - "isHttpMetadata": false - }, - { - "$id": "522", - "kind": "property", - "name": "endDate", - "serializedName": "endDate", - "doc": "Current subscription end date and time", - "type": { - "$id": "523", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "524", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "optional": true, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.OfferDetails.endDate", - "serializationOptions": { - "json": { - "name": "endDate" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.MarketplaceDetails.offerDetails", - "serializationOptions": { - "json": { - "name": "offerDetails" - } - }, - "isHttpMetadata": false - } - ] + "$id": "521", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "522", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ManagedServiceIdentityV4.principalId", + "serializationOptions": { + "json": { + "name": "principalId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "523", + "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", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "525", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ManagedServiceIdentityV4.tenantId", + "serializationOptions": { + "json": { + "name": "tenantId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "526", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of managed identity assigned to this resource.", + "type": { + "$ref": "41" }, "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsProperties.marketplace", + "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ManagedServiceIdentityV4.type", "serializationOptions": { "json": { - "name": "marketplace" + "name": "type" } }, "isHttpMetadata": false }, { - "$id": "525", + "$id": "527", "kind": "property", - "name": "user", - "serializedName": "user", - "doc": "Details of the user.", + "name": "userAssignedIdentities", + "serializedName": "userAssignedIdentities", + "doc": "The identities assigned to this resource by the user.", "type": { - "$id": "526", - "kind": "model", - "name": "UserDetails", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "LiftrBase.UserDetails", - "usage": "Input,Output,Json", - "doc": "User details for an organization", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [ - { - "$id": "527", - "kind": "property", - "name": "firstName", - "serializedName": "firstName", - "doc": "First name of the user", - "type": { - "$id": "528", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.UserDetails.firstName", - "serializationOptions": { - "json": { - "name": "firstName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "529", - "kind": "property", - "name": "lastName", - "serializedName": "lastName", - "doc": "Last name of the user", - "type": { - "$id": "530", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.UserDetails.lastName", - "serializationOptions": { - "json": { - "name": "lastName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "531", - "kind": "property", - "name": "emailAddress", - "serializedName": "emailAddress", - "doc": "Email address of the user", - "type": { - "$id": "532", - "kind": "string", - "name": "email", - "crossLanguageDefinitionId": "LiftrBase.email", - "baseType": { - "$id": "533", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.UserDetails.emailAddress", - "serializationOptions": { - "json": { - "name": "emailAddress" - } - }, - "isHttpMetadata": false - }, - { - "$id": "534", - "kind": "property", - "name": "upn", - "serializedName": "upn", - "doc": "User's principal name", - "type": { - "$id": "535", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.UserDetails.upn", - "serializationOptions": { - "json": { - "name": "upn" - } - }, - "isHttpMetadata": false - }, - { - "$id": "536", - "kind": "property", - "name": "phoneNumber", - "serializedName": "phoneNumber", - "doc": "User's phone number", - "type": { - "$id": "537", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "LiftrBase.UserDetails.phoneNumber", - "serializationOptions": { - "json": { - "name": "phoneNumber" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsProperties.user", - "serializationOptions": { - "json": { - "name": "user" - } - }, - "isHttpMetadata": false - }, - { - "$id": "538", - "kind": "property", - "name": "provisioningState", - "serializedName": "provisioningState", - "doc": "Provisioning state of the resource.", - "type": { - "$ref": "21" - }, - "optional": true, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsProperties.provisioningState", - "serializationOptions": { - "json": { - "name": "provisioningState" - } - }, - "isHttpMetadata": false - }, - { - "$id": "539", - "kind": "property", - "name": "accessControlEnabled", - "serializedName": "accessControlEnabled", - "type": { - "$id": "540", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "$id": "528", + "kind": "dict", + "keyType": { + "$id": "529", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "394" + }, "decorators": [] }, "optional": true, @@ -6144,65 +5970,10 @@ "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsProperties.accessControlEnabled", - "serializationOptions": { - "json": { - "name": "accessControlEnabled" - } - }, - "isHttpMetadata": false - }, - { - "$id": "541", - "kind": "property", - "name": "metaData", - "serializedName": "metaData", - "type": { - "$id": "542", - "kind": "model", - "name": "FooSettingsPropertiesMetaData", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsPropertiesMetaData", - "usage": "Output,Json", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [ - { - "$id": "543", - "kind": "property", - "name": "metaDatas", - "serializedName": "metaDatas", - "type": { - "$ref": "353" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsPropertiesMetaData.metaDatas", - "serializationOptions": { - "json": { - "name": "metaDatas" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsProperties.metaData", + "crossLanguageDefinitionId": "Azure.ResourceManager.Legacy.ManagedServiceIdentityV4.userAssignedIdentities", "serializationOptions": { "json": { - "name": "metaData" + "name": "userAssignedIdentities" } }, "isHttpMetadata": false @@ -6214,65 +5985,158 @@ "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettings.properties", + "crossLanguageDefinitionId": "MgmtTypeSpec.Foo.identity", "serializationOptions": { "json": { - "name": "properties" + "name": "identity" } }, "isHttpMetadata": false - }, - { - "$id": "544", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The default Foo settings.", + } + ] + }, + { + "$ref": "487" + }, + { + "$ref": "502" + }, + { + "$ref": "505" + }, + { + "$ref": "514" + }, + { + "$ref": "519" + }, + { + "$id": "530", + "kind": "model", + "name": "FooListResult", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult", + "usage": "Output,Json", + "doc": "The response of a Foo list operation.", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "531", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The Foo items on this page", + "type": { + "$id": "532", + "kind": "array", + "name": "ArrayFoo", + "valueType": { + "$ref": "479" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false + }, + { + "$id": "533", + "kind": "property", + "name": "nextLink", + "serializedName": "nextLink", + "doc": "The link to the next page of items", + "type": { + "$id": "534", + "kind": "url", + "name": "ResourceLocation", + "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", + "baseType": { + "$id": "535", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.nextLink", + "serializationOptions": { + "json": { + "name": "nextLink" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "536", + "kind": "model", + "name": "FooActionRequest", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.FooActionRequest", + "usage": "Input,Json", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "537", + "kind": "property", + "name": "id", + "serializedName": "id", "type": { - "$id": "545", + "$id": "538", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "optional": false, - "readOnly": true, + "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettings.name", + "crossLanguageDefinitionId": "MgmtTypeSpec.FooActionRequest.id", "serializationOptions": { "json": { - "name": "name" + "name": "id" } }, - "isHttpMetadata": true + "isHttpMetadata": false } ] }, { - "$ref": "501" - }, - { - "$ref": "503" - }, - { - "$ref": "508" - }, - { - "$ref": "526" - }, - { - "$ref": "542" - }, - { - "$id": "546", + "$id": "539", "kind": "model", - "name": "FooSettingsUpdate", + "name": "FooActionResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModel", - "usage": "Input,Json", - "doc": "The type used for update operations of the FooSettings.", + "crossLanguageDefinitionId": "MgmtTypeSpec.FooActionResult", + "usage": "Output,Json,LroInitial,LroFinalEnvelope", "decorators": [ { "name": "Azure.ResourceManager.@armProviderNamespace", @@ -6281,106 +6145,47 @@ ], "properties": [ { - "$id": "547", + "$id": "540", "kind": "property", - "name": "properties", - "serializedName": "properties", - "doc": "The resource-specific properties for this resource.", + "name": "msg", + "serializedName": "msg", "type": { - "$id": "548", - "kind": "model", - "name": "FooSettingsUpdateProperties", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties", - "usage": "Input,Json", - "doc": "The updatable properties of the FooSettings.", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [ - { - "$id": "549", - "kind": "property", - "name": "marketplace", - "serializedName": "marketplace", - "doc": "Marketplace details of the resource.", - "type": { - "$ref": "503" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties.marketplace", - "serializationOptions": { - "json": { - "name": "marketplace" - } - }, - "isHttpMetadata": false - }, - { - "$id": "550", - "kind": "property", - "name": "user", - "serializedName": "user", - "doc": "Details of the user.", - "type": { - "$ref": "526" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties.user", - "serializationOptions": { - "json": { - "name": "user" - } - }, - "isHttpMetadata": false - }, - { - "$id": "551", - "kind": "property", - "name": "accessControlEnabled", - "serializedName": "accessControlEnabled", - "type": { - "$id": "552", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties.accessControlEnabled", - "serializationOptions": { - "json": { - "name": "accessControlEnabled" - } - }, - "isHttpMetadata": false - } - ] + "$id": "541", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooActionResult.msg", + "serializationOptions": { + "json": { + "name": "msg" + } + }, + "isHttpMetadata": false + }, + { + "$id": "542", + "kind": "property", + "name": "error", + "serializedName": "error", + "type": { + "$ref": "304" }, "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModel.properties", + "crossLanguageDefinitionId": "MgmtTypeSpec.FooActionResult.error", "serializationOptions": { "json": { - "name": "properties" + "name": "error" } }, "isHttpMetadata": false @@ -6388,16 +6193,13 @@ ] }, { - "$ref": "548" - }, - { - "$id": "553", + "$id": "543", "kind": "model", - "name": "Bar", + "name": "FooSettings", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.Bar", - "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", - "doc": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", + "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettings", + "usage": "Input,Output,Json", + "doc": "Concrete proxy resource types can be created by aliasing this type using a specific property type.", "decorators": [ { "name": "Azure.ResourceManager.@armProviderNamespace", @@ -6408,87 +6210,72 @@ "arguments": {} }, { - "name": "TypeSpec.Rest.@parentResource", + "name": "Azure.ResourceManager.@singleton", "arguments": {} }, { "name": "Azure.ClientGenerator.Core.@resourceSchema", "arguments": { - "resourceIdPattern": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", - "resourceType": "MgmtTypeSpec/foos/bars", + "resourceIdPattern": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", + "resourceType": "MgmtTypeSpec/FooSettings", "methods": [ { - "$id": "554", - "methodId": "MgmtTypeSpec.Bars.createOrUpdate", - "kind": "Create", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", - "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" - }, - { - "$id": "555", - "methodId": "MgmtTypeSpec.Bars.delete", - "kind": "Delete", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", - "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" - }, - { - "$id": "556", - "methodId": "MgmtTypeSpec.Bars.list", - "kind": "List", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars", + "$id": "544", + "methodId": "MgmtTypeSpec.FooSettingsOperations.get", + "kind": "Get", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" }, { - "$id": "557", - "methodId": "MgmtTypeSpec.Bars.get", - "kind": "Get", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", + "$id": "545", + "methodId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate", + "kind": "Create", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" }, { - "$id": "558", - "methodId": "MgmtTypeSpec.Bars.update", + "$id": "546", + "methodId": "MgmtTypeSpec.FooSettingsOperations.update", "kind": "Update", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" }, { - "$id": "559", - "methodId": "MgmtTypeSpec.Employees.listByParent", - "kind": "List", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/employees", + "$id": "547", + "methodId": "MgmtTypeSpec.FooSettingsOperations.delete", + "kind": "Delete", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" } ], "resourceScope": "ResourceGroup", - "parentResourceId": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", - "resourceName": "Bar" + "singletonResourceName": "default", + "resourceName": "FooSettings" } } ], "baseModel": { - "$ref": "430" + "$ref": "347" }, "properties": [ { - "$id": "560", + "$id": "548", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "561", + "$id": "549", "kind": "model", - "name": "BarProperties", + "name": "FooSettingsProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.BarProperties", - "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsProperties", + "usage": "Input,Output,Json", + "doc": "Base resource properties that can be extended for arm resources.", "decorators": [ { "name": "Azure.ResourceManager.@armProviderNamespace", @@ -6497,238 +6284,1134 @@ ], "properties": [ { - "$id": "562", - "kind": "property", - "name": "serviceUrl", - "serializedName": "serviceUrl", - "doc": "the service url", - "type": { - "$id": "563", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.BarProperties.serviceUrl", - "serializationOptions": { - "json": { - "name": "serviceUrl" - } - }, - "isHttpMetadata": false - }, - { - "$id": "564", - "kind": "property", - "name": "something", - "serializedName": "something", - "doc": "something", - "type": { - "$id": "565", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.BarProperties.something", - "serializationOptions": { - "json": { - "name": "something" - } - }, - "isHttpMetadata": false - }, - { - "$id": "566", - "kind": "property", - "name": "boolValue", - "serializedName": "boolValue", - "doc": "boolean value", - "type": { - "$id": "567", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.BarProperties.boolValue", - "serializationOptions": { - "json": { - "name": "boolValue" - } - }, - "isHttpMetadata": false - }, - { - "$id": "568", - "kind": "property", - "name": "floatValue", - "serializedName": "floatValue", - "doc": "float value", - "type": { - "$id": "569", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.BarProperties.floatValue", - "serializationOptions": { - "json": { - "name": "floatValue" - } - }, - "isHttpMetadata": false - }, - { - "$id": "570", + "$id": "550", "kind": "property", - "name": "doubleValue", - "serializedName": "doubleValue", - "doc": "double value", + "name": "marketplace", + "serializedName": "marketplace", + "doc": "Marketplace details of the resource.", "type": { - "$id": "571", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.BarProperties.doubleValue", - "serializationOptions": { - "json": { - "name": "doubleValue" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.Bar.properties", - "serializationOptions": { - "json": { - "name": "properties" - } - }, - "isHttpMetadata": false - }, - { - "$id": "572", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the Bar", - "type": { - "$id": "573", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.Bar.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": true - } - ] - }, - { - "$ref": "561" - }, - { - "$id": "574", - "kind": "model", - "name": "BarListResult", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult", - "usage": "Output,Json", - "doc": "The response of a Bar list operation.", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [ - { - "$id": "575", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "The Bar items on this page", - "type": { - "$id": "576", - "kind": "array", - "name": "ArrayBar", - "valueType": { - "$ref": "553" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.value", - "serializationOptions": { - "json": { - "name": "value" - } - }, - "isHttpMetadata": false - }, + "$id": "551", + "kind": "model", + "name": "MarketplaceDetails", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "LiftrBase.MarketplaceDetails", + "usage": "Input,Output,Json", + "doc": "Marketplace details for an organization", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "552", + "kind": "property", + "name": "subscriptionId", + "serializedName": "subscriptionId", + "doc": "Azure subscription id for the the marketplace offer is purchased from", + "type": { + "$id": "553", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.MarketplaceDetails.subscriptionId", + "serializationOptions": { + "json": { + "name": "subscriptionId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "554", + "kind": "property", + "name": "subscriptionStatus", + "serializedName": "subscriptionStatus", + "doc": "Marketplace subscription status", + "type": { + "$ref": "47" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.MarketplaceDetails.subscriptionStatus", + "serializationOptions": { + "json": { + "name": "subscriptionStatus" + } + }, + "isHttpMetadata": false + }, + { + "$id": "555", + "kind": "property", + "name": "offerDetails", + "serializedName": "offerDetails", + "doc": "Offer details for the marketplace that is selected by the user", + "type": { + "$id": "556", + "kind": "model", + "name": "OfferDetails", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "LiftrBase.OfferDetails", + "usage": "Input,Output,Json", + "doc": "Offer details for the marketplace that is selected by the user", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "557", + "kind": "property", + "name": "publisherId", + "serializedName": "publisherId", + "doc": "Publisher Id for the marketplace offer", + "type": { + "$id": "558", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.OfferDetails.publisherId", + "serializationOptions": { + "json": { + "name": "publisherId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "559", + "kind": "property", + "name": "offerId", + "serializedName": "offerId", + "doc": "Offer Id for the marketplace offer", + "type": { + "$id": "560", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.OfferDetails.offerId", + "serializationOptions": { + "json": { + "name": "offerId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "561", + "kind": "property", + "name": "planId", + "serializedName": "planId", + "doc": "Plan Id for the marketplace offer", + "type": { + "$id": "562", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.OfferDetails.planId", + "serializationOptions": { + "json": { + "name": "planId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "563", + "kind": "property", + "name": "planName", + "serializedName": "planName", + "doc": "Plan Name for the marketplace offer", + "type": { + "$id": "564", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.OfferDetails.planName", + "serializationOptions": { + "json": { + "name": "planName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "565", + "kind": "property", + "name": "termUnit", + "serializedName": "termUnit", + "doc": "Plan Display Name for the marketplace offer", + "type": { + "$id": "566", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.OfferDetails.termUnit", + "serializationOptions": { + "json": { + "name": "termUnit" + } + }, + "isHttpMetadata": false + }, + { + "$id": "567", + "kind": "property", + "name": "termId", + "serializedName": "termId", + "doc": "Plan Display Name for the marketplace offer", + "type": { + "$id": "568", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.OfferDetails.termId", + "serializationOptions": { + "json": { + "name": "termId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "569", + "kind": "property", + "name": "renewalMode", + "serializedName": "renewalMode", + "doc": "Subscription renewal mode", + "type": { + "$ref": "53" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.OfferDetails.renewalMode", + "serializationOptions": { + "json": { + "name": "renewalMode" + } + }, + "isHttpMetadata": false + }, + { + "$id": "570", + "kind": "property", + "name": "endDate", + "serializedName": "endDate", + "doc": "Current subscription end date and time", + "type": { + "$id": "571", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "572", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.OfferDetails.endDate", + "serializationOptions": { + "json": { + "name": "endDate" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.MarketplaceDetails.offerDetails", + "serializationOptions": { + "json": { + "name": "offerDetails" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsProperties.marketplace", + "serializationOptions": { + "json": { + "name": "marketplace" + } + }, + "isHttpMetadata": false + }, + { + "$id": "573", + "kind": "property", + "name": "user", + "serializedName": "user", + "doc": "Details of the user.", + "type": { + "$id": "574", + "kind": "model", + "name": "UserDetails", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "LiftrBase.UserDetails", + "usage": "Input,Output,Json", + "doc": "User details for an organization", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "575", + "kind": "property", + "name": "firstName", + "serializedName": "firstName", + "doc": "First name of the user", + "type": { + "$id": "576", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.UserDetails.firstName", + "serializationOptions": { + "json": { + "name": "firstName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "577", + "kind": "property", + "name": "lastName", + "serializedName": "lastName", + "doc": "Last name of the user", + "type": { + "$id": "578", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.UserDetails.lastName", + "serializationOptions": { + "json": { + "name": "lastName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "579", + "kind": "property", + "name": "emailAddress", + "serializedName": "emailAddress", + "doc": "Email address of the user", + "type": { + "$id": "580", + "kind": "string", + "name": "email", + "crossLanguageDefinitionId": "LiftrBase.email", + "baseType": { + "$id": "581", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.UserDetails.emailAddress", + "serializationOptions": { + "json": { + "name": "emailAddress" + } + }, + "isHttpMetadata": false + }, + { + "$id": "582", + "kind": "property", + "name": "upn", + "serializedName": "upn", + "doc": "User's principal name", + "type": { + "$id": "583", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.UserDetails.upn", + "serializationOptions": { + "json": { + "name": "upn" + } + }, + "isHttpMetadata": false + }, + { + "$id": "584", + "kind": "property", + "name": "phoneNumber", + "serializedName": "phoneNumber", + "doc": "User's phone number", + "type": { + "$id": "585", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "LiftrBase.UserDetails.phoneNumber", + "serializationOptions": { + "json": { + "name": "phoneNumber" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsProperties.user", + "serializationOptions": { + "json": { + "name": "user" + } + }, + "isHttpMetadata": false + }, + { + "$id": "586", + "kind": "property", + "name": "provisioningState", + "serializedName": "provisioningState", + "doc": "Provisioning state of the resource.", + "type": { + "$ref": "21" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsProperties.provisioningState", + "serializationOptions": { + "json": { + "name": "provisioningState" + } + }, + "isHttpMetadata": false + }, + { + "$id": "587", + "kind": "property", + "name": "accessControlEnabled", + "serializedName": "accessControlEnabled", + "type": { + "$id": "588", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsProperties.accessControlEnabled", + "serializationOptions": { + "json": { + "name": "accessControlEnabled" + } + }, + "isHttpMetadata": false + }, + { + "$id": "589", + "kind": "property", + "name": "metaData", + "serializedName": "metaData", + "type": { + "$id": "590", + "kind": "model", + "name": "FooSettingsPropertiesMetaData", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsPropertiesMetaData", + "usage": "Output,Json", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "591", + "kind": "property", + "name": "metaDatas", + "serializedName": "metaDatas", + "type": { + "$ref": "376" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsPropertiesMetaData.metaDatas", + "serializationOptions": { + "json": { + "name": "metaDatas" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsProperties.metaData", + "serializationOptions": { + "json": { + "name": "metaData" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettings.properties", + "serializationOptions": { + "json": { + "name": "properties" + } + }, + "isHttpMetadata": false + }, + { + "$id": "592", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The default Foo settings.", + "type": { + "$id": "593", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettings.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": true + } + ] + }, + { + "$ref": "549" + }, + { + "$ref": "551" + }, + { + "$ref": "556" + }, + { + "$ref": "574" + }, + { + "$ref": "590" + }, + { + "$id": "594", + "kind": "model", + "name": "FooSettingsUpdate", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModel", + "usage": "Input,Json", + "doc": "The type used for update operations of the FooSettings.", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "595", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "The resource-specific properties for this resource.", + "type": { + "$id": "596", + "kind": "model", + "name": "FooSettingsUpdateProperties", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties", + "usage": "Input,Json", + "doc": "The updatable properties of the FooSettings.", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "597", + "kind": "property", + "name": "marketplace", + "serializedName": "marketplace", + "doc": "Marketplace details of the resource.", + "type": { + "$ref": "551" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties.marketplace", + "serializationOptions": { + "json": { + "name": "marketplace" + } + }, + "isHttpMetadata": false + }, + { + "$id": "598", + "kind": "property", + "name": "user", + "serializedName": "user", + "doc": "Details of the user.", + "type": { + "$ref": "574" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties.user", + "serializationOptions": { + "json": { + "name": "user" + } + }, + "isHttpMetadata": false + }, + { + "$id": "599", + "kind": "property", + "name": "accessControlEnabled", + "serializedName": "accessControlEnabled", + "type": { + "$id": "600", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties.accessControlEnabled", + "serializationOptions": { + "json": { + "name": "accessControlEnabled" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.Foundations.ResourceUpdateModel.properties", + "serializationOptions": { + "json": { + "name": "properties" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "596" + }, + { + "$id": "601", + "kind": "model", + "name": "Bar", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.Bar", + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "doc": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + }, + { + "name": "Azure.ResourceManager.Private.@armResourceInternal", + "arguments": {} + }, + { + "name": "TypeSpec.Rest.@parentResource", + "arguments": {} + }, + { + "name": "Azure.ClientGenerator.Core.@resourceSchema", + "arguments": { + "resourceIdPattern": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", + "resourceType": "MgmtTypeSpec/foos/bars", + "methods": [ + { + "$id": "602", + "methodId": "MgmtTypeSpec.Bars.createOrUpdate", + "kind": "Create", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" + }, + { + "$id": "603", + "methodId": "MgmtTypeSpec.Bars.delete", + "kind": "Delete", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" + }, + { + "$id": "604", + "methodId": "MgmtTypeSpec.Bars.list", + "kind": "List", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" + }, + { + "$id": "605", + "methodId": "MgmtTypeSpec.Bars.get", + "kind": "Get", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" + }, + { + "$id": "606", + "methodId": "MgmtTypeSpec.Bars.update", + "kind": "Update", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" + }, + { + "$id": "607", + "methodId": "MgmtTypeSpec.Employees.listByParent", + "kind": "List", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/employees", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" + } + ], + "resourceScope": "ResourceGroup", + "parentResourceId": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", + "resourceName": "Bar" + } + } + ], + "baseModel": { + "$ref": "464" + }, + "properties": [ + { + "$id": "608", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "The resource-specific properties for this resource.", + "type": { + "$id": "609", + "kind": "model", + "name": "BarProperties", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.BarProperties", + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "610", + "kind": "property", + "name": "serviceUrl", + "serializedName": "serviceUrl", + "doc": "the service url", + "type": { + "$id": "611", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BarProperties.serviceUrl", + "serializationOptions": { + "json": { + "name": "serviceUrl" + } + }, + "isHttpMetadata": false + }, + { + "$id": "612", + "kind": "property", + "name": "something", + "serializedName": "something", + "doc": "something", + "type": { + "$id": "613", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BarProperties.something", + "serializationOptions": { + "json": { + "name": "something" + } + }, + "isHttpMetadata": false + }, + { + "$id": "614", + "kind": "property", + "name": "boolValue", + "serializedName": "boolValue", + "doc": "boolean value", + "type": { + "$id": "615", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BarProperties.boolValue", + "serializationOptions": { + "json": { + "name": "boolValue" + } + }, + "isHttpMetadata": false + }, + { + "$id": "616", + "kind": "property", + "name": "floatValue", + "serializedName": "floatValue", + "doc": "float value", + "type": { + "$id": "617", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BarProperties.floatValue", + "serializationOptions": { + "json": { + "name": "floatValue" + } + }, + "isHttpMetadata": false + }, + { + "$id": "618", + "kind": "property", + "name": "doubleValue", + "serializedName": "doubleValue", + "doc": "double value", + "type": { + "$id": "619", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.BarProperties.doubleValue", + "serializationOptions": { + "json": { + "name": "doubleValue" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.Bar.properties", + "serializationOptions": { + "json": { + "name": "properties" + } + }, + "isHttpMetadata": false + }, + { + "$id": "620", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the Bar", + "type": { + "$id": "621", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.Bar.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": true + } + ] + }, + { + "$ref": "609" + }, + { + "$id": "622", + "kind": "model", + "name": "BarListResult", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult", + "usage": "Output,Json", + "doc": "The response of a Bar list operation.", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "623", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The Bar items on this page", + "type": { + "$id": "624", + "kind": "array", + "name": "ArrayBar", + "valueType": { + "$ref": "601" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false + }, { - "$id": "577", + "$id": "625", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "578", + "$id": "626", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "579", + "$id": "627", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -6752,7 +7435,7 @@ ] }, { - "$id": "580", + "$id": "628", "kind": "model", "name": "BarSettingsResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6785,7 +7468,7 @@ "resourceType": "MgmtTypeSpec/foos/bars/settings", "methods": [ { - "$id": "581", + "$id": "629", "methodId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current", @@ -6793,7 +7476,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current" }, { - "$id": "582", + "$id": "630", "methodId": "MgmtTypeSpec.BarSettingsOperations.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current", @@ -6809,17 +7492,17 @@ } ], "baseModel": { - "$ref": "324" + "$ref": "347" }, "properties": [ { - "$id": "583", + "$id": "631", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "584", + "$id": "632", "kind": "model", "name": "BarSettingsProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6833,13 +7516,13 @@ ], "properties": [ { - "$id": "585", + "$id": "633", "kind": "property", "name": "isEnabled", "serializedName": "isEnabled", "doc": "enabled", "type": { - "$id": "586", + "$id": "634", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -6874,13 +7557,13 @@ "isHttpMetadata": false }, { - "$id": "587", + "$id": "635", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the BarSettingsResource", "type": { - "$id": "588", + "$id": "636", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6900,12 +7583,12 @@ "isHttpMetadata": true }, { - "$id": "589", + "$id": "637", "kind": "property", "name": "stringArray", "serializedName": "stringArray", "type": { - "$ref": "353" + "$ref": "376" }, "optional": true, "readOnly": false, @@ -6921,12 +7604,12 @@ "isHttpMetadata": false }, { - "$id": "590", + "$id": "638", "kind": "property", "name": "property", "serializedName": "property", "type": { - "$id": "591", + "$id": "639", "kind": "model", "name": "BarQuotaProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -6940,13 +7623,13 @@ ], "properties": [ { - "$id": "592", + "$id": "640", "kind": "property", "name": "left", "serializedName": "left", "doc": "enabled", "type": { - "$id": "593", + "$id": "641", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -6981,12 +7664,12 @@ "isHttpMetadata": false }, { - "$id": "594", + "$id": "642", "kind": "property", "name": "anotherProperty", "serializedName": "anotherProperty", "type": { - "$ref": "591" + "$ref": "639" }, "optional": false, "readOnly": false, @@ -7002,12 +7685,12 @@ "isHttpMetadata": false }, { - "$id": "595", + "$id": "643", "kind": "property", "name": "flattenedNestedProperty", "serializedName": "flattenedNestedProperty", "type": { - "$id": "596", + "$id": "644", "kind": "model", "name": "BarNestedQuotaProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7020,7 +7703,7 @@ } ], "baseModel": { - "$id": "597", + "$id": "645", "kind": "model", "name": "BarMiddleNestedQuotaProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7033,7 +7716,7 @@ } ], "baseModel": { - "$id": "598", + "$id": "646", "kind": "model", "name": "BarDeeplyNestedQuotaProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7047,12 +7730,12 @@ ], "properties": [ { - "$id": "599", + "$id": "647", "kind": "property", "name": "innerProp1", "serializedName": "innerProp1", "type": { - "$id": "600", + "$id": "648", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -7072,12 +7755,12 @@ "isHttpMetadata": false }, { - "$id": "601", + "$id": "649", "kind": "property", "name": "innerProp2", "serializedName": "innerProp2", "type": { - "$id": "602", + "$id": "650", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7100,12 +7783,12 @@ }, "properties": [ { - "$id": "603", + "$id": "651", "kind": "property", "name": "middleProp1", "serializedName": "middleProp1", "type": { - "$id": "604", + "$id": "652", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -7125,12 +7808,12 @@ "isHttpMetadata": false }, { - "$id": "605", + "$id": "653", "kind": "property", "name": "middleProp2", "serializedName": "middleProp2", "type": { - "$ref": "432" + "$ref": "466" }, "optional": false, "readOnly": false, @@ -7149,12 +7832,12 @@ }, "properties": [ { - "$id": "606", + "$id": "654", "kind": "property", "name": "prop1", "serializedName": "prop1", "type": { - "$ref": "353" + "$ref": "376" }, "optional": false, "readOnly": false, @@ -7170,12 +7853,12 @@ "isHttpMetadata": false }, { - "$id": "607", + "$id": "655", "kind": "property", "name": "prop2", "serializedName": "prop2", "type": { - "$id": "608", + "$id": "656", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -7215,12 +7898,12 @@ "isHttpMetadata": false }, { - "$id": "609", + "$id": "657", "kind": "property", "name": "optionalFlattenProperty", "serializedName": "optionalFlattenProperty", "type": { - "$id": "610", + "$id": "658", "kind": "model", "name": "optionalFlattenPropertyType", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7234,12 +7917,12 @@ ], "properties": [ { - "$id": "611", + "$id": "659", "kind": "property", "name": "randomCollectionProp", "serializedName": "randomCollectionProp", "type": { - "$ref": "353" + "$ref": "376" }, "optional": false, "readOnly": false, @@ -7270,12 +7953,12 @@ "isHttpMetadata": false }, { - "$id": "612", + "$id": "660", "kind": "property", "name": "discriminatorProperty", "serializedName": "discriminatorProperty", "type": { - "$id": "613", + "$id": "661", "kind": "model", "name": "LimitJsonObject", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7289,13 +7972,13 @@ } ], "discriminatorProperty": { - "$id": "614", + "$id": "662", "kind": "property", "name": "limitObjectType", "serializedName": "limitObjectType", "doc": "The limit object type.", "type": { - "$ref": "46" + "$ref": "57" }, "optional": false, "readOnly": false, @@ -7312,7 +7995,7 @@ }, "properties": [ { - "$ref": "614" + "$ref": "662" } ] }, @@ -7332,28 +8015,28 @@ ] }, { - "$ref": "584" + "$ref": "632" }, { - "$ref": "591" + "$ref": "639" }, { - "$ref": "596" + "$ref": "644" }, { - "$ref": "597" + "$ref": "645" }, { - "$ref": "598" + "$ref": "646" }, { - "$ref": "610" + "$ref": "658" }, { - "$ref": "613" + "$ref": "661" }, { - "$id": "615", + "$id": "663", "kind": "model", "name": "BarQuotaResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7380,7 +8063,7 @@ "resourceType": "MgmtTypeSpec/foos/bars/quotas", "methods": [ { - "$id": "616", + "$id": "664", "methodId": "MgmtTypeSpec.BarQuotaOperations.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/quotas/{barQuotaResourceName}", @@ -7388,7 +8071,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/quotas/{barQuotaResourceName}" }, { - "$id": "617", + "$id": "665", "methodId": "MgmtTypeSpec.BarQuotaOperations.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/quotas/{barQuotaResourceName}", @@ -7403,17 +8086,17 @@ } ], "baseModel": { - "$ref": "324" + "$ref": "347" }, "properties": [ { - "$id": "618", + "$id": "666", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$ref": "591" + "$ref": "639" }, "optional": true, "readOnly": false, @@ -7429,13 +8112,13 @@ "isHttpMetadata": false }, { - "$id": "619", + "$id": "667", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the BarQuotaResource", "type": { - "$ref": "49" + "$ref": "60" }, "optional": false, "readOnly": true, @@ -7453,7 +8136,7 @@ ] }, { - "$id": "620", + "$id": "668", "kind": "model", "name": "EmployeeListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7468,17 +8151,17 @@ ], "properties": [ { - "$id": "621", + "$id": "669", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Employee items on this page", "type": { - "$id": "622", + "$id": "670", "kind": "array", "name": "ArrayEmployee", "valueType": { - "$id": "623", + "$id": "671", "kind": "model", "name": "Employee", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7500,17 +8183,17 @@ } ], "baseModel": { - "$ref": "430" + "$ref": "464" }, "properties": [ { - "$id": "624", + "$id": "672", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "625", + "$id": "673", "kind": "model", "name": "EmployeeProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7525,13 +8208,13 @@ ], "properties": [ { - "$id": "626", + "$id": "674", "kind": "property", "name": "age", "serializedName": "age", "doc": "Age of employee", "type": { - "$id": "627", + "$id": "675", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -7551,13 +8234,13 @@ "isHttpMetadata": false }, { - "$id": "628", + "$id": "676", "kind": "property", "name": "city", "serializedName": "city", "doc": "City of employee", "type": { - "$id": "629", + "$id": "677", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7592,13 +8275,13 @@ "isHttpMetadata": false }, { - "$id": "630", + "$id": "678", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Employee", "type": { - "$id": "631", + "$id": "679", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7636,18 +8319,18 @@ "isHttpMetadata": false }, { - "$id": "632", + "$id": "680", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "633", + "$id": "681", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "634", + "$id": "682", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -7671,13 +8354,13 @@ ] }, { - "$ref": "623" + "$ref": "671" }, { - "$ref": "625" + "$ref": "673" }, { - "$id": "635", + "$id": "683", "kind": "model", "name": "Baz", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7700,7 +8383,7 @@ "resourceType": "MgmtTypeSpec/bazs", "methods": [ { - "$id": "636", + "$id": "684", "methodId": "MgmtTypeSpec.Bazs.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}", @@ -7708,7 +8391,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}" }, { - "$id": "637", + "$id": "685", "methodId": "MgmtTypeSpec.Bazs.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}", @@ -7716,7 +8399,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}" }, { - "$id": "638", + "$id": "686", "methodId": "MgmtTypeSpec.Bazs.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}", @@ -7724,7 +8407,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}" }, { - "$id": "639", + "$id": "687", "methodId": "MgmtTypeSpec.Bazs.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}", @@ -7732,14 +8415,14 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}" }, { - "$id": "640", + "$id": "688", "methodId": "MgmtTypeSpec.Bazs.list", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs", "operationScope": "ResourceGroup" }, { - "$id": "641", + "$id": "689", "methodId": "MgmtTypeSpec.Bazs.listBySubscription", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/bazs", @@ -7752,17 +8435,17 @@ } ], "baseModel": { - "$ref": "325" + "$ref": "348" }, "properties": [ { - "$id": "642", + "$id": "690", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The RP-specific properties for this resource.", "type": { - "$id": "643", + "$id": "691", "kind": "model", "name": "BazProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7776,13 +8459,13 @@ ], "properties": [ { - "$id": "644", + "$id": "692", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "645", + "$id": "693", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7802,13 +8485,13 @@ "isHttpMetadata": false }, { - "$id": "646", + "$id": "694", "kind": "property", "name": "boolValue", "serializedName": "boolValue", "doc": "boolean value", "type": { - "$id": "647", + "$id": "695", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -7843,13 +8526,13 @@ "isHttpMetadata": false }, { - "$id": "648", + "$id": "696", "kind": "property", "name": "tags", "serializedName": "tags", "doc": "Resource tags.", "type": { - "$ref": "432" + "$ref": "466" }, "optional": true, "readOnly": false, @@ -7865,13 +8548,13 @@ "isHttpMetadata": false }, { - "$id": "649", + "$id": "697", "kind": "property", "name": "location", "serializedName": "location", "doc": "The geo-location where the resource lives", "type": { - "$id": "650", + "$id": "698", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7891,13 +8574,13 @@ "isHttpMetadata": false }, { - "$id": "651", + "$id": "699", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Baz", "type": { - "$id": "652", + "$id": "700", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7919,10 +8602,10 @@ ] }, { - "$ref": "643" + "$ref": "691" }, { - "$id": "653", + "$id": "701", "kind": "model", "name": "BazListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -7937,17 +8620,17 @@ ], "properties": [ { - "$id": "654", + "$id": "702", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Baz items on this page", "type": { - "$id": "655", + "$id": "703", "kind": "array", "name": "ArrayBaz", "valueType": { - "$ref": "635" + "$ref": "683" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -7966,18 +8649,18 @@ "isHttpMetadata": false }, { - "$id": "656", + "$id": "704", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "657", + "$id": "705", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "658", + "$id": "706", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -8001,7 +8684,7 @@ ] }, { - "$id": "659", + "$id": "707", "kind": "model", "name": "Zoo", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8024,7 +8707,7 @@ "resourceType": "MgmtTypeSpec/zoos", "methods": [ { - "$id": "660", + "$id": "708", "methodId": "MgmtTypeSpec.Zoos.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -8032,7 +8715,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "661", + "$id": "709", "methodId": "MgmtTypeSpec.Zoos.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -8040,7 +8723,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "662", + "$id": "710", "methodId": "MgmtTypeSpec.Zoos.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -8048,7 +8731,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "663", + "$id": "711", "methodId": "MgmtTypeSpec.Zoos.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -8056,21 +8739,21 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "664", + "$id": "712", "methodId": "MgmtTypeSpec.Zoos.list", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos", "operationScope": "ResourceGroup" }, { - "$id": "665", + "$id": "713", "methodId": "MgmtTypeSpec.Zoos.listBySubscription", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/zoos", "operationScope": "Subscription" }, { - "$id": "666", + "$id": "714", "methodId": "MgmtTypeSpec.Zoos.zooAddressList", "kind": "Action", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}/zooAddressList", @@ -8078,7 +8761,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "667", + "$id": "715", "methodId": "MgmtTypeSpec.Zoos.recommend", "kind": "Action", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}/recommend", @@ -8092,17 +8775,17 @@ } ], "baseModel": { - "$ref": "430" + "$ref": "464" }, "properties": [ { - "$id": "668", + "$id": "716", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "669", + "$id": "717", "kind": "model", "name": "ZooProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8122,13 +8805,13 @@ ], "properties": [ { - "$id": "670", + "$id": "718", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "671", + "$id": "719", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8163,13 +8846,13 @@ "isHttpMetadata": false }, { - "$id": "672", + "$id": "720", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Zoo", "type": { - "$id": "673", + "$id": "721", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8189,12 +8872,12 @@ "isHttpMetadata": true }, { - "$id": "674", + "$id": "722", "kind": "property", "name": "extendedLocation", "serializedName": "extendedLocation", "type": { - "$ref": "466" + "$ref": "514" }, "optional": true, "readOnly": false, @@ -8212,10 +8895,10 @@ ] }, { - "$ref": "669" + "$ref": "717" }, { - "$id": "675", + "$id": "723", "kind": "model", "name": "ZooUpdate", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8230,13 +8913,13 @@ ], "properties": [ { - "$id": "676", + "$id": "724", "kind": "property", "name": "tags", "serializedName": "tags", "doc": "Resource tags.", "type": { - "$ref": "432" + "$ref": "466" }, "optional": true, "readOnly": false, @@ -8252,13 +8935,13 @@ "isHttpMetadata": false }, { - "$id": "677", + "$id": "725", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "678", + "$id": "726", "kind": "model", "name": "ZooUpdateProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8273,13 +8956,13 @@ ], "properties": [ { - "$id": "679", + "$id": "727", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "680", + "$id": "728", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8316,10 +8999,10 @@ ] }, { - "$ref": "678" + "$ref": "726" }, { - "$id": "681", + "$id": "729", "kind": "model", "name": "ZooListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8334,17 +9017,17 @@ ], "properties": [ { - "$id": "682", + "$id": "730", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Zoo items on this page", "type": { - "$id": "683", + "$id": "731", "kind": "array", "name": "ArrayZoo", "valueType": { - "$ref": "659" + "$ref": "707" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -8363,18 +9046,18 @@ "isHttpMetadata": false }, { - "$id": "684", + "$id": "732", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "685", + "$id": "733", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "686", + "$id": "734", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -8398,7 +9081,7 @@ ] }, { - "$id": "687", + "$id": "735", "kind": "model", "name": "ZooAddressListListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8413,29 +9096,17 @@ ], "properties": [ { - "$id": "688", + "$id": "736", "kind": "property", "name": "value", "serializedName": "value", "doc": "The ZooAddress items on this page", "type": { - "$id": "689", + "$id": "737", "kind": "array", "name": "ArraySubResource", "valueType": { - "$id": "690", - "kind": "model", - "name": "SubResource", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "Azure.ResourceManager.Models.SubResource", - "usage": "Output,Json", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [] + "$ref": "453" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -8454,18 +9125,18 @@ "isHttpMetadata": false }, { - "$id": "691", + "$id": "738", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "692", + "$id": "739", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "693", + "$id": "740", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -8489,10 +9160,7 @@ ] }, { - "$ref": "690" - }, - { - "$id": "694", + "$id": "741", "kind": "model", "name": "EndpointResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8515,7 +9183,7 @@ "resourceType": "MgmtTypeSpec/endpoints", "methods": [ { - "$id": "695", + "$id": "742", "methodId": "MgmtTypeSpec.EndpointResources.get", "kind": "Get", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}", @@ -8523,7 +9191,7 @@ "resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}" }, { - "$id": "696", + "$id": "743", "methodId": "MgmtTypeSpec.EndpointResources.createOrUpdate", "kind": "Create", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}", @@ -8531,7 +9199,7 @@ "resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}" }, { - "$id": "697", + "$id": "744", "methodId": "MgmtTypeSpec.EndpointResources.update", "kind": "Update", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}", @@ -8539,7 +9207,7 @@ "resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}" }, { - "$id": "698", + "$id": "745", "methodId": "MgmtTypeSpec.EndpointResources.delete", "kind": "Delete", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}", @@ -8547,7 +9215,7 @@ "resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}" }, { - "$id": "699", + "$id": "746", "methodId": "MgmtTypeSpec.EndpointResources.list", "kind": "List", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints", @@ -8560,7 +9228,7 @@ } ], "baseModel": { - "$id": "700", + "$id": "747", "kind": "model", "name": "ExtensionResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8574,19 +9242,19 @@ } ], "baseModel": { - "$ref": "325" + "$ref": "348" }, "properties": [] }, "properties": [ { - "$id": "701", + "$id": "748", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "702", + "$id": "749", "kind": "model", "name": "EndpointProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8600,12 +9268,12 @@ ], "properties": [ { - "$id": "703", + "$id": "750", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "704", + "$id": "751", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8640,13 +9308,13 @@ "isHttpMetadata": false }, { - "$id": "705", + "$id": "752", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the EndpointResource", "type": { - "$id": "706", + "$id": "753", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8668,13 +9336,13 @@ ] }, { - "$ref": "702" + "$ref": "749" }, { - "$ref": "700" + "$ref": "747" }, { - "$id": "707", + "$id": "754", "kind": "model", "name": "EndpointResourceListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8689,17 +9357,17 @@ ], "properties": [ { - "$id": "708", + "$id": "755", "kind": "property", "name": "value", "serializedName": "value", "doc": "The EndpointResource items on this page", "type": { - "$id": "709", + "$id": "756", "kind": "array", "name": "ArrayEndpointResource", "valueType": { - "$ref": "694" + "$ref": "741" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -8718,18 +9386,18 @@ "isHttpMetadata": false }, { - "$id": "710", + "$id": "757", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "711", + "$id": "758", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "712", + "$id": "759", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -8753,7 +9421,7 @@ ] }, { - "$id": "713", + "$id": "760", "kind": "model", "name": "SelfHelpResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8776,7 +9444,7 @@ "resourceType": "MgmtTypeSpec/selfHelps", "methods": [ { - "$id": "714", + "$id": "761", "methodId": "MgmtTypeSpec.SolutionResources.get", "kind": "Get", "operationPath": "/{scope}/providers/MgmtTypeSpec/selfHelps/{selfHelpName}", @@ -8790,17 +9458,17 @@ } ], "baseModel": { - "$ref": "700" + "$ref": "747" }, "properties": [ { - "$id": "715", + "$id": "762", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "716", + "$id": "763", "kind": "model", "name": "SelfHelpResourceProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8814,12 +9482,12 @@ ], "properties": [ { - "$id": "717", + "$id": "764", "kind": "property", "name": "selfHelpId", "serializedName": "selfHelpId", "type": { - "$id": "718", + "$id": "765", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8854,13 +9522,13 @@ "isHttpMetadata": false }, { - "$id": "719", + "$id": "766", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the SelfHelpResource", "type": { - "$id": "720", + "$id": "767", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8882,10 +9550,10 @@ ] }, { - "$ref": "716" + "$ref": "763" }, { - "$id": "721", + "$id": "768", "kind": "model", "name": "PlaywrightQuota", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8912,7 +9580,7 @@ "resourceType": "MgmtTypeSpec/locations/playwrightQuotas", "methods": [ { - "$id": "722", + "$id": "769", "methodId": "MgmtTypeSpec.PlaywrightQuotas.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}", @@ -8920,14 +9588,14 @@ "resourceScope": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}" }, { - "$id": "723", + "$id": "770", "methodId": "MgmtTypeSpec.PlaywrightQuotas.listBySubscription", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas", "operationScope": "Subscription" }, { - "$id": "724", + "$id": "771", "methodId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}", @@ -8941,17 +9609,17 @@ } ], "baseModel": { - "$ref": "324" + "$ref": "347" }, "properties": [ { - "$id": "725", + "$id": "772", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "726", + "$id": "773", "kind": "model", "name": "PlaywrightQuotaProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -8966,13 +9634,13 @@ ], "properties": [ { - "$id": "727", + "$id": "774", "kind": "property", "name": "freeTrial", "serializedName": "freeTrial", "doc": "The subscription-level location-based Playwright quota resource free-trial properties.", "type": { - "$id": "728", + "$id": "775", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8992,13 +9660,13 @@ "isHttpMetadata": false }, { - "$id": "729", + "$id": "776", "kind": "property", "name": "provisioningState", "serializedName": "provisioningState", "doc": "The status of the last resource operation.", "type": { - "$id": "730", + "$id": "777", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9033,13 +9701,13 @@ "isHttpMetadata": false }, { - "$id": "731", + "$id": "778", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the PlaywrightQuota", "type": { - "$ref": "52" + "$ref": "63" }, "optional": false, "readOnly": true, @@ -9057,10 +9725,10 @@ ] }, { - "$ref": "726" + "$ref": "773" }, { - "$id": "732", + "$id": "779", "kind": "model", "name": "PlaywrightQuotaListResult", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9075,17 +9743,17 @@ ], "properties": [ { - "$id": "733", + "$id": "780", "kind": "property", "name": "value", "serializedName": "value", "doc": "The PlaywrightQuota items on this page", "type": { - "$id": "734", + "$id": "781", "kind": "array", "name": "ArrayPlaywrightQuota", "valueType": { - "$ref": "721" + "$ref": "768" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -9104,18 +9772,18 @@ "isHttpMetadata": false }, { - "$id": "735", + "$id": "782", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "736", + "$id": "783", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "737", + "$id": "784", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -9139,7 +9807,7 @@ ] }, { - "$id": "738", + "$id": "785", "kind": "model", "name": "JobResource", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9162,7 +9830,7 @@ "resourceType": "MgmtTypeSpec/jobs", "methods": [ { - "$id": "739", + "$id": "786", "methodId": "MgmtTypeSpec.JobResources.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}", @@ -9170,7 +9838,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}" }, { - "$id": "740", + "$id": "787", "methodId": "MgmtTypeSpec.JobResources.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}", @@ -9184,17 +9852,17 @@ } ], "baseModel": { - "$ref": "430" + "$ref": "464" }, "properties": [ { - "$id": "741", + "$id": "788", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "742", + "$id": "789", "kind": "model", "name": "JobProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9208,12 +9876,12 @@ ], "properties": [ { - "$id": "743", + "$id": "790", "kind": "property", "name": "jobName", "serializedName": "jobName", "type": { - "$id": "744", + "$id": "791", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9248,13 +9916,13 @@ "isHttpMetadata": false }, { - "$id": "745", + "$id": "792", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the JobResource", "type": { - "$id": "746", + "$id": "793", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9276,10 +9944,10 @@ ] }, { - "$ref": "742" + "$ref": "789" }, { - "$id": "747", + "$id": "794", "kind": "model", "name": "JobResourceUpdateParameter", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9293,12 +9961,12 @@ ], "properties": [ { - "$id": "748", + "$id": "795", "kind": "property", "name": "properties", "serializedName": "properties", "type": { - "$ref": "742" + "$ref": "789" }, "optional": true, "readOnly": false, @@ -9314,12 +9982,12 @@ "isHttpMetadata": false }, { - "$id": "749", + "$id": "796", "kind": "property", "name": "tags", "serializedName": "tags", "type": { - "$ref": "432" + "$ref": "466" }, "optional": true, "readOnly": false, @@ -9337,7 +10005,7 @@ ] }, { - "$id": "750", + "$id": "797", "kind": "model", "name": "HciVmInstance", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9366,7 +10034,7 @@ "resourceType": "MgmtTypeSpec/virtualMachineInstances", "methods": [ { - "$id": "751", + "$id": "798", "methodId": "MgmtTypeSpec.HciVmInstances.get", "kind": "Get", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/virtualMachineInstances/default", @@ -9381,17 +10049,17 @@ } ], "baseModel": { - "$ref": "700" + "$ref": "747" }, "properties": [ { - "$id": "752", + "$id": "799", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "753", + "$id": "800", "kind": "model", "name": "HciVmInstanceProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9405,12 +10073,12 @@ ], "properties": [ { - "$id": "754", + "$id": "801", "kind": "property", "name": "sku", "serializedName": "sku", "type": { - "$id": "755", + "$id": "802", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9445,13 +10113,13 @@ "isHttpMetadata": false }, { - "$id": "756", + "$id": "803", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the HciVmInstance", "type": { - "$id": "757", + "$id": "804", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9473,10 +10141,10 @@ ] }, { - "$ref": "753" + "$ref": "800" }, { - "$id": "758", + "$id": "805", "kind": "model", "name": "GroupQuotaSubscriptionRequestStatus", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9499,7 +10167,7 @@ "resourceType": "MgmtTypeSpec/quotas", "methods": [ { - "$id": "759", + "$id": "806", "methodId": "MgmtTypeSpec.GroupQuotaSubscriptionRequestStatuses.get", "kind": "Get", "operationPath": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/MgmtTypeSpec/quotas/{requestId}", @@ -9513,17 +10181,17 @@ } ], "baseModel": { - "$ref": "324" + "$ref": "347" }, "properties": [ { - "$id": "760", + "$id": "807", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "761", + "$id": "808", "kind": "model", "name": "GroupQuotaLimitProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9536,7 +10204,7 @@ } ], "baseModel": { - "$id": "762", + "$id": "809", "kind": "model", "name": "GroupQuotaDetails", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9551,13 +10219,13 @@ ], "properties": [ { - "$id": "763", + "$id": "810", "kind": "property", "name": "resourceName", "serializedName": "resourceName", "doc": "The resource name, such as SKU name.", "type": { - "$id": "764", + "$id": "811", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9577,13 +10245,13 @@ "isHttpMetadata": false }, { - "$id": "765", + "$id": "812", "kind": "property", "name": "limit", "serializedName": "limit", "doc": "The current Group Quota Limit at the parentId level.", "type": { - "$id": "766", + "$id": "813", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -9603,13 +10271,13 @@ "isHttpMetadata": false }, { - "$id": "767", + "$id": "814", "kind": "property", "name": "comment", "serializedName": "comment", "doc": "Any comment related to quota request.", "type": { - "$id": "768", + "$id": "815", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9629,13 +10297,13 @@ "isHttpMetadata": false }, { - "$id": "769", + "$id": "816", "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": "770", + "$id": "817", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9655,13 +10323,13 @@ "isHttpMetadata": false }, { - "$id": "771", + "$id": "818", "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": "772", + "$id": "819", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -9681,13 +10349,13 @@ "isHttpMetadata": false }, { - "$id": "773", + "$id": "820", "kind": "property", "name": "allocatedToSubscriptions", "serializedName": "allocatedToSubscriptions", "doc": "Quota allocated to subscriptions", "type": { - "$id": "774", + "$id": "821", "kind": "model", "name": "AllocatedQuotaToSubscriptionList", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9702,17 +10370,17 @@ ], "properties": [ { - "$id": "775", + "$id": "822", "kind": "property", "name": "value", "serializedName": "value", "doc": "List of Group Quota Limit allocated to subscriptions.", "type": { - "$id": "776", + "$id": "823", "kind": "array", "name": "ArrayAllocatedToSubscription", "valueType": { - "$id": "777", + "$id": "824", "kind": "model", "name": "AllocatedToSubscription", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9727,13 +10395,13 @@ ], "properties": [ { - "$id": "778", + "$id": "825", "kind": "property", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "An Azure subscriptionId.", "type": { - "$id": "779", + "$id": "826", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9753,13 +10421,13 @@ "isHttpMetadata": false }, { - "$id": "780", + "$id": "827", "kind": "property", "name": "quotaAllocated", "serializedName": "quotaAllocated", "doc": "The amount of quota allocated to this subscriptionId from the GroupQuotasEntity.", "type": { - "$id": "781", + "$id": "828", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -9829,13 +10497,13 @@ "isHttpMetadata": false }, { - "$id": "782", + "$id": "829", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the GroupQuotaSubscriptionRequestStatus", "type": { - "$id": "783", + "$id": "830", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9857,19 +10525,19 @@ ] }, { - "$ref": "761" + "$ref": "808" }, { - "$ref": "762" + "$ref": "809" }, { - "$ref": "774" + "$ref": "821" }, { - "$ref": "777" + "$ref": "824" }, { - "$id": "784", + "$id": "831", "kind": "model", "name": "GroupQuotaLimitList", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9892,7 +10560,7 @@ "resourceType": "Microsoft.Management/managementGroups/groupQuotas/resourceProviders/groupQuotaLimits", "methods": [ { - "$id": "785", + "$id": "832", "methodId": "MgmtTypeSpec.GroupQuotaLimitLists.list", "kind": "Get", "operationPath": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location}", @@ -9900,7 +10568,7 @@ "resourceScope": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location}" }, { - "$id": "786", + "$id": "833", "methodId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate", "kind": "Create", "operationPath": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location}", @@ -9908,7 +10576,7 @@ "resourceScope": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location}" }, { - "$id": "787", + "$id": "834", "methodId": "MgmtTypeSpec.GroupQuotaLimitLists.update", "kind": "Update", "operationPath": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location}", @@ -9922,17 +10590,17 @@ } ], "baseModel": { - "$ref": "324" + "$ref": "347" }, "properties": [ { - "$id": "788", + "$id": "835", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "789", + "$id": "836", "kind": "model", "name": "GroupQuotaLimitListProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -9946,13 +10614,13 @@ ], "properties": [ { - "$id": "790", + "$id": "837", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The URL to use for getting the next set of results.", "type": { - "$id": "791", + "$id": "838", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9987,13 +10655,13 @@ "isHttpMetadata": false }, { - "$id": "792", + "$id": "839", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the GroupQuotaLimitList", "type": { - "$id": "793", + "$id": "840", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10015,10 +10683,10 @@ ] }, { - "$ref": "789" + "$ref": "836" }, { - "$id": "794", + "$id": "841", "kind": "model", "name": "GroupQuotaListPatch", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10032,12 +10700,12 @@ ], "properties": [ { - "$id": "795", + "$id": "842", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "796", + "$id": "843", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10059,7 +10727,7 @@ ] }, { - "$id": "797", + "$id": "844", "kind": "model", "name": "SubscriptionQuotaAllocationsList", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10082,7 +10750,7 @@ "resourceType": "MgmtTypeSpec/groupQuotas/resourceProviders/quotaAllocations", "methods": [ { - "$id": "798", + "$id": "845", "methodId": "MgmtTypeSpec.SubscriptionQuotaAllocationsLists.get", "kind": "Get", "operationPath": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location}", @@ -10096,17 +10764,17 @@ } ], "baseModel": { - "$ref": "700" + "$ref": "747" }, "properties": [ { - "$id": "799", + "$id": "846", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "800", + "$id": "847", "kind": "model", "name": "SubscriptionQuotaAllocationsListProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10120,13 +10788,13 @@ ], "properties": [ { - "$id": "801", + "$id": "848", "kind": "property", "name": "value", "serializedName": "value", "doc": "Subscription quota list.", "type": { - "$ref": "353" + "$ref": "376" }, "optional": true, "readOnly": false, @@ -10142,13 +10810,13 @@ "isHttpMetadata": false }, { - "$id": "802", + "$id": "849", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The URL to use for getting the next set of results.", "type": { - "$id": "803", + "$id": "850", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10183,13 +10851,13 @@ "isHttpMetadata": false }, { - "$id": "804", + "$id": "851", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the SubscriptionQuotaAllocationsList", "type": { - "$id": "805", + "$id": "852", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10211,10 +10879,10 @@ ] }, { - "$ref": "800" + "$ref": "847" }, { - "$id": "806", + "$id": "853", "kind": "model", "name": "QueryNetworkSiblingSetRequest", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10229,13 +10897,13 @@ ], "properties": [ { - "$id": "807", + "$id": "854", "kind": "property", "name": "location", "serializedName": "location", "doc": "Location to query", "type": { - "$id": "808", + "$id": "855", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10255,13 +10923,13 @@ "isHttpMetadata": false }, { - "$id": "809", + "$id": "856", "kind": "property", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "Subscription ID to query", "type": { - "$id": "810", + "$id": "857", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10283,7 +10951,7 @@ ] }, { - "$id": "811", + "$id": "858", "kind": "model", "name": "NetworkSiblingSet", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10298,13 +10966,13 @@ ], "properties": [ { - "$id": "812", + "$id": "859", "kind": "property", "name": "id", "serializedName": "id", "doc": "Unique identifier for the sibling set", "type": { - "$id": "813", + "$id": "860", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10324,13 +10992,13 @@ "isHttpMetadata": false }, { - "$id": "814", + "$id": "861", "kind": "property", "name": "name", "serializedName": "name", "doc": "Name of the sibling set", "type": { - "$id": "815", + "$id": "862", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10350,13 +11018,13 @@ "isHttpMetadata": false }, { - "$id": "816", + "$id": "863", "kind": "property", "name": "type", "serializedName": "type", "doc": "Type of the resource", "type": { - "$id": "817", + "$id": "864", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10376,13 +11044,13 @@ "isHttpMetadata": false }, { - "$id": "818", + "$id": "865", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "Properties of the network sibling set", "type": { - "$id": "819", + "$id": "866", "kind": "model", "name": "NetworkSiblingSetProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10397,17 +11065,17 @@ ], "properties": [ { - "$id": "820", + "$id": "867", "kind": "property", "name": "siblings", "serializedName": "siblings", "doc": "List of network siblings", "type": { - "$id": "821", + "$id": "868", "kind": "array", "name": "ArrayNetworkSibling", "valueType": { - "$id": "822", + "$id": "869", "kind": "model", "name": "NetworkSibling", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10422,13 +11090,13 @@ ], "properties": [ { - "$id": "823", + "$id": "870", "kind": "property", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "Subscription ID", "type": { - "$id": "824", + "$id": "871", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10448,13 +11116,13 @@ "isHttpMetadata": false }, { - "$id": "825", + "$id": "872", "kind": "property", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "Resource group name", "type": { - "$id": "826", + "$id": "873", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10474,13 +11142,13 @@ "isHttpMetadata": false }, { - "$id": "827", + "$id": "874", "kind": "property", "name": "networkInterfaceId", "serializedName": "networkInterfaceId", "doc": "Network interface ID", "type": { - "$id": "828", + "$id": "875", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10518,13 +11186,13 @@ "isHttpMetadata": false }, { - "$id": "829", + "$id": "876", "kind": "property", "name": "status", "serializedName": "status", "doc": "Status of the query", "type": { - "$id": "830", + "$id": "877", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10561,13 +11229,13 @@ ] }, { - "$ref": "819" + "$ref": "866" }, { - "$ref": "822" + "$ref": "869" }, { - "$id": "831", + "$id": "878", "kind": "model", "name": "Joo", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10590,7 +11258,7 @@ "resourceType": "MgmtTypeSpec/joos", "methods": [ { - "$id": "832", + "$id": "879", "methodId": "MgmtTypeSpec.Joos.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/joos/{jooName}", @@ -10598,7 +11266,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/joos/{jooName}" }, { - "$id": "833", + "$id": "880", "methodId": "MgmtTypeSpec.Joos.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/joos/{jooName}", @@ -10606,7 +11274,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/joos/{jooName}" }, { - "$id": "834", + "$id": "881", "methodId": "MgmtTypeSpec.Joos.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/joos/{jooName}", @@ -10620,17 +11288,17 @@ } ], "baseModel": { - "$ref": "430" + "$ref": "464" }, "properties": [ { - "$id": "835", + "$id": "882", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "836", + "$id": "883", "kind": "model", "name": "JooProperties", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", @@ -10644,12 +11312,12 @@ ], "properties": [ { - "$id": "837", + "$id": "884", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "838", + "$id": "885", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10675,793 +11343,1688 @@ "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.Joo.properties", + "crossLanguageDefinitionId": "MgmtTypeSpec.Joo.properties", + "serializationOptions": { + "json": { + "name": "properties" + } + }, + "isHttpMetadata": false + }, + { + "$id": "886", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the Joo", + "type": { + "$id": "887", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.Joo.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": true + } + ] + }, + { + "$ref": "883" + }, + { + "$id": "888", + "kind": "model", + "name": "SAPVirtualInstance", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstance", + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "doc": "Define the Virtual Instance for SAP solutions resource.", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + }, + { + "name": "Azure.ResourceManager.Private.@armResourceInternal", + "arguments": {} + }, + { + "name": "Azure.ClientGenerator.Core.@resourceSchema", + "arguments": { + "resourceIdPattern": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/sapVirtualInstances/{sapVirtualInstanceName}", + "resourceType": "MgmtTypeSpec/sapVirtualInstances", + "methods": [ + { + "$id": "889", + "methodId": "MgmtTypeSpec.SAPVirtualInstances.get", + "kind": "Get", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/sapVirtualInstances/{sapVirtualInstanceName}", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/sapVirtualInstances/{sapVirtualInstanceName}" + }, + { + "$id": "890", + "methodId": "MgmtTypeSpec.SAPVirtualInstances.create", + "kind": "Create", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/sapVirtualInstances/{sapVirtualInstanceName}", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/sapVirtualInstances/{sapVirtualInstanceName}" + } + ], + "resourceScope": "ResourceGroup", + "resourceName": "SAPVirtualInstance" + } + } + ], + "baseModel": { + "$ref": "464" + }, + "properties": [ + { + "$id": "891", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "The resource-specific properties for this resource.", + "type": { + "$id": "892", + "kind": "model", + "name": "SAPVirtualInstanceProperties", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstanceProperties", + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "893", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "894", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstanceProperties.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstance.properties", + "serializationOptions": { + "json": { + "name": "properties" + } + }, + "isHttpMetadata": false + }, + { + "$id": "895", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the SAPVirtualInstance", + "type": { + "$id": "896", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstance.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": true + } + ] + }, + { + "$ref": "892" + }, + { + "$id": "897", + "kind": "model", + "name": "SAPAvailabilityZoneDetailsRequest", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPAvailabilityZoneDetailsRequest", + "usage": "Input,Json", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "898", + "kind": "property", + "name": "preferredAvailabilityZone", + "serializedName": "preferredAvailabilityZone", + "doc": "The preferred availability zone", + "type": { + "$id": "899", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPAvailabilityZoneDetailsRequest.preferredAvailabilityZone", "serializationOptions": { "json": { - "name": "properties" + "name": "preferredAvailabilityZone" } }, "isHttpMetadata": false - }, + } + ] + }, + { + "$id": "900", + "kind": "model", + "name": "SAPAvailabilityZoneDetailsResult", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPAvailabilityZoneDetailsResult", + "usage": "Output,Json", + "decorators": [ { - "$id": "839", + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "901", "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the Joo", + "name": "recommendedAvailabilityZonePair", + "serializedName": "recommendedAvailabilityZonePair", + "doc": "The recommended availability zone pair", "type": { - "$id": "840", + "$id": "902", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "optional": false, - "readOnly": true, + "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.Joo.name", + "crossLanguageDefinitionId": "MgmtTypeSpec.SAPAvailabilityZoneDetailsResult.recommendedAvailabilityZonePair", "serializationOptions": { "json": { - "name": "name" + "name": "recommendedAvailabilityZonePair" } }, - "isHttpMetadata": true + "isHttpMetadata": false } ] }, { - "$ref": "836" - }, - { - "$id": "841", + "$id": "903", "kind": "model", - "name": "SAPVirtualInstance", + "name": "ZooRecommendation", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstance", - "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", - "doc": "Define the Virtual Instance for SAP solutions resource.", + "crossLanguageDefinitionId": "MgmtTypeSpec.ZooRecommendation", + "usage": "Output,Json", "decorators": [ { "name": "Azure.ResourceManager.@armProviderNamespace", "arguments": {} - }, + } + ], + "properties": [ { - "name": "Azure.ResourceManager.Private.@armResourceInternal", - "arguments": {} + "$id": "904", + "kind": "property", + "name": "recommendedValue", + "serializedName": "recommendedValue", + "doc": "The recommended value", + "type": { + "$id": "905", + "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 }, { - "name": "Azure.ClientGenerator.Core.@resourceSchema", - "arguments": { - "resourceIdPattern": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/sapVirtualInstances/{sapVirtualInstanceName}", - "resourceType": "MgmtTypeSpec/sapVirtualInstances", - "methods": [ + "$id": "906", + "kind": "property", + "name": "reason", + "serializedName": "reason", + "doc": "The reason for the recommendation", + "type": { + "$id": "907", + "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": "908", + "kind": "client", + "name": "MgmtTypeSpecClient", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "methods": [ + { + "$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": "842", - "methodId": "MgmtTypeSpec.SAPVirtualInstances.get", - "kind": "Get", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/sapVirtualInstances/{sapVirtualInstanceName}", - "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/sapVirtualInstances/{sapVirtualInstanceName}" + "$id": "911", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "912", + "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", + "readOnly": false + }, + { + "$id": "914", + "kind": "path", + "name": "subscriptionId", + "serializedName": "subscriptionId", + "doc": "The ID of the target subscription. The value must be an UUID.", + "type": { + "$id": "915", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "916", + "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.previewActions.subscriptionId" + }, + { + "$id": "917", + "kind": "path", + "name": "location", + "serializedName": "location", + "type": { + "$id": "918", + "kind": "string", + "name": "azureLocation", + "crossLanguageDefinitionId": "Azure.Core.azureLocation", + "baseType": { + "$id": "919", + "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.previewActions.location" + }, + { + "$id": "920", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "69" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.contentType" + }, + { + "$id": "921", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "71" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.accept" }, { - "$id": "843", - "methodId": "MgmtTypeSpec.SAPVirtualInstances.create", - "kind": "Create", - "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/sapVirtualInstances/{sapVirtualInstanceName}", - "operationScope": "ResourceGroup", - "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/sapVirtualInstances/{sapVirtualInstanceName}" + "$id": "922", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "The request body", + "type": { + "$ref": "297" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.body" } ], - "resourceScope": "ResourceGroup", - "resourceName": "SAPVirtualInstance" - } - } - ], - "baseModel": { - "$ref": "430" - }, - "properties": [ - { - "$id": "844", - "kind": "property", - "name": "properties", - "serializedName": "properties", - "doc": "The resource-specific properties for this resource.", - "type": { - "$id": "845", - "kind": "model", - "name": "SAPVirtualInstanceProperties", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstanceProperties", - "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", - "decorators": [ + "responses": [ { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "297" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] } ], - "properties": [ - { - "$id": "846", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "847", + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/previewActions", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions", + "decorators": [] + }, + "parameters": [ + { + "$id": "923", + "kind": "method", + "name": "location", + "serializedName": "location", + "type": { + "$id": "924", + "kind": "string", + "name": "azureLocation", + "crossLanguageDefinitionId": "Azure.Core.azureLocation", + "baseType": { + "$id": "925", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstanceProperties.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstance.properties", - "serializationOptions": { - "json": { - "name": "properties" - } - }, - "isHttpMetadata": false - }, - { - "$id": "848", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the SAPVirtualInstance", - "type": { - "$id": "849", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstance.name", - "serializationOptions": { - "json": { - "name": "name" + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.location", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "926", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "The request body", + "type": { + "$ref": "297" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "927", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "69" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "928", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "71" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.accept", + "readOnly": false, + "access": "public", + "decorators": [] } - }, - "isHttpMetadata": true - } - ] - }, - { - "$ref": "845" - }, - { - "$id": "850", - "kind": "model", - "name": "SAPAvailabilityZoneDetailsRequest", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPAvailabilityZoneDetailsRequest", - "usage": "Input,Json", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [ - { - "$id": "851", - "kind": "property", - "name": "preferredAvailabilityZone", - "serializedName": "preferredAvailabilityZone", - "doc": "The preferred availability zone", - "type": { - "$id": "852", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPAvailabilityZoneDetailsRequest.preferredAvailabilityZone", - "serializationOptions": { - "json": { - "name": "preferredAvailabilityZone" + ], + "response": { + "type": { + "$ref": "297" } }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "853", - "kind": "model", - "name": "SAPAvailabilityZoneDetailsResult", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPAvailabilityZoneDetailsResult", - "usage": "Output,Json", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions" } ], - "properties": [ + "parameters": [ { - "$id": "854", - "kind": "property", - "name": "recommendedAvailabilityZonePair", - "serializedName": "recommendedAvailabilityZonePair", - "doc": "The recommended availability zone pair", + "$id": "929", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", "type": { - "$id": "855", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "930", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" }, + "isApiVersion": false, "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.SAPAvailabilityZoneDetailsResult.recommendedAvailabilityZonePair", - "serializationOptions": { - "json": { - "name": "recommendedAvailabilityZonePair" - } + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "931", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://management.azure.com" }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "856", - "kind": "model", - "name": "ZooRecommendation", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "crossLanguageDefinitionId": "MgmtTypeSpec.ZooRecommendation", - "usage": "Output,Json", - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - } - ], - "properties": [ + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" + }, { - "$id": "857", - "kind": "property", - "name": "recommendedValue", - "serializedName": "recommendedValue", - "doc": "The recommended value", + "$id": "932", + "kind": "method", + "name": "apiVersion", + "serializedName": "apiVersion", + "doc": "The API version to use for this operation.", "type": { - "$id": "858", + "$id": "933", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, + "location": "", + "isApiVersion": true, + "defaultValue": { + "type": { + "$id": "934", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.apiVersion", "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.ZooRecommendation.recommendedValue", - "serializationOptions": { - "json": { - "name": "recommendedValue" - } - }, - "isHttpMetadata": false + "access": "public", + "decorators": [] }, { - "$id": "859", - "kind": "property", - "name": "reason", - "serializedName": "reason", - "doc": "The reason for the recommendation", + "$id": "935", + "kind": "method", + "name": "subscriptionId", + "serializedName": "subscriptionId", + "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "860", + "$id": "936", "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "937", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, "decorators": [] }, + "location": "", + "isApiVersion": false, "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.subscriptionId", "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.ZooRecommendation.reason", - "serializationOptions": { - "json": { - "name": "reason" + "access": "public", + "decorators": [] + } + ], + "initializedBy": 1, + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + }, + { + "name": "Azure.ClientGenerator.Core.@nonResourceMethodSchema", + "arguments": { + "nonResourceMethods": [ + { + "methodId": "MgmtTypeSpec.previewActions", + "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/previewActions", + "operationScope": "Subscription" + }, + { + "methodId": "Azure.ResourceManager.Operations.list", + "operationPath": "/providers/MgmtTypeSpec/operations", + "operationScope": "Tenant" + }, + { + "methodId": "MgmtTypeSpec.PrivateLinks.startFailedServerlessRuntime", + "operationPath": "/", + "operationScope": "Tenant" + }, + { + "methodId": "MgmtTypeSpec.NetworkProviderActions.queryNetworkSiblingSet", + "operationPath": "/{provider}", + "operationScope": "Tenant" + }, + { + "methodId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails", + "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/sapVirtualInstanceMetadata/default/getAvailabilityZoneDetails", + "operationScope": "Subscription" + } + ] + } + } + ], + "crossLanguageDefinitionId": "MgmtTypeSpec", + "apiVersions": [ + "2024-05-01" + ], + "children": [ + { + "$id": "938", + "kind": "client", + "name": "Operations", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "methods": [ + { + "$id": "939", + "kind": "paging", + "name": "list", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "List the operations for the provider", + "operation": { + "$id": "940", + "name": "list", + "resourceName": "Operations", + "doc": "List the operations for the provider", + "accessibility": "public", + "parameters": [ + { + "$id": "941", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "942", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "943", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.Operations.list.apiVersion", + "readOnly": false + }, + { + "$id": "944", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "73" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.Operations.list.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "320" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/providers/MgmtTypeSpec/operations", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Azure.ResourceManager.Operations.list", + "decorators": [] + }, + "parameters": [ + { + "$id": "945", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "73" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Azure.ResourceManager.Operations.list.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "322" + }, + "resultSegments": [ + "value" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Azure.ResourceManager.Operations.list", + "pagingMetadata": { + "itemPropertySegments": [ + "value" + ], + "nextLink": { + "responseSegments": [ + "nextLink" + ], + "responseLocation": "Body" + }, + "pageSizeParameterSegments": [] + } } - }, - "isHttpMetadata": false - } - ] - } - ], - "clients": [ - { - "$id": "861", - "kind": "client", - "name": "MgmtTypeSpecClient", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "methods": [ - { - "$id": "862", - "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": "863", - "name": "previewActions", - "resourceName": "MgmtTypeSpec", - "doc": "Runs the input conditions against input object metadata properties and designates matched objects in response.", - "accessibility": "public", - "parameters": [ - { - "$id": "864", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", + "parameters": [ + { + "$id": "946", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "947", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { "type": { - "$id": "865", + "$id": "948", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "isApiVersion": true, - "explode": false, - "defaultValue": { + "value": "https://management.azure.com" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" + }, + { + "$ref": "932" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.Operations", + "apiVersions": [ + "2024-05-01" + ], + "parent": { + "$ref": "908" + } + }, + { + "$id": "949", + "kind": "client", + "name": "PrivateLinks", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "methods": [ + { + "$id": "950", + "kind": "paging", + "name": "GetAllPrivateLinkResources", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "list private links on the given resource", + "operation": { + "$id": "951", + "name": "GetAllPrivateLinkResources", + "resourceName": "PrivateLink", + "doc": "list private links on the given resource", + "accessibility": "public", + "parameters": [ + { + "$id": "952", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "953", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "954", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.apiVersion", + "readOnly": false + }, + { + "$id": "955", + "kind": "path", + "name": "subscriptionId", + "serializedName": "subscriptionId", + "doc": "The ID of the target subscription. The value must be an UUID.", + "type": { + "$id": "956", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "957", + "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.PrivateLinks.listByMongoCluster.subscriptionId" + }, + { + "$id": "958", + "kind": "path", + "name": "resourceGroupName", + "serializedName": "resourceGroupName", + "doc": "The name of the resource group. The name is case insensitive.", + "type": { + "$id": "959", + "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.PrivateLinks.listByMongoCluster.resourceGroupName" + }, + { + "$id": "960", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "75" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "343" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/privateLinkResources", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster", + "decorators": [ + { + "name": "Azure.ResourceManager.@armResourceList", + "arguments": {} + } + ] + }, + "parameters": [ + { + "$id": "961", + "kind": "method", + "name": "resourceGroupName", + "serializedName": "resourceGroupName", + "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "866", + "$id": "962", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "2024-05-01" + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.resourceGroupName", + "readOnly": false, + "access": "public", + "decorators": [] }, - "optional": false, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.apiVersion", - "readOnly": false + { + "$id": "963", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "75" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "345" + }, + "resultSegments": [ + "value" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster", + "pagingMetadata": { + "itemPropertySegments": [ + "value" + ], + "nextLink": { + "responseSegments": [ + "nextLink" + ], + "responseLocation": "Body" + }, + "pageSizeParameterSegments": [] + } + }, + { + "$id": "964", + "kind": "lro", + "name": "start", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "Starts the SAP Application Server Instance.", + "operation": { + "$id": "965", + "name": "start", + "resourceName": "PrivateLinks", + "doc": "Starts the SAP Application Server Instance.", + "accessibility": "public", + "parameters": [ + { + "$id": "966", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "967", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "968", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.apiVersion", + "readOnly": false + }, + { + "$id": "969", + "kind": "path", + "name": "subscriptionId", + "serializedName": "subscriptionId", + "doc": "The ID of the target subscription. The value must be an UUID.", + "type": { + "$id": "970", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "971", + "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.PrivateLinks.start.subscriptionId" + }, + { + "$id": "972", + "kind": "path", + "name": "resourceGroupName", + "serializedName": "resourceGroupName", + "doc": "The name of the resource group. The name is case insensitive.", + "type": { + "$id": "973", + "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.PrivateLinks.start.resourceGroupName" + }, + { + "$id": "974", + "kind": "path", + "name": "privateLinkResourceName", + "serializedName": "privateLinkResourceName", + "doc": "The name of the private link associated with the Azure resource.", + "type": { + "$id": "975", + "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.PrivateLinks.start.privateLinkResourceName" + }, + { + "$id": "976", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "77" + }, + "isApiVersion": false, + "optional": true, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.contentType" + }, + { + "$id": "977", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "79" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.accept" + }, + { + "$id": "978", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "SAP Application server instance start request body.", + "type": { + "$ref": "406" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": true, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.start.Parameter.body.anonymous.body" + } + ], + "responses": [ + { + "statusCodes": [ + 202 + ], + "headers": [ + { + "name": "location", + "nameInResponse": "Location", + "doc": "The Location header contains the URL where the status of the long running operation can be checked.", + "type": { + "$id": "979", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "name": "retryAfter", + "nameInResponse": "Retry-After", + "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": { + "$id": "980", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + } + ], + "isErrorResponse": false + }, + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "409" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/privateLinkResources/{privateLinkResourceName}/start", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start", + "decorators": [ + { + "name": "Azure.ResourceManager.@armResourceAction", + "arguments": {} + } + ] }, - { - "$id": "867", - "kind": "path", - "name": "subscriptionId", - "serializedName": "subscriptionId", - "doc": "The ID of the target subscription. The value must be an UUID.", - "type": { - "$id": "868", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "869", + "parameters": [ + { + "$id": "981", + "kind": "method", + "name": "resourceGroupName", + "serializedName": "resourceGroupName", + "doc": "The name of the resource group. The name is case insensitive.", + "type": { + "$id": "982", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.resourceGroupName", + "readOnly": false, + "access": "public", "decorators": [] }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Client", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.subscriptionId" - }, - { - "$id": "870", - "kind": "path", - "name": "location", - "serializedName": "location", - "type": { - "$id": "871", - "kind": "string", - "name": "azureLocation", - "crossLanguageDefinitionId": "Azure.Core.azureLocation", - "baseType": { - "$id": "872", + { + "$id": "983", + "kind": "method", + "name": "privateLinkResourceName", + "serializedName": "privateLinkResourceName", + "doc": "The name of the private link associated with the Azure resource.", + "type": { + "$id": "984", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.privateLinkResourceName", + "readOnly": false, + "access": "public", "decorators": [] }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.location" - }, - { - "$id": "873", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "58" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.contentType" - }, - { - "$id": "874", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "60" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.accept" - }, - { - "$id": "875", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "The request body", - "type": { - "$ref": "274" + { + "$id": "985", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "The content of the action request", + "type": { + "$ref": "404" + }, + "location": "", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.body", + "readOnly": false, + "access": "public", + "decorators": [] }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "274" + { + "$id": "986", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "987", + "kind": "enum", + "name": "startContentType", + "crossLanguageDefinitionId": "", + "valueType": { + "$id": "988", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "989", + "kind": "enumvalue", + "name": "application/json", + "value": "application/json", + "valueType": { + "$id": "990", + "kind": "string", + "decorators": [], + "doc": "A sequence of textual characters.", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "enumType": { + "$ref": "987" + }, + "decorators": [] + } + ], + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "isFixed": false, + "isFlags": false, + "usage": "None", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.contentType", + "readOnly": false, + "access": "public", + "decorators": [] }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/previewActions", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions", - "decorators": [] - }, - "parameters": [ - { - "$id": "876", - "kind": "method", - "name": "location", - "serializedName": "location", - "type": { - "$id": "877", - "kind": "string", - "name": "azureLocation", - "crossLanguageDefinitionId": "Azure.Core.azureLocation", - "baseType": { - "$id": "878", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + { + "$id": "991", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "81" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.accept", + "readOnly": false, + "access": "public", "decorators": [] - }, - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.location", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "879", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "The request body", - "type": { - "$ref": "274" + } + ], + "response": { + "type": { + "$ref": "409" + } }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.body", - "readOnly": false, - "access": "public", - "decorators": [] + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start", + "lroMetadata": { + "finalStateVia": 1, + "finalResponse": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "409" + } + } + } }, { - "$id": "880", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "58" + "$id": "992", + "kind": "basic", + "name": "startFailedServerlessRuntime", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "Starts a failed runtime resource", + "operation": { + "$id": "993", + "name": "startFailedServerlessRuntime", + "resourceName": "PrivateLinks", + "doc": "Starts a failed runtime resource", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.startFailedServerlessRuntime", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.startFailedServerlessRuntime" + } + ], + "parameters": [ { - "$id": "881", - "kind": "method", - "name": "accept", - "serializedName": "Accept", + "$id": "994", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", "type": { - "$ref": "60" + "$id": "995", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", "isApiVersion": false, "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "274" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions" - } - ], - "parameters": [ - { - "$id": "882", - "kind": "endpoint", - "name": "endpoint", - "serializedName": "endpoint", - "doc": "Service host", - "type": { - "$id": "883", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "isApiVersion": false, - "optional": false, - "scope": "Client", - "isEndpoint": true, - "defaultValue": { - "type": { - "$id": "884", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "https://management.azure.com" - }, - "serverUrlTemplate": "{endpoint}", - "skipUrlEncoding": false, - "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" - }, - { - "$id": "885", - "kind": "method", - "name": "apiVersion", - "serializedName": "apiVersion", - "doc": "The API version to use for this operation.", - "type": { - "$id": "886", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "", - "isApiVersion": true, - "defaultValue": { - "type": { - "$id": "887", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2024-05-01" - }, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.apiVersion", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "888", - "kind": "method", - "name": "subscriptionId", - "serializedName": "subscriptionId", - "doc": "The ID of the target subscription. The value must be an UUID.", - "type": { - "$id": "889", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "890", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.subscriptionId", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "initializedBy": 1, - "decorators": [ - { - "name": "Azure.ResourceManager.@armProviderNamespace", - "arguments": {} - }, - { - "name": "Azure.ClientGenerator.Core.@nonResourceMethodSchema", - "arguments": { - "nonResourceMethods": [ - { - "methodId": "MgmtTypeSpec.previewActions", - "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/previewActions", - "operationScope": "Subscription" - }, - { - "methodId": "Azure.ResourceManager.Operations.list", - "operationPath": "/providers/MgmtTypeSpec/operations", - "operationScope": "Tenant" - }, - { - "methodId": "MgmtTypeSpec.PrivateLinks.startFailedServerlessRuntime", - "operationPath": "/", - "operationScope": "Tenant" - }, - { - "methodId": "MgmtTypeSpec.NetworkProviderActions.queryNetworkSiblingSet", - "operationPath": "/{provider}", - "operationScope": "Tenant" - }, - { - "methodId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails", - "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/sapVirtualInstanceMetadata/default/getAvailabilityZoneDetails", - "operationScope": "Subscription" - } - ] + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "996", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://management.azure.com" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" + }, + { + "$ref": "932" + }, + { + "$ref": "935" + } + ], + "initializedBy": 0, + "decorators": [ + { + "name": "Azure.ResourceManager.@armResourceOperations", + "arguments": {} + } + ], + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks", + "apiVersions": [ + "2024-05-01" + ], + "parent": { + "$ref": "908" } - } - ], - "crossLanguageDefinitionId": "MgmtTypeSpec", - "apiVersions": [ - "2024-05-01" - ], - "children": [ + }, { - "$id": "891", + "$id": "997", "kind": "client", - "name": "Operations", + "name": "PrivateEndpointConnections", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "892", - "kind": "paging", - "name": "list", + "$id": "998", + "kind": "basic", + "name": "get", "accessibility": "public", "apiVersions": [ "2024-05-01" ], - "doc": "List the operations for the provider", + "doc": "Gets the specified private endpoint connection associated with the storage sync service.", "operation": { - "$id": "893", - "name": "list", - "resourceName": "Operations", - "doc": "List the operations for the provider", + "$id": "999", + "name": "get", + "resourceName": "PrivateEndpointConnection", + "doc": "Gets the specified private endpoint connection associated with the storage sync service.", "accessibility": "public", "parameters": [ { - "$id": "894", + "$id": "1000", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "895", + "$id": "1001", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11471,7 +13034,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "896", + "$id": "1002", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11481,16 +13044,119 @@ "optional": false, "scope": "Client", "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.Operations.list.apiVersion", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.get.apiVersion", "readOnly": false }, { - "$id": "897", + "$id": "1003", + "kind": "path", + "name": "subscriptionId", + "serializedName": "subscriptionId", + "doc": "The ID of the target subscription. The value must be an UUID.", + "type": { + "$id": "1004", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1005", + "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.PrivateEndpointConnections.get.subscriptionId" + }, + { + "$id": "1006", + "kind": "path", + "name": "resourceGroupName", + "serializedName": "resourceGroupName", + "doc": "The name of the resource group. The name is case insensitive.", + "type": { + "$id": "1007", + "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.PrivateEndpointConnections.get.resourceGroupName" + }, + { + "$id": "1008", + "kind": "path", + "name": "storageSyncServiceName", + "serializedName": "storageSyncServiceName", + "doc": "The name of the StorageSyncService", + "type": { + "$id": "1009", + "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.PrivateEndpointConnections.get.storageSyncServiceName" + }, + { + "$id": "1010", + "kind": "path", + "name": "privateEndpointConnectionName", + "serializedName": "privateEndpointConnectionName", + "doc": "The name of the private endpoint connection associated with the Azure resource.", + "type": { + "$id": "1011", + "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.PrivateEndpointConnections.get.privateEndpointConnectionName" + }, + { + "$id": "1012", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "62" + "$ref": "83" }, "isApiVersion": false, "optional": false, @@ -11498,7 +13164,7 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.ResourceManager.Operations.list.accept" + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.get.accept" } ], "responses": [ @@ -11507,7 +13173,7 @@ 200 ], "bodyType": { - "$ref": "297" + "$ref": "446" }, "headers": [], "isErrorResponse": false, @@ -11518,27 +13184,93 @@ ], "httpMethod": "GET", "uri": "{endpoint}", - "path": "/providers/MgmtTypeSpec/operations", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.ResourceManager.Operations.list", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.get", "decorators": [] }, "parameters": [ { - "$id": "898", + "$id": "1013", + "kind": "method", + "name": "resourceGroupName", + "serializedName": "resourceGroupName", + "doc": "The name of the resource group. The name is case insensitive.", + "type": { + "$id": "1014", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.get.resourceGroupName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1015", + "kind": "method", + "name": "storageSyncServiceName", + "serializedName": "storageSyncServiceName", + "doc": "The name of the StorageSyncService", + "type": { + "$id": "1016", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.get.storageSyncServiceName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1017", + "kind": "method", + "name": "privateEndpointConnectionName", + "serializedName": "privateEndpointConnectionName", + "doc": "The name of the private endpoint connection associated with the Azure resource.", + "type": { + "$id": "1018", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.get.privateEndpointConnectionName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1019", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "62" + "$ref": "83" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Azure.ResourceManager.Operations.list.accept", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.get.accept", "readOnly": false, "access": "public", "decorators": [] @@ -11546,105 +13278,38 @@ ], "response": { "type": { - "$ref": "299" - }, - "resultSegments": [ - "value" - ] + "$ref": "446" + } }, "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Azure.ResourceManager.Operations.list", - "pagingMetadata": { - "itemPropertySegments": [ - "value" - ], - "nextLink": { - "responseSegments": [ - "nextLink" - ], - "responseLocation": "Body" - }, - "pageSizeParameterSegments": [] - } - } - ], - "parameters": [ - { - "$id": "899", - "kind": "endpoint", - "name": "endpoint", - "serializedName": "endpoint", - "doc": "Service host", - "type": { - "$id": "900", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "isApiVersion": false, - "optional": false, - "scope": "Client", - "isEndpoint": true, - "defaultValue": { - "type": { - "$id": "901", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "https://management.azure.com" - }, - "serverUrlTemplate": "{endpoint}", - "skipUrlEncoding": false, - "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" - }, - { - "$ref": "885" - } - ], - "initializedBy": 0, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.Operations", - "apiVersions": [ - "2024-05-01" - ], - "parent": { - "$ref": "861" - } - }, - { - "$id": "902", - "kind": "client", - "name": "PrivateLinks", - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "methods": [ + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.get" + }, { - "$id": "903", - "kind": "paging", - "name": "GetAllPrivateLinkResources", + "$id": "1020", + "kind": "lro", + "name": "create", "accessibility": "public", "apiVersions": [ "2024-05-01" ], - "doc": "list private links on the given resource", + "doc": "Update the state of specified private endpoint connection associated with the storage sync service.", "operation": { - "$id": "904", - "name": "GetAllPrivateLinkResources", - "resourceName": "PrivateLink", - "doc": "list private links on the given resource", + "$id": "1021", + "name": "create", + "resourceName": "PrivateEndpointConnection", + "doc": "Update the state of specified private endpoint connection associated with the storage sync service.", "accessibility": "public", "parameters": [ { - "$id": "905", + "$id": "1022", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "906", + "$id": "1023", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11654,7 +13319,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "907", + "$id": "1024", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11664,22 +13329,22 @@ "optional": false, "scope": "Client", "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.apiVersion", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.apiVersion", "readOnly": false }, { - "$id": "908", + "$id": "1025", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "909", + "$id": "1026", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "910", + "$id": "1027", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11696,16 +13361,16 @@ "scope": "Client", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.subscriptionId" + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.subscriptionId" }, { - "$id": "911", + "$id": "1028", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "912", + "$id": "1029", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11720,15 +13385,80 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.resourceGroupName" + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.resourceGroupName" }, { - "$id": "913", + "$id": "1030", + "kind": "path", + "name": "storageSyncServiceName", + "serializedName": "storageSyncServiceName", + "doc": "The name of the StorageSyncService", + "type": { + "$id": "1031", + "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.PrivateEndpointConnections.create.storageSyncServiceName" + }, + { + "$id": "1032", + "kind": "path", + "name": "privateEndpointConnectionName", + "serializedName": "privateEndpointConnectionName", + "doc": "The name of the private endpoint connection associated with the Azure resource.", + "type": { + "$id": "1033", + "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.PrivateEndpointConnections.create.privateEndpointConnectionName" + }, + { + "$id": "1034", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "85" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.contentType" + }, + { + "$id": "1035", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "64" + "$ref": "87" }, "isApiVersion": false, "optional": false, @@ -11736,7 +13466,27 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.accept" + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.accept" + }, + { + "$id": "1036", + "kind": "body", + "name": "resource", + "serializedName": "resource", + "doc": "Resource create parameters.", + "type": { + "$ref": "446" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.resource" } ], "responses": [ @@ -11745,38 +13495,118 @@ 200 ], "bodyType": { - "$ref": "320" + "$ref": "446" }, "headers": [], "isErrorResponse": false, "contentTypes": [ "application/json" ] + }, + { + "statusCodes": [ + 202 + ], + "headers": [ + { + "name": "azureAsyncOperation", + "nameInResponse": "Azure-AsyncOperation", + "doc": "A link to the status monitor", + "type": { + "$id": "1037", + "kind": "url", + "name": "ResourceLocation", + "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", + "baseType": { + "$id": "1038", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "decorators": [] + } + }, + { + "name": "location", + "nameInResponse": "Location", + "doc": "The Location header contains the URL where the status of the long running operation can be checked.", + "type": { + "$id": "1039", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "name": "retryAfter", + "nameInResponse": "Retry-After", + "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": { + "$id": "1040", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + }, + { + "name": "correlationRequestId", + "nameInResponse": "x-ms-correlation-request-id", + "doc": "correlation request id", + "type": { + "$id": "1041", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "name": "requestId", + "nameInResponse": "x-ms-request-id", + "doc": "Request id", + "type": { + "$id": "1042", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "isErrorResponse": false } ], - "httpMethod": "GET", + "httpMethod": "PUT", "uri": "{endpoint}", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/privateLinkResources", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "requestMediaTypes": [ + "application/json" + ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create", "decorators": [ { - "name": "Azure.ResourceManager.@armResourceList", - "arguments": {} + "name": "Azure.Core.@useFinalStateVia", + "arguments": { + "finalState": "location" + } } ] }, "parameters": [ { - "$id": "914", + "$id": "1043", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "915", + "$id": "1044", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11786,24 +13616,104 @@ "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.resourceGroupName", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.resourceGroupName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1045", + "kind": "method", + "name": "storageSyncServiceName", + "serializedName": "storageSyncServiceName", + "doc": "The name of the StorageSyncService", + "type": { + "$id": "1046", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.storageSyncServiceName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1047", + "kind": "method", + "name": "privateEndpointConnectionName", + "serializedName": "privateEndpointConnectionName", + "doc": "The name of the private endpoint connection associated with the Azure resource.", + "type": { + "$id": "1048", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.privateEndpointConnectionName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1049", + "kind": "method", + "name": "resource", + "serializedName": "resource", + "doc": "Resource create parameters.", + "type": { + "$ref": "446" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.resource", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1050", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "89" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.contentType", "readOnly": false, "access": "public", "decorators": [] }, { - "$id": "916", + "$id": "1051", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "64" + "$ref": "91" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.accept", + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create.accept", "readOnly": false, "access": "public", "decorators": [] @@ -11811,53 +13721,109 @@ ], "response": { "type": { - "$ref": "322" - }, - "resultSegments": [ - "value" - ] + "$ref": "446" + } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster", - "pagingMetadata": { - "itemPropertySegments": [ - "value" - ], - "nextLink": { - "responseSegments": [ - "nextLink" + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections.create", + "lroMetadata": { + "finalStateVia": 1, + "finalResponse": { + "statusCodes": [ + 200 ], - "responseLocation": "Body" + "bodyType": { + "$ref": "446" + } + } + } + } + ], + "parameters": [ + { + "$id": "1052", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "1053", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "1054", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" }, - "pageSizeParameterSegments": [] - } + "value": "https://management.azure.com" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$id": "917", - "kind": "lro", - "name": "start", + "$ref": "932" + }, + { + "$ref": "935" + } + ], + "initializedBy": 0, + "decorators": [ + { + "name": "Azure.ResourceManager.@armResourceOperations", + "arguments": {} + } + ], + "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateEndpointConnections", + "apiVersions": [ + "2024-05-01" + ], + "parent": { + "$ref": "908" + } + }, + { + "$id": "1055", + "kind": "client", + "name": "StorageSyncServices", + "namespace": "Azure.Generator.MgmtTypeSpec.Tests", + "methods": [ + { + "$id": "1056", + "kind": "basic", + "name": "get", "accessibility": "public", "apiVersions": [ "2024-05-01" ], - "doc": "Starts the SAP Application Server Instance.", + "doc": "Gets the specified storage sync service.", "operation": { - "$id": "918", - "name": "start", - "resourceName": "PrivateLinks", - "doc": "Starts the SAP Application Server Instance.", + "$id": "1057", + "name": "get", + "resourceName": "StorageSyncService", + "doc": "Gets the specified storage sync service.", "accessibility": "public", "parameters": [ { - "$id": "919", + "$id": "1058", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "920", + "$id": "1059", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11867,7 +13833,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "921", + "$id": "1060", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11877,22 +13843,22 @@ "optional": false, "scope": "Client", "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.apiVersion", + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices.get.apiVersion", "readOnly": false }, { - "$id": "922", + "$id": "1061", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "923", + "$id": "1062", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "924", + "$id": "1063", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11909,16 +13875,16 @@ "scope": "Client", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.subscriptionId" + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices.get.subscriptionId" }, { - "$id": "925", + "$id": "1064", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "926", + "$id": "1065", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11933,16 +13899,16 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.resourceGroupName" + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices.get.resourceGroupName" }, { - "$id": "927", + "$id": "1066", "kind": "path", - "name": "privateLinkResourceName", - "serializedName": "privateLinkResourceName", - "doc": "The name of the private link associated with the Azure resource.", + "name": "storageSyncServiceName", + "serializedName": "storageSyncServiceName", + "doc": "The name of the StorageSyncService", "type": { - "$id": "928", + "$id": "1067", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11957,32 +13923,15 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.privateLinkResourceName" - }, - { - "$id": "929", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "66" - }, - "isApiVersion": false, - "optional": true, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.contentType" + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices.get.storageSyncServiceName" }, { - "$id": "930", + "$id": "1068", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "68" + "$ref": "93" }, "isApiVersion": false, "optional": false, @@ -11990,68 +13939,16 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.accept" - }, - { - "$id": "931", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "SAP Application server instance start request body.", - "type": { - "$ref": "383" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": true, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.start.Parameter.body.anonymous.body" + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices.get.accept" } ], "responses": [ - { - "statusCodes": [ - 202 - ], - "headers": [ - { - "name": "location", - "nameInResponse": "Location", - "doc": "The Location header contains the URL where the status of the long running operation can be checked.", - "type": { - "$id": "932", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - } - }, - { - "name": "retryAfter", - "nameInResponse": "Retry-After", - "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", - "type": { - "$id": "933", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - } - } - ], - "isErrorResponse": false - }, { "statusCodes": [ 200 ], "bodyType": { - "$ref": "386" + "$ref": "462" }, "headers": [], "isErrorResponse": false, @@ -12060,32 +13957,29 @@ ] } ], - "httpMethod": "POST", + "httpMethod": "GET", "uri": "{endpoint}", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/privateLinkResources/{privateLinkResourceName}/start", - "requestMediaTypes": [ - "application/json" - ], + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/storageSyncServices/{storageSyncServiceName}", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start", + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices.get", "decorators": [ { - "name": "Azure.ResourceManager.@armResourceAction", + "name": "Azure.ResourceManager.@armResourceRead", "arguments": {} } ] }, "parameters": [ { - "$id": "934", + "$id": "1069", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "935", + "$id": "1070", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12095,19 +13989,19 @@ "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.resourceGroupName", + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices.get.resourceGroupName", "readOnly": false, "access": "public", "decorators": [] }, { - "$id": "936", + "$id": "1071", "kind": "method", - "name": "privateLinkResourceName", - "serializedName": "privateLinkResourceName", - "doc": "The name of the private link associated with the Azure resource.", + "name": "storageSyncServiceName", + "serializedName": "storageSyncServiceName", + "doc": "The name of the StorageSyncService", "type": { - "$id": "937", + "$id": "1072", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12117,95 +14011,24 @@ "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.privateLinkResourceName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "938", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "The content of the action request", - "type": { - "$ref": "381" - }, - "location": "", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "939", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "940", - "kind": "enum", - "name": "startContentType", - "crossLanguageDefinitionId": "", - "valueType": { - "$id": "941", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "942", - "kind": "enumvalue", - "name": "application/json", - "value": "application/json", - "valueType": { - "$id": "943", - "kind": "string", - "decorators": [], - "doc": "A sequence of textual characters.", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "enumType": { - "$ref": "940" - }, - "decorators": [] - } - ], - "namespace": "Azure.Generator.MgmtTypeSpec.Tests", - "isFixed": false, - "isFlags": false, - "usage": "None", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.contentType", + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices.get.storageSyncServiceName", "readOnly": false, "access": "public", "decorators": [] }, { - "$id": "944", + "$id": "1073", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "70" + "$ref": "93" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.accept", + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices.get.accept", "readOnly": false, "access": "public", "decorators": [] @@ -12213,76 +14036,24 @@ ], "response": { "type": { - "$ref": "386" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start", - "lroMetadata": { - "finalStateVia": 1, - "finalResponse": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "386" - } + "$ref": "462" } - } - }, - { - "$id": "945", - "kind": "basic", - "name": "startFailedServerlessRuntime", - "accessibility": "public", - "apiVersions": [ - "2024-05-01" - ], - "doc": "Starts a failed runtime resource", - "operation": { - "$id": "946", - "name": "startFailedServerlessRuntime", - "resourceName": "PrivateLinks", - "doc": "Starts a failed runtime resource", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.startFailedServerlessRuntime", - "decorators": [] }, - "parameters": [], - "response": {}, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.startFailedServerlessRuntime" + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices.get" } ], "parameters": [ { - "$id": "947", + "$id": "1074", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "948", + "$id": "1075", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -12293,7 +14064,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "949", + "$id": "1076", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12306,10 +14077,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -12319,22 +14090,22 @@ "arguments": {} } ], - "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks", + "crossLanguageDefinitionId": "MgmtTypeSpec.StorageSyncServices", "apiVersions": [ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "950", + "$id": "1077", "kind": "client", "name": "Foos", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "951", + "$id": "1078", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -12343,20 +14114,20 @@ ], "doc": "Create a Foo", "operation": { - "$id": "952", + "$id": "1079", "name": "createOrUpdate", "resourceName": "Foo", "doc": "Create a Foo", "accessibility": "public", "parameters": [ { - "$id": "953", + "$id": "1080", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "954", + "$id": "1081", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12366,7 +14137,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "955", + "$id": "1082", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12380,18 +14151,18 @@ "readOnly": false }, { - "$id": "956", + "$id": "1083", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "957", + "$id": "1084", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "958", + "$id": "1085", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12411,13 +14182,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.subscriptionId" }, { - "$id": "959", + "$id": "1086", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "960", + "$id": "1087", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12435,13 +14206,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.resourceGroupName" }, { - "$id": "961", + "$id": "1088", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "962", + "$id": "1089", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12459,13 +14230,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.fooName" }, { - "$id": "963", + "$id": "1090", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "72" + "$ref": "95" }, "isApiVersion": false, "optional": false, @@ -12476,12 +14247,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.contentType" }, { - "$id": "964", + "$id": "1091", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "74" + "$ref": "97" }, "isApiVersion": false, "optional": false, @@ -12492,13 +14263,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.accept" }, { - "$id": "965", + "$id": "1092", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "423" + "$ref": "479" }, "isApiVersion": false, "contentTypes": [ @@ -12518,7 +14289,7 @@ 200 ], "bodyType": { - "$ref": "423" + "$ref": "479" }, "headers": [], "isErrorResponse": false, @@ -12531,7 +14302,7 @@ 201 ], "bodyType": { - "$ref": "423" + "$ref": "479" }, "headers": [ { @@ -12539,7 +14310,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "966", + "$id": "1093", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12551,7 +14322,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "967", + "$id": "1094", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -12584,13 +14355,13 @@ }, "parameters": [ { - "$id": "968", + "$id": "1095", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "969", + "$id": "1096", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12606,13 +14377,13 @@ "decorators": [] }, { - "$id": "970", + "$id": "1097", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "971", + "$id": "1098", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12628,13 +14399,13 @@ "decorators": [] }, { - "$id": "972", + "$id": "1099", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "423" + "$ref": "479" }, "location": "Body", "isApiVersion": false, @@ -12646,13 +14417,13 @@ "decorators": [] }, { - "$id": "973", + "$id": "1100", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "76" + "$ref": "99" }, "location": "Header", "isApiVersion": false, @@ -12664,12 +14435,12 @@ "decorators": [] }, { - "$id": "974", + "$id": "1101", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "78" + "$ref": "101" }, "location": "Header", "isApiVersion": false, @@ -12683,7 +14454,7 @@ ], "response": { "type": { - "$ref": "423" + "$ref": "479" } }, "isOverride": false, @@ -12697,13 +14468,13 @@ 200 ], "bodyType": { - "$ref": "423" + "$ref": "479" } } } }, { - "$id": "975", + "$id": "1102", "kind": "basic", "name": "get", "accessibility": "public", @@ -12712,20 +14483,20 @@ ], "doc": "Get a Foo", "operation": { - "$id": "976", + "$id": "1103", "name": "get", "resourceName": "Foo", "doc": "Get a Foo", "accessibility": "public", "parameters": [ { - "$id": "977", + "$id": "1104", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "978", + "$id": "1105", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12735,7 +14506,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "979", + "$id": "1106", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12749,18 +14520,18 @@ "readOnly": false }, { - "$id": "980", + "$id": "1107", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "981", + "$id": "1108", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "982", + "$id": "1109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12780,13 +14551,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get.subscriptionId" }, { - "$id": "983", + "$id": "1110", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "984", + "$id": "1111", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12804,13 +14575,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get.resourceGroupName" }, { - "$id": "985", + "$id": "1112", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "986", + "$id": "1113", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12828,12 +14599,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get.fooName" }, { - "$id": "987", + "$id": "1114", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "80" + "$ref": "103" }, "isApiVersion": false, "optional": false, @@ -12850,7 +14621,7 @@ 200 ], "bodyType": { - "$ref": "423" + "$ref": "479" }, "headers": [], "isErrorResponse": false, @@ -12875,13 +14646,13 @@ }, "parameters": [ { - "$id": "988", + "$id": "1115", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "989", + "$id": "1116", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12897,13 +14668,13 @@ "decorators": [] }, { - "$id": "990", + "$id": "1117", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "991", + "$id": "1118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12919,12 +14690,12 @@ "decorators": [] }, { - "$id": "992", + "$id": "1119", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "80" + "$ref": "103" }, "location": "Header", "isApiVersion": false, @@ -12938,7 +14709,7 @@ ], "response": { "type": { - "$ref": "423" + "$ref": "479" } }, "isOverride": false, @@ -12947,7 +14718,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get" }, { - "$id": "993", + "$id": "1120", "kind": "lro", "name": "delete", "accessibility": "public", @@ -12956,20 +14727,20 @@ ], "doc": "Delete a Foo", "operation": { - "$id": "994", + "$id": "1121", "name": "delete", "resourceName": "Foo", "doc": "Delete a Foo", "accessibility": "public", "parameters": [ { - "$id": "995", + "$id": "1122", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "996", + "$id": "1123", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12979,7 +14750,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "997", + "$id": "1124", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12993,18 +14764,18 @@ "readOnly": false }, { - "$id": "998", + "$id": "1125", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "999", + "$id": "1126", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1000", + "$id": "1127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13024,13 +14795,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.delete.subscriptionId" }, { - "$id": "1001", + "$id": "1128", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1002", + "$id": "1129", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13048,13 +14819,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.delete.resourceGroupName" }, { - "$id": "1003", + "$id": "1130", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1004", + "$id": "1131", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13083,7 +14854,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1005", + "$id": "1132", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13095,7 +14866,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1006", + "$id": "1133", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -13129,13 +14900,13 @@ }, "parameters": [ { - "$id": "1007", + "$id": "1134", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1008", + "$id": "1135", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13151,13 +14922,13 @@ "decorators": [] }, { - "$id": "1009", + "$id": "1136", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1010", + "$id": "1137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13188,7 +14959,7 @@ } }, { - "$id": "1011", + "$id": "1138", "kind": "paging", "name": "list", "accessibility": "public", @@ -13197,20 +14968,20 @@ ], "doc": "List Foo resources by resource group", "operation": { - "$id": "1012", + "$id": "1139", "name": "list", "resourceName": "Foo", "doc": "List Foo resources by resource group", "accessibility": "public", "parameters": [ { - "$id": "1013", + "$id": "1140", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1014", + "$id": "1141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13220,7 +14991,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1015", + "$id": "1142", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13234,18 +15005,18 @@ "readOnly": false }, { - "$id": "1016", + "$id": "1143", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1017", + "$id": "1144", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1018", + "$id": "1145", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13265,13 +15036,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.list.subscriptionId" }, { - "$id": "1019", + "$id": "1146", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1020", + "$id": "1147", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13289,12 +15060,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.list.resourceGroupName" }, { - "$id": "1021", + "$id": "1148", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "82" + "$ref": "105" }, "isApiVersion": false, "optional": false, @@ -13311,7 +15082,7 @@ 200 ], "bodyType": { - "$ref": "482" + "$ref": "530" }, "headers": [], "isErrorResponse": false, @@ -13336,13 +15107,13 @@ }, "parameters": [ { - "$id": "1022", + "$id": "1149", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1023", + "$id": "1150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13358,12 +15129,12 @@ "decorators": [] }, { - "$id": "1024", + "$id": "1151", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "82" + "$ref": "105" }, "location": "Header", "isApiVersion": false, @@ -13377,7 +15148,7 @@ ], "response": { "type": { - "$ref": "484" + "$ref": "532" }, "resultSegments": [ "value" @@ -13401,7 +15172,7 @@ } }, { - "$id": "1025", + "$id": "1152", "kind": "paging", "name": "listBySubscription", "accessibility": "public", @@ -13410,20 +15181,20 @@ ], "doc": "List Foo resources by subscription ID", "operation": { - "$id": "1026", + "$id": "1153", "name": "listBySubscription", "resourceName": "Foo", "doc": "List Foo resources by subscription ID", "accessibility": "public", "parameters": [ { - "$id": "1027", + "$id": "1154", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1028", + "$id": "1155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13433,7 +15204,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1029", + "$id": "1156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13447,18 +15218,18 @@ "readOnly": false }, { - "$id": "1030", + "$id": "1157", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1031", + "$id": "1158", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1032", + "$id": "1159", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13478,12 +15249,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.listBySubscription.subscriptionId" }, { - "$id": "1033", + "$id": "1160", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "84" + "$ref": "107" }, "isApiVersion": false, "optional": false, @@ -13500,7 +15271,7 @@ 200 ], "bodyType": { - "$ref": "482" + "$ref": "530" }, "headers": [], "isErrorResponse": false, @@ -13525,12 +15296,12 @@ }, "parameters": [ { - "$id": "1034", + "$id": "1161", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "84" + "$ref": "107" }, "location": "Header", "isApiVersion": false, @@ -13544,7 +15315,7 @@ ], "response": { "type": { - "$ref": "484" + "$ref": "532" }, "resultSegments": [ "value" @@ -13568,7 +15339,7 @@ } }, { - "$id": "1035", + "$id": "1162", "kind": "lro", "name": "fooAction", "accessibility": "public", @@ -13577,20 +15348,20 @@ ], "doc": "A long-running resource action.", "operation": { - "$id": "1036", + "$id": "1163", "name": "fooAction", "resourceName": "Foos", "doc": "A long-running resource action.", "accessibility": "public", "parameters": [ { - "$id": "1037", + "$id": "1164", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1038", + "$id": "1165", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13600,7 +15371,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1039", + "$id": "1166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13614,18 +15385,18 @@ "readOnly": false }, { - "$id": "1040", + "$id": "1167", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1041", + "$id": "1168", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1042", + "$id": "1169", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13645,13 +15416,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.subscriptionId" }, { - "$id": "1043", + "$id": "1170", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1044", + "$id": "1171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13669,13 +15440,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.resourceGroupName" }, { - "$id": "1045", + "$id": "1172", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1046", + "$id": "1173", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13693,13 +15464,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.fooName" }, { - "$id": "1047", + "$id": "1174", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "86" + "$ref": "109" }, "isApiVersion": false, "optional": false, @@ -13710,12 +15481,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.contentType" }, { - "$id": "1048", + "$id": "1175", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "88" + "$ref": "111" }, "isApiVersion": false, "optional": false, @@ -13726,13 +15497,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.accept" }, { - "$id": "1049", + "$id": "1176", "kind": "body", "name": "body", "serializedName": "body", "doc": "The content of the action request", "type": { - "$ref": "488" + "$ref": "536" }, "isApiVersion": false, "contentTypes": [ @@ -13757,7 +15528,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1050", + "$id": "1177", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13769,7 +15540,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1051", + "$id": "1178", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13781,7 +15552,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1052", + "$id": "1179", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -13796,7 +15567,7 @@ 200 ], "bodyType": { - "$ref": "491" + "$ref": "539" }, "headers": [], "isErrorResponse": false, @@ -13824,13 +15595,13 @@ }, "parameters": [ { - "$id": "1053", + "$id": "1180", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1054", + "$id": "1181", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13846,13 +15617,13 @@ "decorators": [] }, { - "$id": "1055", + "$id": "1182", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1056", + "$id": "1183", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13868,13 +15639,13 @@ "decorators": [] }, { - "$id": "1057", + "$id": "1184", "kind": "method", "name": "body", "serializedName": "body", "doc": "The content of the action request", "type": { - "$ref": "488" + "$ref": "536" }, "location": "Body", "isApiVersion": false, @@ -13886,13 +15657,13 @@ "decorators": [] }, { - "$id": "1058", + "$id": "1185", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "90" + "$ref": "113" }, "location": "Header", "isApiVersion": false, @@ -13904,12 +15675,12 @@ "decorators": [] }, { - "$id": "1059", + "$id": "1186", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "92" + "$ref": "115" }, "location": "Header", "isApiVersion": false, @@ -13923,7 +15694,7 @@ ], "response": { "type": { - "$ref": "491" + "$ref": "539" } }, "isOverride": false, @@ -13937,7 +15708,7 @@ 200 ], "bodyType": { - "$ref": "491" + "$ref": "539" } } } @@ -13945,13 +15716,13 @@ ], "parameters": [ { - "$id": "1060", + "$id": "1187", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1061", + "$id": "1188", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -13962,7 +15733,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1062", + "$id": "1189", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13975,10 +15746,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -13993,17 +15764,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1063", + "$id": "1190", "kind": "client", "name": "FooSettingsOperations", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1064", + "$id": "1191", "kind": "basic", "name": "get", "accessibility": "public", @@ -14012,20 +15783,20 @@ ], "doc": "Get a FooSettings", "operation": { - "$id": "1065", + "$id": "1192", "name": "get", "resourceName": "FooSettings", "doc": "Get a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "1066", + "$id": "1193", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1067", + "$id": "1194", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14035,7 +15806,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1068", + "$id": "1195", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14049,18 +15820,18 @@ "readOnly": false }, { - "$id": "1069", + "$id": "1196", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1070", + "$id": "1197", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1071", + "$id": "1198", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14080,13 +15851,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.get.subscriptionId" }, { - "$id": "1072", + "$id": "1199", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1073", + "$id": "1200", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14104,12 +15875,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.get.resourceGroupName" }, { - "$id": "1074", + "$id": "1201", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "94" + "$ref": "117" }, "isApiVersion": false, "optional": false, @@ -14126,7 +15897,7 @@ 200 ], "bodyType": { - "$ref": "495" + "$ref": "543" }, "headers": [], "isErrorResponse": false, @@ -14151,13 +15922,13 @@ }, "parameters": [ { - "$id": "1075", + "$id": "1202", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1076", + "$id": "1203", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14173,12 +15944,12 @@ "decorators": [] }, { - "$id": "1077", + "$id": "1204", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "94" + "$ref": "117" }, "location": "Header", "isApiVersion": false, @@ -14192,7 +15963,7 @@ ], "response": { "type": { - "$ref": "495" + "$ref": "543" } }, "isOverride": false, @@ -14201,7 +15972,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.get" }, { - "$id": "1078", + "$id": "1205", "kind": "basic", "name": "createOrUpdate", "accessibility": "public", @@ -14210,20 +15981,20 @@ ], "doc": "Create a FooSettings", "operation": { - "$id": "1079", + "$id": "1206", "name": "createOrUpdate", "resourceName": "FooSettings", "doc": "Create a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "1080", + "$id": "1207", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1081", + "$id": "1208", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14233,7 +16004,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1082", + "$id": "1209", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14247,18 +16018,18 @@ "readOnly": false }, { - "$id": "1083", + "$id": "1210", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1084", + "$id": "1211", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1085", + "$id": "1212", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14278,13 +16049,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.subscriptionId" }, { - "$id": "1086", + "$id": "1213", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1087", + "$id": "1214", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14302,13 +16073,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.resourceGroupName" }, { - "$id": "1088", + "$id": "1215", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "96" + "$ref": "119" }, "isApiVersion": false, "optional": false, @@ -14319,12 +16090,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.contentType" }, { - "$id": "1089", + "$id": "1216", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "98" + "$ref": "121" }, "isApiVersion": false, "optional": false, @@ -14335,13 +16106,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.accept" }, { - "$id": "1090", + "$id": "1217", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "495" + "$ref": "543" }, "isApiVersion": false, "contentTypes": [ @@ -14361,7 +16132,7 @@ 200 ], "bodyType": { - "$ref": "495" + "$ref": "543" }, "headers": [], "isErrorResponse": false, @@ -14374,7 +16145,7 @@ 201 ], "bodyType": { - "$ref": "495" + "$ref": "543" }, "headers": [], "isErrorResponse": false, @@ -14402,13 +16173,13 @@ }, "parameters": [ { - "$id": "1091", + "$id": "1218", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1092", + "$id": "1219", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14424,13 +16195,13 @@ "decorators": [] }, { - "$id": "1093", + "$id": "1220", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "495" + "$ref": "543" }, "location": "Body", "isApiVersion": false, @@ -14442,13 +16213,13 @@ "decorators": [] }, { - "$id": "1094", + "$id": "1221", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "96" + "$ref": "119" }, "location": "Header", "isApiVersion": false, @@ -14460,12 +16231,12 @@ "decorators": [] }, { - "$id": "1095", + "$id": "1222", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "98" + "$ref": "121" }, "location": "Header", "isApiVersion": false, @@ -14479,7 +16250,7 @@ ], "response": { "type": { - "$ref": "495" + "$ref": "543" } }, "isOverride": false, @@ -14488,7 +16259,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate" }, { - "$id": "1096", + "$id": "1223", "kind": "basic", "name": "update", "accessibility": "public", @@ -14497,20 +16268,20 @@ ], "doc": "Update a FooSettings", "operation": { - "$id": "1097", + "$id": "1224", "name": "update", "resourceName": "FooSettings", "doc": "Update a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "1098", + "$id": "1225", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1099", + "$id": "1226", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14520,7 +16291,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1100", + "$id": "1227", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14534,18 +16305,18 @@ "readOnly": false }, { - "$id": "1101", + "$id": "1228", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1102", + "$id": "1229", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1103", + "$id": "1230", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14565,13 +16336,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.subscriptionId" }, { - "$id": "1104", + "$id": "1231", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1105", + "$id": "1232", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14589,13 +16360,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.resourceGroupName" }, { - "$id": "1106", + "$id": "1233", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "100" + "$ref": "123" }, "isApiVersion": false, "optional": false, @@ -14606,12 +16377,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.contentType" }, { - "$id": "1107", + "$id": "1234", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "102" + "$ref": "125" }, "isApiVersion": false, "optional": false, @@ -14622,13 +16393,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.accept" }, { - "$id": "1108", + "$id": "1235", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "546" + "$ref": "594" }, "isApiVersion": false, "contentTypes": [ @@ -14648,7 +16419,7 @@ 200 ], "bodyType": { - "$ref": "495" + "$ref": "543" }, "headers": [], "isErrorResponse": false, @@ -14676,13 +16447,13 @@ }, "parameters": [ { - "$id": "1109", + "$id": "1236", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1110", + "$id": "1237", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14698,13 +16469,13 @@ "decorators": [] }, { - "$id": "1111", + "$id": "1238", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "546" + "$ref": "594" }, "location": "Body", "isApiVersion": false, @@ -14716,13 +16487,13 @@ "decorators": [] }, { - "$id": "1112", + "$id": "1239", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "100" + "$ref": "123" }, "location": "Header", "isApiVersion": false, @@ -14734,12 +16505,12 @@ "decorators": [] }, { - "$id": "1113", + "$id": "1240", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "102" + "$ref": "125" }, "location": "Header", "isApiVersion": false, @@ -14753,7 +16524,7 @@ ], "response": { "type": { - "$ref": "495" + "$ref": "543" } }, "isOverride": false, @@ -14762,7 +16533,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update" }, { - "$id": "1114", + "$id": "1241", "kind": "basic", "name": "delete", "accessibility": "public", @@ -14771,20 +16542,20 @@ ], "doc": "Delete a FooSettings", "operation": { - "$id": "1115", + "$id": "1242", "name": "delete", "resourceName": "FooSettings", "doc": "Delete a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "1116", + "$id": "1243", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1117", + "$id": "1244", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14794,7 +16565,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1118", + "$id": "1245", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14808,18 +16579,18 @@ "readOnly": false }, { - "$id": "1119", + "$id": "1246", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1120", + "$id": "1247", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1121", + "$id": "1248", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14839,13 +16610,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.delete.subscriptionId" }, { - "$id": "1122", + "$id": "1249", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1123", + "$id": "1250", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14895,13 +16666,13 @@ }, "parameters": [ { - "$id": "1124", + "$id": "1251", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1125", + "$id": "1252", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14926,13 +16697,13 @@ ], "parameters": [ { - "$id": "1126", + "$id": "1253", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1127", + "$id": "1254", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -14943,7 +16714,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1128", + "$id": "1255", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14956,10 +16727,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -14974,17 +16745,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1129", + "$id": "1256", "kind": "client", "name": "Bars", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1130", + "$id": "1257", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -14993,20 +16764,20 @@ ], "doc": "Create a Bar", "operation": { - "$id": "1131", + "$id": "1258", "name": "createOrUpdate", "resourceName": "Bar", "doc": "Create a Bar", "accessibility": "public", "parameters": [ { - "$id": "1132", + "$id": "1259", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1133", + "$id": "1260", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15016,7 +16787,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1134", + "$id": "1261", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -15030,18 +16801,18 @@ "readOnly": false }, { - "$id": "1135", + "$id": "1262", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1136", + "$id": "1263", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1137", + "$id": "1264", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15061,13 +16832,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.subscriptionId" }, { - "$id": "1138", + "$id": "1265", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1139", + "$id": "1266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15085,13 +16856,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.resourceGroupName" }, { - "$id": "1140", + "$id": "1267", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1141", + "$id": "1268", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15109,13 +16880,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.fooName" }, { - "$id": "1142", + "$id": "1269", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1143", + "$id": "1270", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15133,13 +16904,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.barName" }, { - "$id": "1144", + "$id": "1271", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "104" + "$ref": "127" }, "isApiVersion": false, "optional": false, @@ -15150,12 +16921,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.contentType" }, { - "$id": "1145", + "$id": "1272", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "106" + "$ref": "129" }, "isApiVersion": false, "optional": false, @@ -15166,13 +16937,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.accept" }, { - "$id": "1146", + "$id": "1273", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "553" + "$ref": "601" }, "isApiVersion": false, "contentTypes": [ @@ -15192,7 +16963,7 @@ 200 ], "bodyType": { - "$ref": "553" + "$ref": "601" }, "headers": [], "isErrorResponse": false, @@ -15205,7 +16976,7 @@ 201 ], "bodyType": { - "$ref": "553" + "$ref": "601" }, "headers": [ { @@ -15213,7 +16984,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1147", + "$id": "1274", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15225,7 +16996,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1148", + "$id": "1275", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -15258,13 +17029,13 @@ }, "parameters": [ { - "$id": "1149", + "$id": "1276", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1150", + "$id": "1277", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15280,13 +17051,13 @@ "decorators": [] }, { - "$id": "1151", + "$id": "1278", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1152", + "$id": "1279", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15302,13 +17073,13 @@ "decorators": [] }, { - "$id": "1153", + "$id": "1280", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1154", + "$id": "1281", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15324,13 +17095,13 @@ "decorators": [] }, { - "$id": "1155", + "$id": "1282", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "553" + "$ref": "601" }, "location": "Body", "isApiVersion": false, @@ -15342,13 +17113,13 @@ "decorators": [] }, { - "$id": "1156", + "$id": "1283", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "108" + "$ref": "131" }, "location": "Header", "isApiVersion": false, @@ -15360,12 +17131,12 @@ "decorators": [] }, { - "$id": "1157", + "$id": "1284", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "110" + "$ref": "133" }, "location": "Header", "isApiVersion": false, @@ -15379,7 +17150,7 @@ ], "response": { "type": { - "$ref": "553" + "$ref": "601" } }, "isOverride": false, @@ -15393,13 +17164,13 @@ 200 ], "bodyType": { - "$ref": "553" + "$ref": "601" } } } }, { - "$id": "1158", + "$id": "1285", "kind": "lro", "name": "delete", "accessibility": "public", @@ -15408,20 +17179,20 @@ ], "doc": "Delete a Bar", "operation": { - "$id": "1159", + "$id": "1286", "name": "delete", "resourceName": "Bar", "doc": "Delete a Bar", "accessibility": "public", "parameters": [ { - "$id": "1160", + "$id": "1287", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1161", + "$id": "1288", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15431,7 +17202,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1162", + "$id": "1289", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -15445,18 +17216,18 @@ "readOnly": false }, { - "$id": "1163", + "$id": "1290", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1164", + "$id": "1291", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1165", + "$id": "1292", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15476,13 +17247,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.delete.subscriptionId" }, { - "$id": "1166", + "$id": "1293", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1167", + "$id": "1294", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15500,13 +17271,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.delete.resourceGroupName" }, { - "$id": "1168", + "$id": "1295", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1169", + "$id": "1296", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15524,13 +17295,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.delete.fooName" }, { - "$id": "1170", + "$id": "1297", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1171", + "$id": "1298", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15559,7 +17330,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1172", + "$id": "1299", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15571,7 +17342,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1173", + "$id": "1300", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -15605,13 +17376,13 @@ }, "parameters": [ { - "$id": "1174", + "$id": "1301", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1175", + "$id": "1302", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15627,13 +17398,13 @@ "decorators": [] }, { - "$id": "1176", + "$id": "1303", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1177", + "$id": "1304", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15649,13 +17420,13 @@ "decorators": [] }, { - "$id": "1178", + "$id": "1305", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1179", + "$id": "1306", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15686,7 +17457,7 @@ } }, { - "$id": "1180", + "$id": "1307", "kind": "paging", "name": "list", "accessibility": "public", @@ -15695,20 +17466,20 @@ ], "doc": "List Bar resources by Foo", "operation": { - "$id": "1181", + "$id": "1308", "name": "list", "resourceName": "Bar", "doc": "List Bar resources by Foo", "accessibility": "public", "parameters": [ { - "$id": "1182", + "$id": "1309", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1183", + "$id": "1310", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15718,7 +17489,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1184", + "$id": "1311", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -15732,18 +17503,18 @@ "readOnly": false }, { - "$id": "1185", + "$id": "1312", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1186", + "$id": "1313", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1187", + "$id": "1314", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15763,13 +17534,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.list.subscriptionId" }, { - "$id": "1188", + "$id": "1315", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1189", + "$id": "1316", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15787,13 +17558,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.list.resourceGroupName" }, { - "$id": "1190", + "$id": "1317", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1191", + "$id": "1318", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15811,12 +17582,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.list.fooName" }, { - "$id": "1192", + "$id": "1319", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "112" + "$ref": "135" }, "isApiVersion": false, "optional": false, @@ -15833,7 +17604,7 @@ 200 ], "bodyType": { - "$ref": "574" + "$ref": "622" }, "headers": [], "isErrorResponse": false, @@ -15858,13 +17629,13 @@ }, "parameters": [ { - "$id": "1193", + "$id": "1320", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1194", + "$id": "1321", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15880,13 +17651,13 @@ "decorators": [] }, { - "$id": "1195", + "$id": "1322", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1196", + "$id": "1323", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15902,12 +17673,12 @@ "decorators": [] }, { - "$id": "1197", + "$id": "1324", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "112" + "$ref": "135" }, "location": "Header", "isApiVersion": false, @@ -15921,7 +17692,7 @@ ], "response": { "type": { - "$ref": "576" + "$ref": "624" }, "resultSegments": [ "value" @@ -15947,13 +17718,13 @@ ], "parameters": [ { - "$id": "1198", + "$id": "1325", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1199", + "$id": "1326", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -15964,7 +17735,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1200", + "$id": "1327", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -15977,10 +17748,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -15995,17 +17766,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1201", + "$id": "1328", "kind": "client", "name": "BarSettingsOperations", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1202", + "$id": "1329", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -16014,20 +17785,20 @@ ], "doc": "Create a BarSettingsResource", "operation": { - "$id": "1203", + "$id": "1330", "name": "createOrUpdate", "resourceName": "BarSettingsResource", "doc": "Create a BarSettingsResource", "accessibility": "public", "parameters": [ { - "$id": "1204", + "$id": "1331", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1205", + "$id": "1332", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16037,7 +17808,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1206", + "$id": "1333", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16051,18 +17822,18 @@ "readOnly": false }, { - "$id": "1207", + "$id": "1334", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1208", + "$id": "1335", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1209", + "$id": "1336", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16082,13 +17853,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.subscriptionId" }, { - "$id": "1210", + "$id": "1337", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1211", + "$id": "1338", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16106,13 +17877,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.resourceGroupName" }, { - "$id": "1212", + "$id": "1339", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1213", + "$id": "1340", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16130,13 +17901,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.fooName" }, { - "$id": "1214", + "$id": "1341", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1215", + "$id": "1342", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16154,13 +17925,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.barName" }, { - "$id": "1216", + "$id": "1343", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "114" + "$ref": "137" }, "isApiVersion": false, "optional": false, @@ -16171,12 +17942,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.contentType" }, { - "$id": "1217", + "$id": "1344", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "116" + "$ref": "139" }, "isApiVersion": false, "optional": false, @@ -16187,13 +17958,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.accept" }, { - "$id": "1218", + "$id": "1345", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "580" + "$ref": "628" }, "isApiVersion": false, "contentTypes": [ @@ -16213,7 +17984,7 @@ 200 ], "bodyType": { - "$ref": "580" + "$ref": "628" }, "headers": [], "isErrorResponse": false, @@ -16226,7 +17997,7 @@ 201 ], "bodyType": { - "$ref": "580" + "$ref": "628" }, "headers": [ { @@ -16234,7 +18005,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1219", + "$id": "1346", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16246,7 +18017,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1220", + "$id": "1347", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -16279,13 +18050,13 @@ }, "parameters": [ { - "$id": "1221", + "$id": "1348", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1222", + "$id": "1349", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16301,13 +18072,13 @@ "decorators": [] }, { - "$id": "1223", + "$id": "1350", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1224", + "$id": "1351", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16323,13 +18094,13 @@ "decorators": [] }, { - "$id": "1225", + "$id": "1352", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1226", + "$id": "1353", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16345,13 +18116,13 @@ "decorators": [] }, { - "$id": "1227", + "$id": "1354", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "580" + "$ref": "628" }, "location": "Body", "isApiVersion": false, @@ -16363,13 +18134,13 @@ "decorators": [] }, { - "$id": "1228", + "$id": "1355", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "118" + "$ref": "141" }, "location": "Header", "isApiVersion": false, @@ -16381,12 +18152,12 @@ "decorators": [] }, { - "$id": "1229", + "$id": "1356", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "120" + "$ref": "143" }, "location": "Header", "isApiVersion": false, @@ -16400,7 +18171,7 @@ ], "response": { "type": { - "$ref": "580" + "$ref": "628" } }, "isOverride": false, @@ -16414,13 +18185,13 @@ 200 ], "bodyType": { - "$ref": "580" + "$ref": "628" } } } }, { - "$id": "1230", + "$id": "1357", "kind": "basic", "name": "get", "accessibility": "public", @@ -16429,20 +18200,20 @@ ], "doc": "Get a BarSettingsResource", "operation": { - "$id": "1231", + "$id": "1358", "name": "get", "resourceName": "BarSettingsResource", "doc": "Get a BarSettingsResource", "accessibility": "public", "parameters": [ { - "$id": "1232", + "$id": "1359", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1233", + "$id": "1360", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16452,7 +18223,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1234", + "$id": "1361", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16466,18 +18237,18 @@ "readOnly": false }, { - "$id": "1235", + "$id": "1362", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1236", + "$id": "1363", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1237", + "$id": "1364", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16497,13 +18268,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.subscriptionId" }, { - "$id": "1238", + "$id": "1365", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1239", + "$id": "1366", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16521,13 +18292,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.resourceGroupName" }, { - "$id": "1240", + "$id": "1367", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1241", + "$id": "1368", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16545,13 +18316,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.fooName" }, { - "$id": "1242", + "$id": "1369", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1243", + "$id": "1370", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16569,12 +18340,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.barName" }, { - "$id": "1244", + "$id": "1371", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "122" + "$ref": "145" }, "isApiVersion": false, "optional": false, @@ -16591,7 +18362,7 @@ 200 ], "bodyType": { - "$ref": "580" + "$ref": "628" }, "headers": [], "isErrorResponse": false, @@ -16616,13 +18387,13 @@ }, "parameters": [ { - "$id": "1245", + "$id": "1372", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1246", + "$id": "1373", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16638,13 +18409,13 @@ "decorators": [] }, { - "$id": "1247", + "$id": "1374", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1248", + "$id": "1375", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16660,13 +18431,13 @@ "decorators": [] }, { - "$id": "1249", + "$id": "1376", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1250", + "$id": "1377", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16682,12 +18453,12 @@ "decorators": [] }, { - "$id": "1251", + "$id": "1378", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "122" + "$ref": "145" }, "location": "Header", "isApiVersion": false, @@ -16701,7 +18472,7 @@ ], "response": { "type": { - "$ref": "580" + "$ref": "628" } }, "isOverride": false, @@ -16712,13 +18483,13 @@ ], "parameters": [ { - "$id": "1252", + "$id": "1379", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1253", + "$id": "1380", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -16729,7 +18500,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1254", + "$id": "1381", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16742,10 +18513,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -16760,17 +18531,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1255", + "$id": "1382", "kind": "client", "name": "BarQuotaOperations", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1256", + "$id": "1383", "kind": "basic", "name": "get", "accessibility": "public", @@ -16779,20 +18550,20 @@ ], "doc": "Get a BarQuotaResource", "operation": { - "$id": "1257", + "$id": "1384", "name": "get", "resourceName": "BarQuotaResource", "doc": "Get a BarQuotaResource", "accessibility": "public", "parameters": [ { - "$id": "1258", + "$id": "1385", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1259", + "$id": "1386", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16802,7 +18573,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1260", + "$id": "1387", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16816,18 +18587,18 @@ "readOnly": false }, { - "$id": "1261", + "$id": "1388", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1262", + "$id": "1389", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1263", + "$id": "1390", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16847,13 +18618,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.subscriptionId" }, { - "$id": "1264", + "$id": "1391", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1265", + "$id": "1392", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16871,13 +18642,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.resourceGroupName" }, { - "$id": "1266", + "$id": "1393", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1267", + "$id": "1394", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16895,13 +18666,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.fooName" }, { - "$id": "1268", + "$id": "1395", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1269", + "$id": "1396", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16919,13 +18690,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.barName" }, { - "$id": "1270", + "$id": "1397", "kind": "path", "name": "barQuotaResourceName", "serializedName": "barQuotaResourceName", "doc": "The name of the BarQuotaResource", "type": { - "$ref": "49" + "$ref": "60" }, "isApiVersion": false, "explode": false, @@ -16939,12 +18710,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.barQuotaResourceName" }, { - "$id": "1271", + "$id": "1398", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "124" + "$ref": "147" }, "isApiVersion": false, "optional": false, @@ -16961,7 +18732,7 @@ 200 ], "bodyType": { - "$ref": "615" + "$ref": "663" }, "headers": [], "isErrorResponse": false, @@ -16986,13 +18757,13 @@ }, "parameters": [ { - "$id": "1272", + "$id": "1399", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1273", + "$id": "1400", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17008,13 +18779,13 @@ "decorators": [] }, { - "$id": "1274", + "$id": "1401", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1275", + "$id": "1402", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17030,13 +18801,13 @@ "decorators": [] }, { - "$id": "1276", + "$id": "1403", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1277", + "$id": "1404", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17052,13 +18823,13 @@ "decorators": [] }, { - "$id": "1278", + "$id": "1405", "kind": "method", "name": "barQuotaResourceName", "serializedName": "barQuotaResourceName", "doc": "The name of the BarQuotaResource", "type": { - "$ref": "49" + "$ref": "60" }, "location": "Path", "isApiVersion": false, @@ -17070,12 +18841,12 @@ "decorators": [] }, { - "$id": "1279", + "$id": "1406", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "124" + "$ref": "147" }, "location": "Header", "isApiVersion": false, @@ -17089,7 +18860,7 @@ ], "response": { "type": { - "$ref": "615" + "$ref": "663" } }, "isOverride": false, @@ -17098,7 +18869,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get" }, { - "$id": "1280", + "$id": "1407", "kind": "lro", "name": "update", "accessibility": "public", @@ -17107,20 +18878,20 @@ ], "doc": "Update a BarQuotaResource", "operation": { - "$id": "1281", + "$id": "1408", "name": "update", "resourceName": "BarQuotaResource", "doc": "Update a BarQuotaResource", "accessibility": "public", "parameters": [ { - "$id": "1282", + "$id": "1409", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1283", + "$id": "1410", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17130,7 +18901,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1284", + "$id": "1411", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -17144,18 +18915,18 @@ "readOnly": false }, { - "$id": "1285", + "$id": "1412", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1286", + "$id": "1413", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1287", + "$id": "1414", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17175,13 +18946,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.subscriptionId" }, { - "$id": "1288", + "$id": "1415", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1289", + "$id": "1416", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17199,13 +18970,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.resourceGroupName" }, { - "$id": "1290", + "$id": "1417", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1291", + "$id": "1418", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17223,13 +18994,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.fooName" }, { - "$id": "1292", + "$id": "1419", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1293", + "$id": "1420", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17247,13 +19018,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.barName" }, { - "$id": "1294", + "$id": "1421", "kind": "path", "name": "barQuotaResourceName", "serializedName": "barQuotaResourceName", "doc": "The name of the BarQuotaResource", "type": { - "$ref": "49" + "$ref": "60" }, "isApiVersion": false, "explode": false, @@ -17267,13 +19038,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.barQuotaResourceName" }, { - "$id": "1295", + "$id": "1422", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "126" + "$ref": "149" }, "isApiVersion": false, "optional": false, @@ -17284,12 +19055,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.contentType" }, { - "$id": "1296", + "$id": "1423", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "128" + "$ref": "151" }, "isApiVersion": false, "optional": false, @@ -17300,13 +19071,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.accept" }, { - "$id": "1297", + "$id": "1424", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "615" + "$ref": "663" }, "isApiVersion": false, "contentTypes": [ @@ -17326,7 +19097,7 @@ 200 ], "bodyType": { - "$ref": "615" + "$ref": "663" }, "headers": [], "isErrorResponse": false, @@ -17344,7 +19115,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1298", + "$id": "1425", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17356,7 +19127,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1299", + "$id": "1426", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -17386,13 +19157,13 @@ }, "parameters": [ { - "$id": "1300", + "$id": "1427", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1301", + "$id": "1428", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17408,13 +19179,13 @@ "decorators": [] }, { - "$id": "1302", + "$id": "1429", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1303", + "$id": "1430", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17430,13 +19201,13 @@ "decorators": [] }, { - "$id": "1304", + "$id": "1431", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1305", + "$id": "1432", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17452,13 +19223,13 @@ "decorators": [] }, { - "$id": "1306", + "$id": "1433", "kind": "method", "name": "barQuotaResourceName", "serializedName": "barQuotaResourceName", "doc": "The name of the BarQuotaResource", "type": { - "$ref": "49" + "$ref": "60" }, "location": "Path", "isApiVersion": false, @@ -17470,13 +19241,13 @@ "decorators": [] }, { - "$id": "1307", + "$id": "1434", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "615" + "$ref": "663" }, "location": "Body", "isApiVersion": false, @@ -17488,13 +19259,13 @@ "decorators": [] }, { - "$id": "1308", + "$id": "1435", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "130" + "$ref": "153" }, "location": "Header", "isApiVersion": false, @@ -17506,12 +19277,12 @@ "decorators": [] }, { - "$id": "1309", + "$id": "1436", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "132" + "$ref": "155" }, "location": "Header", "isApiVersion": false, @@ -17525,7 +19296,7 @@ ], "response": { "type": { - "$ref": "615" + "$ref": "663" } }, "isOverride": false, @@ -17539,7 +19310,7 @@ 200 ], "bodyType": { - "$ref": "615" + "$ref": "663" } } } @@ -17547,13 +19318,13 @@ ], "parameters": [ { - "$id": "1310", + "$id": "1437", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1311", + "$id": "1438", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -17564,7 +19335,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1312", + "$id": "1439", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -17577,10 +19348,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -17595,17 +19366,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1313", + "$id": "1440", "kind": "client", "name": "Employees", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1314", + "$id": "1441", "kind": "paging", "name": "GetEmployees", "accessibility": "public", @@ -17614,20 +19385,20 @@ ], "doc": "List Employee resources by Bar", "operation": { - "$id": "1315", + "$id": "1442", "name": "GetEmployees", "resourceName": "Employee", "doc": "List Employee resources by Bar", "accessibility": "public", "parameters": [ { - "$id": "1316", + "$id": "1443", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1317", + "$id": "1444", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17637,7 +19408,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1318", + "$id": "1445", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -17651,18 +19422,18 @@ "readOnly": false }, { - "$id": "1319", + "$id": "1446", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1320", + "$id": "1447", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1321", + "$id": "1448", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17682,13 +19453,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Employees.listByParent.subscriptionId" }, { - "$id": "1322", + "$id": "1449", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1323", + "$id": "1450", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17706,13 +19477,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Employees.listByParent.resourceGroupName" }, { - "$id": "1324", + "$id": "1451", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1325", + "$id": "1452", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17730,13 +19501,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Employees.listByParent.fooName" }, { - "$id": "1326", + "$id": "1453", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1327", + "$id": "1454", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17754,12 +19525,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Employees.listByParent.barName" }, { - "$id": "1328", + "$id": "1455", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "134" + "$ref": "157" }, "isApiVersion": false, "optional": false, @@ -17776,7 +19547,7 @@ 200 ], "bodyType": { - "$ref": "620" + "$ref": "668" }, "headers": [], "isErrorResponse": false, @@ -17801,13 +19572,13 @@ }, "parameters": [ { - "$id": "1329", + "$id": "1456", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1330", + "$id": "1457", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17823,13 +19594,13 @@ "decorators": [] }, { - "$id": "1331", + "$id": "1458", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1332", + "$id": "1459", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17845,13 +19616,13 @@ "decorators": [] }, { - "$id": "1333", + "$id": "1460", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1334", + "$id": "1461", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17867,12 +19638,12 @@ "decorators": [] }, { - "$id": "1335", + "$id": "1462", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "134" + "$ref": "157" }, "location": "Header", "isApiVersion": false, @@ -17886,7 +19657,7 @@ ], "response": { "type": { - "$ref": "622" + "$ref": "670" }, "resultSegments": [ "value" @@ -17912,13 +19683,13 @@ ], "parameters": [ { - "$id": "1336", + "$id": "1463", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1337", + "$id": "1464", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -17929,7 +19700,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1338", + "$id": "1465", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -17942,10 +19713,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -17960,17 +19731,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1339", + "$id": "1466", "kind": "client", "name": "Bazs", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1340", + "$id": "1467", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -17979,20 +19750,20 @@ ], "doc": "Create a Baz", "operation": { - "$id": "1341", + "$id": "1468", "name": "createOrUpdate", "resourceName": "Baz", "doc": "Create a Baz", "accessibility": "public", "parameters": [ { - "$id": "1342", + "$id": "1469", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1343", + "$id": "1470", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18002,7 +19773,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1344", + "$id": "1471", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -18016,18 +19787,18 @@ "readOnly": false }, { - "$id": "1345", + "$id": "1472", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1346", + "$id": "1473", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1347", + "$id": "1474", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18047,13 +19818,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.subscriptionId" }, { - "$id": "1348", + "$id": "1475", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1349", + "$id": "1476", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18071,13 +19842,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.resourceGroupName" }, { - "$id": "1350", + "$id": "1477", "kind": "path", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1351", + "$id": "1478", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18095,13 +19866,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.bazName" }, { - "$id": "1352", + "$id": "1479", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "136" + "$ref": "159" }, "isApiVersion": false, "optional": false, @@ -18112,12 +19883,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.contentType" }, { - "$id": "1353", + "$id": "1480", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "138" + "$ref": "161" }, "isApiVersion": false, "optional": false, @@ -18128,13 +19899,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.accept" }, { - "$id": "1354", + "$id": "1481", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "635" + "$ref": "683" }, "isApiVersion": false, "contentTypes": [ @@ -18154,7 +19925,7 @@ 200 ], "bodyType": { - "$ref": "635" + "$ref": "683" }, "headers": [], "isErrorResponse": false, @@ -18167,7 +19938,7 @@ 201 ], "bodyType": { - "$ref": "635" + "$ref": "683" }, "headers": [ { @@ -18175,7 +19946,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1355", + "$id": "1482", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18187,7 +19958,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1356", + "$id": "1483", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -18220,13 +19991,13 @@ }, "parameters": [ { - "$id": "1357", + "$id": "1484", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1358", + "$id": "1485", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18242,13 +20013,13 @@ "decorators": [] }, { - "$id": "1359", + "$id": "1486", "kind": "method", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1360", + "$id": "1487", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18264,13 +20035,13 @@ "decorators": [] }, { - "$id": "1361", + "$id": "1488", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "635" + "$ref": "683" }, "location": "Body", "isApiVersion": false, @@ -18282,13 +20053,13 @@ "decorators": [] }, { - "$id": "1362", + "$id": "1489", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "140" + "$ref": "163" }, "location": "Header", "isApiVersion": false, @@ -18300,12 +20071,12 @@ "decorators": [] }, { - "$id": "1363", + "$id": "1490", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "142" + "$ref": "165" }, "location": "Header", "isApiVersion": false, @@ -18319,7 +20090,7 @@ ], "response": { "type": { - "$ref": "635" + "$ref": "683" } }, "isOverride": false, @@ -18333,13 +20104,13 @@ 200 ], "bodyType": { - "$ref": "635" + "$ref": "683" } } } }, { - "$id": "1364", + "$id": "1491", "kind": "basic", "name": "get", "accessibility": "public", @@ -18348,20 +20119,20 @@ ], "doc": "Get a Baz", "operation": { - "$id": "1365", + "$id": "1492", "name": "get", "resourceName": "Baz", "doc": "Get a Baz", "accessibility": "public", "parameters": [ { - "$id": "1366", + "$id": "1493", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1367", + "$id": "1494", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18371,7 +20142,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1368", + "$id": "1495", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -18385,18 +20156,18 @@ "readOnly": false }, { - "$id": "1369", + "$id": "1496", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1370", + "$id": "1497", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1371", + "$id": "1498", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18416,13 +20187,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get.subscriptionId" }, { - "$id": "1372", + "$id": "1499", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1373", + "$id": "1500", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18440,13 +20211,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get.resourceGroupName" }, { - "$id": "1374", + "$id": "1501", "kind": "path", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1375", + "$id": "1502", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18464,12 +20235,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get.bazName" }, { - "$id": "1376", + "$id": "1503", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "144" + "$ref": "167" }, "isApiVersion": false, "optional": false, @@ -18486,7 +20257,7 @@ 200 ], "bodyType": { - "$ref": "635" + "$ref": "683" }, "headers": [], "isErrorResponse": false, @@ -18511,13 +20282,13 @@ }, "parameters": [ { - "$id": "1377", + "$id": "1504", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1378", + "$id": "1505", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18533,13 +20304,13 @@ "decorators": [] }, { - "$id": "1379", + "$id": "1506", "kind": "method", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1380", + "$id": "1507", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18555,12 +20326,12 @@ "decorators": [] }, { - "$id": "1381", + "$id": "1508", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "144" + "$ref": "167" }, "location": "Header", "isApiVersion": false, @@ -18574,7 +20345,7 @@ ], "response": { "type": { - "$ref": "635" + "$ref": "683" } }, "isOverride": false, @@ -18583,7 +20354,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get" }, { - "$id": "1382", + "$id": "1509", "kind": "lro", "name": "delete", "accessibility": "public", @@ -18592,20 +20363,20 @@ ], "doc": "Delete a Baz", "operation": { - "$id": "1383", + "$id": "1510", "name": "delete", "resourceName": "Baz", "doc": "Delete a Baz", "accessibility": "public", "parameters": [ { - "$id": "1384", + "$id": "1511", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1385", + "$id": "1512", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18615,7 +20386,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1386", + "$id": "1513", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -18629,18 +20400,18 @@ "readOnly": false }, { - "$id": "1387", + "$id": "1514", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1388", + "$id": "1515", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1389", + "$id": "1516", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18660,13 +20431,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.delete.subscriptionId" }, { - "$id": "1390", + "$id": "1517", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1391", + "$id": "1518", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18684,13 +20455,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.delete.resourceGroupName" }, { - "$id": "1392", + "$id": "1519", "kind": "path", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1393", + "$id": "1520", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18719,7 +20490,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1394", + "$id": "1521", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18731,7 +20502,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1395", + "$id": "1522", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -18765,13 +20536,13 @@ }, "parameters": [ { - "$id": "1396", + "$id": "1523", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1397", + "$id": "1524", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18787,13 +20558,13 @@ "decorators": [] }, { - "$id": "1398", + "$id": "1525", "kind": "method", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1399", + "$id": "1526", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18824,7 +20595,7 @@ } }, { - "$id": "1400", + "$id": "1527", "kind": "lro", "name": "update", "accessibility": "public", @@ -18833,20 +20604,20 @@ ], "doc": "Update a Baz", "operation": { - "$id": "1401", + "$id": "1528", "name": "update", "resourceName": "Baz", "doc": "Update a Baz", "accessibility": "public", "parameters": [ { - "$id": "1402", + "$id": "1529", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1403", + "$id": "1530", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18856,7 +20627,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1404", + "$id": "1531", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -18870,18 +20641,18 @@ "readOnly": false }, { - "$id": "1405", + "$id": "1532", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1406", + "$id": "1533", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1407", + "$id": "1534", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18901,13 +20672,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.subscriptionId" }, { - "$id": "1408", + "$id": "1535", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1409", + "$id": "1536", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18925,13 +20696,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.resourceGroupName" }, { - "$id": "1410", + "$id": "1537", "kind": "path", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1411", + "$id": "1538", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18949,13 +20720,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.bazName" }, { - "$id": "1412", + "$id": "1539", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "146" + "$ref": "169" }, "isApiVersion": false, "optional": false, @@ -18966,12 +20737,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.contentType" }, { - "$id": "1413", + "$id": "1540", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "148" + "$ref": "171" }, "isApiVersion": false, "optional": false, @@ -18982,13 +20753,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.accept" }, { - "$id": "1414", + "$id": "1541", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "635" + "$ref": "683" }, "isApiVersion": false, "contentTypes": [ @@ -19008,7 +20779,7 @@ 200 ], "bodyType": { - "$ref": "635" + "$ref": "683" }, "headers": [], "isErrorResponse": false, @@ -19026,7 +20797,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1415", + "$id": "1542", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19038,7 +20809,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1416", + "$id": "1543", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -19068,13 +20839,13 @@ }, "parameters": [ { - "$id": "1417", + "$id": "1544", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1418", + "$id": "1545", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19090,13 +20861,13 @@ "decorators": [] }, { - "$id": "1419", + "$id": "1546", "kind": "method", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1420", + "$id": "1547", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19112,13 +20883,13 @@ "decorators": [] }, { - "$id": "1421", + "$id": "1548", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "635" + "$ref": "683" }, "location": "Body", "isApiVersion": false, @@ -19130,13 +20901,13 @@ "decorators": [] }, { - "$id": "1422", + "$id": "1549", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "150" + "$ref": "173" }, "location": "Header", "isApiVersion": false, @@ -19148,12 +20919,12 @@ "decorators": [] }, { - "$id": "1423", + "$id": "1550", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "152" + "$ref": "175" }, "location": "Header", "isApiVersion": false, @@ -19167,7 +20938,7 @@ ], "response": { "type": { - "$ref": "635" + "$ref": "683" } }, "isOverride": false, @@ -19181,13 +20952,13 @@ 200 ], "bodyType": { - "$ref": "635" + "$ref": "683" } } } }, { - "$id": "1424", + "$id": "1551", "kind": "paging", "name": "list", "accessibility": "public", @@ -19196,20 +20967,20 @@ ], "doc": "List Baz resources by resource group", "operation": { - "$id": "1425", + "$id": "1552", "name": "list", "resourceName": "Baz", "doc": "List Baz resources by resource group", "accessibility": "public", "parameters": [ { - "$id": "1426", + "$id": "1553", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1427", + "$id": "1554", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19219,7 +20990,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1428", + "$id": "1555", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -19233,18 +21004,18 @@ "readOnly": false }, { - "$id": "1429", + "$id": "1556", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1430", + "$id": "1557", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1431", + "$id": "1558", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19264,13 +21035,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.list.subscriptionId" }, { - "$id": "1432", + "$id": "1559", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1433", + "$id": "1560", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19288,12 +21059,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.list.resourceGroupName" }, { - "$id": "1434", + "$id": "1561", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "154" + "$ref": "177" }, "isApiVersion": false, "optional": false, @@ -19310,7 +21081,7 @@ 200 ], "bodyType": { - "$ref": "653" + "$ref": "701" }, "headers": [], "isErrorResponse": false, @@ -19335,13 +21106,13 @@ }, "parameters": [ { - "$id": "1435", + "$id": "1562", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1436", + "$id": "1563", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19357,12 +21128,12 @@ "decorators": [] }, { - "$id": "1437", + "$id": "1564", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "154" + "$ref": "177" }, "location": "Header", "isApiVersion": false, @@ -19376,7 +21147,7 @@ ], "response": { "type": { - "$ref": "655" + "$ref": "703" }, "resultSegments": [ "value" @@ -19400,7 +21171,7 @@ } }, { - "$id": "1438", + "$id": "1565", "kind": "paging", "name": "listBySubscription", "accessibility": "public", @@ -19409,20 +21180,20 @@ ], "doc": "List Baz resources by subscription ID", "operation": { - "$id": "1439", + "$id": "1566", "name": "listBySubscription", "resourceName": "Baz", "doc": "List Baz resources by subscription ID", "accessibility": "public", "parameters": [ { - "$id": "1440", + "$id": "1567", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1441", + "$id": "1568", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19432,7 +21203,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1442", + "$id": "1569", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -19446,18 +21217,18 @@ "readOnly": false }, { - "$id": "1443", + "$id": "1570", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1444", + "$id": "1571", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1445", + "$id": "1572", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19477,12 +21248,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.listBySubscription.subscriptionId" }, { - "$id": "1446", + "$id": "1573", "kind": "query", "name": "$top", "serializedName": "$top", "type": { - "$id": "1447", + "$id": "1574", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -19497,12 +21268,12 @@ "readOnly": false }, { - "$id": "1448", + "$id": "1575", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "156" + "$ref": "179" }, "isApiVersion": false, "optional": false, @@ -19519,7 +21290,7 @@ 200 ], "bodyType": { - "$ref": "653" + "$ref": "701" }, "headers": [], "isErrorResponse": false, @@ -19544,12 +21315,12 @@ }, "parameters": [ { - "$id": "1449", + "$id": "1576", "kind": "method", "name": "$top", "serializedName": "$top", "type": { - "$id": "1450", + "$id": "1577", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -19565,12 +21336,12 @@ "decorators": [] }, { - "$id": "1451", + "$id": "1578", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "156" + "$ref": "179" }, "location": "Header", "isApiVersion": false, @@ -19584,7 +21355,7 @@ ], "response": { "type": { - "$ref": "655" + "$ref": "703" }, "resultSegments": [ "value" @@ -19610,13 +21381,13 @@ ], "parameters": [ { - "$id": "1452", + "$id": "1579", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1453", + "$id": "1580", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -19627,7 +21398,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1454", + "$id": "1581", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -19640,10 +21411,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -19658,17 +21429,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1455", + "$id": "1582", "kind": "client", "name": "Zoos", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1456", + "$id": "1583", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -19677,20 +21448,20 @@ ], "doc": "Create a Zoo", "operation": { - "$id": "1457", + "$id": "1584", "name": "createOrUpdate", "resourceName": "Zoo", "doc": "Create a Zoo", "accessibility": "public", "parameters": [ { - "$id": "1458", + "$id": "1585", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1459", + "$id": "1586", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19700,7 +21471,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1460", + "$id": "1587", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -19714,18 +21485,18 @@ "readOnly": false }, { - "$id": "1461", + "$id": "1588", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1462", + "$id": "1589", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1463", + "$id": "1590", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19745,13 +21516,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.subscriptionId" }, { - "$id": "1464", + "$id": "1591", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1465", + "$id": "1592", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19769,13 +21540,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.resourceGroupName" }, { - "$id": "1466", + "$id": "1593", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1467", + "$id": "1594", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19793,13 +21564,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.zooName" }, { - "$id": "1468", + "$id": "1595", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "158" + "$ref": "181" }, "isApiVersion": false, "optional": false, @@ -19810,12 +21581,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.contentType" }, { - "$id": "1469", + "$id": "1596", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "160" + "$ref": "183" }, "isApiVersion": false, "optional": false, @@ -19826,13 +21597,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.accept" }, { - "$id": "1470", + "$id": "1597", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "659" + "$ref": "707" }, "isApiVersion": false, "contentTypes": [ @@ -19852,7 +21623,7 @@ 200 ], "bodyType": { - "$ref": "659" + "$ref": "707" }, "headers": [], "isErrorResponse": false, @@ -19865,7 +21636,7 @@ 201 ], "bodyType": { - "$ref": "659" + "$ref": "707" }, "headers": [ { @@ -19873,7 +21644,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1471", + "$id": "1598", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19885,7 +21656,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1472", + "$id": "1599", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -19918,13 +21689,13 @@ }, "parameters": [ { - "$id": "1473", + "$id": "1600", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1474", + "$id": "1601", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19940,13 +21711,13 @@ "decorators": [] }, { - "$id": "1475", + "$id": "1602", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1476", + "$id": "1603", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19962,13 +21733,13 @@ "decorators": [] }, { - "$id": "1477", + "$id": "1604", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "659" + "$ref": "707" }, "location": "Body", "isApiVersion": false, @@ -19980,13 +21751,13 @@ "decorators": [] }, { - "$id": "1478", + "$id": "1605", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "162" + "$ref": "185" }, "location": "Header", "isApiVersion": false, @@ -19998,12 +21769,12 @@ "decorators": [] }, { - "$id": "1479", + "$id": "1606", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "164" + "$ref": "187" }, "location": "Header", "isApiVersion": false, @@ -20017,7 +21788,7 @@ ], "response": { "type": { - "$ref": "659" + "$ref": "707" } }, "isOverride": false, @@ -20031,13 +21802,13 @@ 200 ], "bodyType": { - "$ref": "659" + "$ref": "707" } } } }, { - "$id": "1480", + "$id": "1607", "kind": "basic", "name": "get", "accessibility": "public", @@ -20046,20 +21817,20 @@ ], "doc": "Get a Zoo", "operation": { - "$id": "1481", + "$id": "1608", "name": "get", "resourceName": "Zoo", "doc": "Get a Zoo", "accessibility": "public", "parameters": [ { - "$id": "1482", + "$id": "1609", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1483", + "$id": "1610", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20069,7 +21840,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1484", + "$id": "1611", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -20083,18 +21854,18 @@ "readOnly": false }, { - "$id": "1485", + "$id": "1612", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1486", + "$id": "1613", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1487", + "$id": "1614", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20114,13 +21885,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get.subscriptionId" }, { - "$id": "1488", + "$id": "1615", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1489", + "$id": "1616", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20138,13 +21909,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get.resourceGroupName" }, { - "$id": "1490", + "$id": "1617", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1491", + "$id": "1618", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20162,12 +21933,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get.zooName" }, { - "$id": "1492", + "$id": "1619", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "166" + "$ref": "189" }, "isApiVersion": false, "optional": false, @@ -20184,7 +21955,7 @@ 200 ], "bodyType": { - "$ref": "659" + "$ref": "707" }, "headers": [], "isErrorResponse": false, @@ -20209,13 +21980,13 @@ }, "parameters": [ { - "$id": "1493", + "$id": "1620", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1494", + "$id": "1621", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20231,13 +22002,13 @@ "decorators": [] }, { - "$id": "1495", + "$id": "1622", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1496", + "$id": "1623", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20253,12 +22024,12 @@ "decorators": [] }, { - "$id": "1497", + "$id": "1624", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "166" + "$ref": "189" }, "location": "Header", "isApiVersion": false, @@ -20272,7 +22043,7 @@ ], "response": { "type": { - "$ref": "659" + "$ref": "707" } }, "isOverride": false, @@ -20281,7 +22052,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get" }, { - "$id": "1498", + "$id": "1625", "kind": "lro", "name": "delete", "accessibility": "public", @@ -20290,20 +22061,20 @@ ], "doc": "Delete a Zoo", "operation": { - "$id": "1499", + "$id": "1626", "name": "delete", "resourceName": "Zoo", "doc": "Delete a Zoo", "accessibility": "public", "parameters": [ { - "$id": "1500", + "$id": "1627", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1501", + "$id": "1628", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20313,7 +22084,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1502", + "$id": "1629", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -20327,18 +22098,18 @@ "readOnly": false }, { - "$id": "1503", + "$id": "1630", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1504", + "$id": "1631", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1505", + "$id": "1632", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20358,13 +22129,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.delete.subscriptionId" }, { - "$id": "1506", + "$id": "1633", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1507", + "$id": "1634", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20382,13 +22153,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.delete.resourceGroupName" }, { - "$id": "1508", + "$id": "1635", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1509", + "$id": "1636", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20417,7 +22188,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1510", + "$id": "1637", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20429,7 +22200,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1511", + "$id": "1638", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -20463,13 +22234,13 @@ }, "parameters": [ { - "$id": "1512", + "$id": "1639", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1513", + "$id": "1640", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20485,13 +22256,13 @@ "decorators": [] }, { - "$id": "1514", + "$id": "1641", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1515", + "$id": "1642", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20522,7 +22293,7 @@ } }, { - "$id": "1516", + "$id": "1643", "kind": "lro", "name": "update", "accessibility": "public", @@ -20531,20 +22302,20 @@ ], "doc": "Update a Zoo", "operation": { - "$id": "1517", + "$id": "1644", "name": "update", "resourceName": "Zoo", "doc": "Update a Zoo", "accessibility": "public", "parameters": [ { - "$id": "1518", + "$id": "1645", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1519", + "$id": "1646", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20554,7 +22325,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1520", + "$id": "1647", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -20568,18 +22339,18 @@ "readOnly": false }, { - "$id": "1521", + "$id": "1648", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1522", + "$id": "1649", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1523", + "$id": "1650", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20599,13 +22370,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.subscriptionId" }, { - "$id": "1524", + "$id": "1651", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1525", + "$id": "1652", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20623,13 +22394,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.resourceGroupName" }, { - "$id": "1526", + "$id": "1653", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1527", + "$id": "1654", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20647,13 +22418,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.zooName" }, { - "$id": "1528", + "$id": "1655", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "168" + "$ref": "191" }, "isApiVersion": false, "optional": false, @@ -20664,12 +22435,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.contentType" }, { - "$id": "1529", + "$id": "1656", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "170" + "$ref": "193" }, "isApiVersion": false, "optional": false, @@ -20680,13 +22451,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.accept" }, { - "$id": "1530", + "$id": "1657", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "675" + "$ref": "723" }, "isApiVersion": false, "contentTypes": [ @@ -20706,7 +22477,7 @@ 200 ], "bodyType": { - "$ref": "659" + "$ref": "707" }, "headers": [], "isErrorResponse": false, @@ -20724,7 +22495,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1531", + "$id": "1658", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20736,7 +22507,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1532", + "$id": "1659", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -20766,13 +22537,13 @@ }, "parameters": [ { - "$id": "1533", + "$id": "1660", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1534", + "$id": "1661", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20788,13 +22559,13 @@ "decorators": [] }, { - "$id": "1535", + "$id": "1662", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1536", + "$id": "1663", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20810,13 +22581,13 @@ "decorators": [] }, { - "$id": "1537", + "$id": "1664", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "675" + "$ref": "723" }, "location": "Body", "isApiVersion": false, @@ -20828,13 +22599,13 @@ "decorators": [] }, { - "$id": "1538", + "$id": "1665", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "172" + "$ref": "195" }, "location": "Header", "isApiVersion": false, @@ -20846,12 +22617,12 @@ "decorators": [] }, { - "$id": "1539", + "$id": "1666", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "174" + "$ref": "197" }, "location": "Header", "isApiVersion": false, @@ -20865,7 +22636,7 @@ ], "response": { "type": { - "$ref": "659" + "$ref": "707" } }, "isOverride": false, @@ -20879,13 +22650,13 @@ 200 ], "bodyType": { - "$ref": "659" + "$ref": "707" } } } }, { - "$id": "1540", + "$id": "1667", "kind": "paging", "name": "list", "accessibility": "public", @@ -20894,20 +22665,20 @@ ], "doc": "List Zoo resources by resource group", "operation": { - "$id": "1541", + "$id": "1668", "name": "list", "resourceName": "Zoo", "doc": "List Zoo resources by resource group", "accessibility": "public", "parameters": [ { - "$id": "1542", + "$id": "1669", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1543", + "$id": "1670", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20917,7 +22688,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1544", + "$id": "1671", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -20931,18 +22702,18 @@ "readOnly": false }, { - "$id": "1545", + "$id": "1672", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1546", + "$id": "1673", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1547", + "$id": "1674", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20962,13 +22733,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.list.subscriptionId" }, { - "$id": "1548", + "$id": "1675", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1549", + "$id": "1676", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20986,12 +22757,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.list.resourceGroupName" }, { - "$id": "1550", + "$id": "1677", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "176" + "$ref": "199" }, "isApiVersion": false, "optional": false, @@ -21008,7 +22779,7 @@ 200 ], "bodyType": { - "$ref": "681" + "$ref": "729" }, "headers": [], "isErrorResponse": false, @@ -21033,13 +22804,13 @@ }, "parameters": [ { - "$id": "1551", + "$id": "1678", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1552", + "$id": "1679", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21055,12 +22826,12 @@ "decorators": [] }, { - "$id": "1553", + "$id": "1680", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "176" + "$ref": "199" }, "location": "Header", "isApiVersion": false, @@ -21074,7 +22845,7 @@ ], "response": { "type": { - "$ref": "683" + "$ref": "731" }, "resultSegments": [ "value" @@ -21098,7 +22869,7 @@ } }, { - "$id": "1554", + "$id": "1681", "kind": "paging", "name": "listBySubscription", "accessibility": "public", @@ -21107,20 +22878,20 @@ ], "doc": "List Zoo resources by subscription ID", "operation": { - "$id": "1555", + "$id": "1682", "name": "listBySubscription", "resourceName": "Zoo", "doc": "List Zoo resources by subscription ID", "accessibility": "public", "parameters": [ { - "$id": "1556", + "$id": "1683", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1557", + "$id": "1684", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21130,7 +22901,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1558", + "$id": "1685", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -21144,18 +22915,18 @@ "readOnly": false }, { - "$id": "1559", + "$id": "1686", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1560", + "$id": "1687", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1561", + "$id": "1688", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21175,12 +22946,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.listBySubscription.subscriptionId" }, { - "$id": "1562", + "$id": "1689", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "178" + "$ref": "201" }, "isApiVersion": false, "optional": false, @@ -21197,7 +22968,7 @@ 200 ], "bodyType": { - "$ref": "681" + "$ref": "729" }, "headers": [], "isErrorResponse": false, @@ -21222,12 +22993,12 @@ }, "parameters": [ { - "$id": "1563", + "$id": "1690", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "178" + "$ref": "201" }, "location": "Header", "isApiVersion": false, @@ -21241,7 +23012,7 @@ ], "response": { "type": { - "$ref": "683" + "$ref": "731" }, "resultSegments": [ "value" @@ -21265,7 +23036,7 @@ } }, { - "$id": "1564", + "$id": "1691", "kind": "basic", "name": "zooAddressList", "accessibility": "public", @@ -21274,20 +23045,20 @@ ], "doc": "A synchronous resource action.", "operation": { - "$id": "1565", + "$id": "1692", "name": "zooAddressList", "resourceName": "Zoos", "doc": "A synchronous resource action.", "accessibility": "public", "parameters": [ { - "$id": "1566", + "$id": "1693", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1567", + "$id": "1694", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21297,7 +23068,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1568", + "$id": "1695", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -21311,18 +23082,18 @@ "readOnly": false }, { - "$id": "1569", + "$id": "1696", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1570", + "$id": "1697", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1571", + "$id": "1698", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21342,13 +23113,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList.subscriptionId" }, { - "$id": "1572", + "$id": "1699", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1573", + "$id": "1700", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21366,13 +23137,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList.resourceGroupName" }, { - "$id": "1574", + "$id": "1701", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1575", + "$id": "1702", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21390,12 +23161,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList.zooName" }, { - "$id": "1576", + "$id": "1703", "kind": "query", "name": "$maxpagesize", "serializedName": "$maxpagesize", "type": { - "$id": "1577", + "$id": "1704", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -21410,12 +23181,12 @@ "readOnly": false }, { - "$id": "1578", + "$id": "1705", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "180" + "$ref": "203" }, "isApiVersion": false, "optional": false, @@ -21432,7 +23203,7 @@ 200 ], "bodyType": { - "$ref": "687" + "$ref": "735" }, "headers": [], "isErrorResponse": false, @@ -21457,13 +23228,13 @@ }, "parameters": [ { - "$id": "1579", + "$id": "1706", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1580", + "$id": "1707", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21479,13 +23250,13 @@ "decorators": [] }, { - "$id": "1581", + "$id": "1708", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1582", + "$id": "1709", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21501,12 +23272,12 @@ "decorators": [] }, { - "$id": "1583", + "$id": "1710", "kind": "method", "name": "$maxpagesize", "serializedName": "$maxpagesize", "type": { - "$id": "1584", + "$id": "1711", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -21522,12 +23293,12 @@ "decorators": [] }, { - "$id": "1585", + "$id": "1712", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "180" + "$ref": "203" }, "location": "Header", "isApiVersion": false, @@ -21541,7 +23312,7 @@ ], "response": { "type": { - "$ref": "687" + "$ref": "735" } }, "isOverride": false, @@ -21552,13 +23323,13 @@ ], "parameters": [ { - "$id": "1586", + "$id": "1713", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1587", + "$id": "1714", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -21569,7 +23340,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1588", + "$id": "1715", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -21582,10 +23353,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -21600,17 +23371,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1589", + "$id": "1716", "kind": "client", "name": "EndpointResources", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1590", + "$id": "1717", "kind": "basic", "name": "get", "accessibility": "public", @@ -21619,20 +23390,20 @@ ], "doc": "Gets the endpoint to the resource.", "operation": { - "$id": "1591", + "$id": "1718", "name": "get", "resourceName": "EndpointResource", "doc": "Gets the endpoint to the resource.", "accessibility": "public", "parameters": [ { - "$id": "1592", + "$id": "1719", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1593", + "$id": "1720", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21642,7 +23413,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1594", + "$id": "1721", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -21656,13 +23427,13 @@ "readOnly": false }, { - "$id": "1595", + "$id": "1722", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1596", + "$id": "1723", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21680,13 +23451,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.get.resourceUri" }, { - "$id": "1597", + "$id": "1724", "kind": "path", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1598", + "$id": "1725", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21704,12 +23475,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.get.endpointName" }, { - "$id": "1599", + "$id": "1726", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "182" + "$ref": "205" }, "isApiVersion": false, "optional": false, @@ -21726,7 +23497,7 @@ 200 ], "bodyType": { - "$ref": "694" + "$ref": "741" }, "headers": [], "isErrorResponse": false, @@ -21751,13 +23522,13 @@ }, "parameters": [ { - "$id": "1600", + "$id": "1727", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1601", + "$id": "1728", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21773,13 +23544,13 @@ "decorators": [] }, { - "$id": "1602", + "$id": "1729", "kind": "method", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1603", + "$id": "1730", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21795,12 +23566,12 @@ "decorators": [] }, { - "$id": "1604", + "$id": "1731", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "182" + "$ref": "205" }, "location": "Header", "isApiVersion": false, @@ -21814,7 +23585,7 @@ ], "response": { "type": { - "$ref": "694" + "$ref": "741" } }, "isOverride": false, @@ -21823,7 +23594,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.get" }, { - "$id": "1605", + "$id": "1732", "kind": "basic", "name": "createOrUpdate", "accessibility": "public", @@ -21832,20 +23603,20 @@ ], "doc": "Create or update the endpoint to the target resource.", "operation": { - "$id": "1606", + "$id": "1733", "name": "createOrUpdate", "resourceName": "EndpointResource", "doc": "Create or update the endpoint to the target resource.", "accessibility": "public", "parameters": [ { - "$id": "1607", + "$id": "1734", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1608", + "$id": "1735", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21855,7 +23626,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1609", + "$id": "1736", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -21869,13 +23640,13 @@ "readOnly": false }, { - "$id": "1610", + "$id": "1737", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1611", + "$id": "1738", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21893,13 +23664,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.resourceUri" }, { - "$id": "1612", + "$id": "1739", "kind": "path", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1613", + "$id": "1740", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -21917,13 +23688,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.endpointName" }, { - "$id": "1614", + "$id": "1741", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "184" + "$ref": "207" }, "isApiVersion": false, "optional": false, @@ -21934,12 +23705,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.contentType" }, { - "$id": "1615", + "$id": "1742", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "186" + "$ref": "209" }, "isApiVersion": false, "optional": false, @@ -21950,13 +23721,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.accept" }, { - "$id": "1616", + "$id": "1743", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "694" + "$ref": "741" }, "isApiVersion": false, "contentTypes": [ @@ -21976,7 +23747,7 @@ 200 ], "bodyType": { - "$ref": "694" + "$ref": "741" }, "headers": [], "isErrorResponse": false, @@ -22004,13 +23775,13 @@ }, "parameters": [ { - "$id": "1617", + "$id": "1744", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1618", + "$id": "1745", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22026,13 +23797,13 @@ "decorators": [] }, { - "$id": "1619", + "$id": "1746", "kind": "method", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1620", + "$id": "1747", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22048,13 +23819,13 @@ "decorators": [] }, { - "$id": "1621", + "$id": "1748", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "694" + "$ref": "741" }, "location": "Body", "isApiVersion": false, @@ -22066,13 +23837,13 @@ "decorators": [] }, { - "$id": "1622", + "$id": "1749", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "184" + "$ref": "207" }, "location": "Header", "isApiVersion": false, @@ -22084,12 +23855,12 @@ "decorators": [] }, { - "$id": "1623", + "$id": "1750", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "186" + "$ref": "209" }, "location": "Header", "isApiVersion": false, @@ -22103,7 +23874,7 @@ ], "response": { "type": { - "$ref": "694" + "$ref": "741" } }, "isOverride": false, @@ -22112,7 +23883,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate" }, { - "$id": "1624", + "$id": "1751", "kind": "basic", "name": "update", "accessibility": "public", @@ -22121,20 +23892,20 @@ ], "doc": "Update the endpoint to the target resource.", "operation": { - "$id": "1625", + "$id": "1752", "name": "update", "resourceName": "EndpointResource", "doc": "Update the endpoint to the target resource.", "accessibility": "public", "parameters": [ { - "$id": "1626", + "$id": "1753", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1627", + "$id": "1754", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22144,7 +23915,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1628", + "$id": "1755", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -22158,13 +23929,13 @@ "readOnly": false }, { - "$id": "1629", + "$id": "1756", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1630", + "$id": "1757", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22182,13 +23953,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.resourceUri" }, { - "$id": "1631", + "$id": "1758", "kind": "path", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1632", + "$id": "1759", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22206,13 +23977,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.endpointName" }, { - "$id": "1633", + "$id": "1760", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "188" + "$ref": "211" }, "isApiVersion": false, "optional": false, @@ -22223,12 +23994,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.contentType" }, { - "$id": "1634", + "$id": "1761", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "190" + "$ref": "213" }, "isApiVersion": false, "optional": false, @@ -22239,13 +24010,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.accept" }, { - "$id": "1635", + "$id": "1762", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "694" + "$ref": "741" }, "isApiVersion": false, "contentTypes": [ @@ -22265,7 +24036,7 @@ 200 ], "bodyType": { - "$ref": "694" + "$ref": "741" }, "headers": [], "isErrorResponse": false, @@ -22293,13 +24064,13 @@ }, "parameters": [ { - "$id": "1636", + "$id": "1763", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1637", + "$id": "1764", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22315,13 +24086,13 @@ "decorators": [] }, { - "$id": "1638", + "$id": "1765", "kind": "method", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1639", + "$id": "1766", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22337,13 +24108,13 @@ "decorators": [] }, { - "$id": "1640", + "$id": "1767", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "694" + "$ref": "741" }, "location": "Body", "isApiVersion": false, @@ -22355,13 +24126,13 @@ "decorators": [] }, { - "$id": "1641", + "$id": "1768", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "188" + "$ref": "211" }, "location": "Header", "isApiVersion": false, @@ -22373,12 +24144,12 @@ "decorators": [] }, { - "$id": "1642", + "$id": "1769", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "190" + "$ref": "213" }, "location": "Header", "isApiVersion": false, @@ -22392,7 +24163,7 @@ ], "response": { "type": { - "$ref": "694" + "$ref": "741" } }, "isOverride": false, @@ -22401,7 +24172,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update" }, { - "$id": "1643", + "$id": "1770", "kind": "basic", "name": "delete", "accessibility": "public", @@ -22410,20 +24181,20 @@ ], "doc": "Deletes the endpoint access to the target resource.", "operation": { - "$id": "1644", + "$id": "1771", "name": "delete", "resourceName": "EndpointResource", "doc": "Deletes the endpoint access to the target resource.", "accessibility": "public", "parameters": [ { - "$id": "1645", + "$id": "1772", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1646", + "$id": "1773", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22433,7 +24204,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1647", + "$id": "1774", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -22447,13 +24218,13 @@ "readOnly": false }, { - "$id": "1648", + "$id": "1775", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1649", + "$id": "1776", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22471,13 +24242,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.delete.resourceUri" }, { - "$id": "1650", + "$id": "1777", "kind": "path", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1651", + "$id": "1778", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22527,13 +24298,13 @@ }, "parameters": [ { - "$id": "1652", + "$id": "1779", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1653", + "$id": "1780", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22549,13 +24320,13 @@ "decorators": [] }, { - "$id": "1654", + "$id": "1781", "kind": "method", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1655", + "$id": "1782", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22578,7 +24349,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.delete" }, { - "$id": "1656", + "$id": "1783", "kind": "paging", "name": "list", "accessibility": "public", @@ -22587,20 +24358,20 @@ ], "doc": "List EndpointResource resources by parent", "operation": { - "$id": "1657", + "$id": "1784", "name": "list", "resourceName": "EndpointResource", "doc": "List EndpointResource resources by parent", "accessibility": "public", "parameters": [ { - "$id": "1658", + "$id": "1785", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1659", + "$id": "1786", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22610,7 +24381,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1660", + "$id": "1787", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -22624,13 +24395,13 @@ "readOnly": false }, { - "$id": "1661", + "$id": "1788", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1662", + "$id": "1789", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22648,12 +24419,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.list.resourceUri" }, { - "$id": "1663", + "$id": "1790", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "192" + "$ref": "215" }, "isApiVersion": false, "optional": false, @@ -22670,7 +24441,7 @@ 200 ], "bodyType": { - "$ref": "707" + "$ref": "754" }, "headers": [], "isErrorResponse": false, @@ -22695,13 +24466,13 @@ }, "parameters": [ { - "$id": "1664", + "$id": "1791", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1665", + "$id": "1792", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22717,12 +24488,12 @@ "decorators": [] }, { - "$id": "1666", + "$id": "1793", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "192" + "$ref": "215" }, "location": "Header", "isApiVersion": false, @@ -22736,7 +24507,7 @@ ], "response": { "type": { - "$ref": "709" + "$ref": "756" }, "resultSegments": [ "value" @@ -22762,13 +24533,13 @@ ], "parameters": [ { - "$id": "1667", + "$id": "1794", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1668", + "$id": "1795", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -22779,7 +24550,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1669", + "$id": "1796", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -22792,7 +24563,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" } ], "initializedBy": 0, @@ -22807,17 +24578,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1670", + "$id": "1797", "kind": "client", "name": "SolutionResources", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1671", + "$id": "1798", "kind": "basic", "name": "get", "accessibility": "public", @@ -22826,20 +24597,20 @@ ], "doc": "Get a SelfHelpResource", "operation": { - "$id": "1672", + "$id": "1799", "name": "get", "resourceName": "SelfHelpResource", "doc": "Get a SelfHelpResource", "accessibility": "public", "parameters": [ { - "$id": "1673", + "$id": "1800", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1674", + "$id": "1801", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22849,7 +24620,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1675", + "$id": "1802", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -22863,13 +24634,13 @@ "readOnly": false }, { - "$id": "1676", + "$id": "1803", "kind": "path", "name": "scope", "serializedName": "scope", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1677", + "$id": "1804", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22887,13 +24658,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SolutionResources.get.scope" }, { - "$id": "1678", + "$id": "1805", "kind": "path", "name": "selfHelpName", "serializedName": "selfHelpName", "doc": "The name of the SelfHelpResource", "type": { - "$id": "1679", + "$id": "1806", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22911,12 +24682,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SolutionResources.get.selfHelpName" }, { - "$id": "1680", + "$id": "1807", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "194" + "$ref": "217" }, "isApiVersion": false, "optional": false, @@ -22933,7 +24704,7 @@ 200 ], "bodyType": { - "$ref": "713" + "$ref": "760" }, "headers": [], "isErrorResponse": false, @@ -22953,13 +24724,13 @@ }, "parameters": [ { - "$id": "1681", + "$id": "1808", "kind": "method", "name": "scope", "serializedName": "scope", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1682", + "$id": "1809", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22975,13 +24746,13 @@ "decorators": [] }, { - "$id": "1683", + "$id": "1810", "kind": "method", "name": "selfHelpName", "serializedName": "selfHelpName", "doc": "The name of the SelfHelpResource", "type": { - "$id": "1684", + "$id": "1811", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -22997,12 +24768,12 @@ "decorators": [] }, { - "$id": "1685", + "$id": "1812", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "194" + "$ref": "217" }, "location": "Header", "isApiVersion": false, @@ -23016,7 +24787,7 @@ ], "response": { "type": { - "$ref": "713" + "$ref": "760" } }, "isOverride": false, @@ -23027,13 +24798,13 @@ ], "parameters": [ { - "$id": "1686", + "$id": "1813", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1687", + "$id": "1814", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -23044,7 +24815,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1688", + "$id": "1815", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -23057,7 +24828,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" } ], "initializedBy": 0, @@ -23072,17 +24843,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1689", + "$id": "1816", "kind": "client", "name": "PlaywrightQuotas", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1690", + "$id": "1817", "kind": "basic", "name": "get", "accessibility": "public", @@ -23091,20 +24862,20 @@ ], "doc": "Get subscription-level location-based Playwright quota resource by name.", "operation": { - "$id": "1691", + "$id": "1818", "name": "get", "resourceName": "PlaywrightQuota", "doc": "Get subscription-level location-based Playwright quota resource by name.", "accessibility": "public", "parameters": [ { - "$id": "1692", + "$id": "1819", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1693", + "$id": "1820", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23114,7 +24885,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1694", + "$id": "1821", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -23128,18 +24899,18 @@ "readOnly": false }, { - "$id": "1695", + "$id": "1822", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1696", + "$id": "1823", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1697", + "$id": "1824", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23159,18 +24930,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get.subscriptionId" }, { - "$id": "1698", + "$id": "1825", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1699", + "$id": "1826", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1700", + "$id": "1827", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23190,13 +24961,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get.location" }, { - "$id": "1701", + "$id": "1828", "kind": "path", "name": "playwrightQuotaName", "serializedName": "playwrightQuotaName", "doc": "The name of the PlaywrightQuota", "type": { - "$ref": "52" + "$ref": "63" }, "isApiVersion": false, "explode": false, @@ -23210,12 +24981,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get.playwrightQuotaName" }, { - "$id": "1702", + "$id": "1829", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "196" + "$ref": "219" }, "isApiVersion": false, "optional": false, @@ -23232,7 +25003,7 @@ 200 ], "bodyType": { - "$ref": "721" + "$ref": "768" }, "headers": [], "isErrorResponse": false, @@ -23257,18 +25028,18 @@ }, "parameters": [ { - "$id": "1703", + "$id": "1830", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1704", + "$id": "1831", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1705", + "$id": "1832", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23286,13 +25057,13 @@ "decorators": [] }, { - "$id": "1706", + "$id": "1833", "kind": "method", "name": "playwrightQuotaName", "serializedName": "playwrightQuotaName", "doc": "The name of the PlaywrightQuota", "type": { - "$ref": "52" + "$ref": "63" }, "location": "Path", "isApiVersion": false, @@ -23304,12 +25075,12 @@ "decorators": [] }, { - "$id": "1707", + "$id": "1834", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "196" + "$ref": "219" }, "location": "Header", "isApiVersion": false, @@ -23323,7 +25094,7 @@ ], "response": { "type": { - "$ref": "721" + "$ref": "768" } }, "isOverride": false, @@ -23332,7 +25103,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get" }, { - "$id": "1708", + "$id": "1835", "kind": "paging", "name": "listBySubscription", "accessibility": "public", @@ -23341,20 +25112,20 @@ ], "doc": "List Playwright quota resources for a given subscription Id.", "operation": { - "$id": "1709", + "$id": "1836", "name": "listBySubscription", "resourceName": "PlaywrightQuota", "doc": "List Playwright quota resources for a given subscription Id.", "accessibility": "public", "parameters": [ { - "$id": "1710", + "$id": "1837", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1711", + "$id": "1838", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23364,7 +25135,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1712", + "$id": "1839", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -23378,18 +25149,18 @@ "readOnly": false }, { - "$id": "1713", + "$id": "1840", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1714", + "$id": "1841", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1715", + "$id": "1842", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23409,18 +25180,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.listBySubscription.subscriptionId" }, { - "$id": "1716", + "$id": "1843", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1717", + "$id": "1844", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1718", + "$id": "1845", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23440,12 +25211,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.listBySubscription.location" }, { - "$id": "1719", + "$id": "1846", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "198" + "$ref": "221" }, "isApiVersion": false, "optional": false, @@ -23462,7 +25233,7 @@ 200 ], "bodyType": { - "$ref": "732" + "$ref": "779" }, "headers": [], "isErrorResponse": false, @@ -23487,18 +25258,18 @@ }, "parameters": [ { - "$id": "1720", + "$id": "1847", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1721", + "$id": "1848", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1722", + "$id": "1849", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23516,12 +25287,12 @@ "decorators": [] }, { - "$id": "1723", + "$id": "1850", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "198" + "$ref": "221" }, "location": "Header", "isApiVersion": false, @@ -23535,7 +25306,7 @@ ], "response": { "type": { - "$ref": "734" + "$ref": "781" }, "resultSegments": [ "value" @@ -23559,7 +25330,7 @@ } }, { - "$id": "1724", + "$id": "1851", "kind": "basic", "name": "createOrUpdate", "accessibility": "public", @@ -23568,20 +25339,20 @@ ], "doc": "Create a PlaywrightQuota", "operation": { - "$id": "1725", + "$id": "1852", "name": "createOrUpdate", "resourceName": "PlaywrightQuota", "doc": "Create a PlaywrightQuota", "accessibility": "public", "parameters": [ { - "$id": "1726", + "$id": "1853", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1727", + "$id": "1854", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23591,7 +25362,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1728", + "$id": "1855", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -23605,18 +25376,18 @@ "readOnly": false }, { - "$id": "1729", + "$id": "1856", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1730", + "$id": "1857", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1731", + "$id": "1858", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23636,18 +25407,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.subscriptionId" }, { - "$id": "1732", + "$id": "1859", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1733", + "$id": "1860", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1734", + "$id": "1861", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23667,13 +25438,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.location" }, { - "$id": "1735", + "$id": "1862", "kind": "path", "name": "playwrightQuotaName", "serializedName": "playwrightQuotaName", "doc": "The name of the PlaywrightQuota", "type": { - "$ref": "52" + "$ref": "63" }, "isApiVersion": false, "explode": false, @@ -23687,13 +25458,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.playwrightQuotaName" }, { - "$id": "1736", + "$id": "1863", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "200" + "$ref": "223" }, "isApiVersion": false, "optional": false, @@ -23704,12 +25475,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.contentType" }, { - "$id": "1737", + "$id": "1864", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "202" + "$ref": "225" }, "isApiVersion": false, "optional": false, @@ -23720,13 +25491,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.accept" }, { - "$id": "1738", + "$id": "1865", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "721" + "$ref": "768" }, "isApiVersion": false, "contentTypes": [ @@ -23746,7 +25517,7 @@ 200 ], "bodyType": { - "$ref": "721" + "$ref": "768" }, "headers": [], "isErrorResponse": false, @@ -23759,7 +25530,7 @@ 201 ], "bodyType": { - "$ref": "721" + "$ref": "768" }, "headers": [], "isErrorResponse": false, @@ -23787,18 +25558,18 @@ }, "parameters": [ { - "$id": "1739", + "$id": "1866", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1740", + "$id": "1867", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1741", + "$id": "1868", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23816,13 +25587,13 @@ "decorators": [] }, { - "$id": "1742", + "$id": "1869", "kind": "method", "name": "playwrightQuotaName", "serializedName": "playwrightQuotaName", "doc": "The name of the PlaywrightQuota", "type": { - "$ref": "52" + "$ref": "63" }, "location": "Path", "isApiVersion": false, @@ -23834,13 +25605,13 @@ "decorators": [] }, { - "$id": "1743", + "$id": "1870", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "721" + "$ref": "768" }, "location": "Body", "isApiVersion": false, @@ -23852,13 +25623,13 @@ "decorators": [] }, { - "$id": "1744", + "$id": "1871", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "200" + "$ref": "223" }, "location": "Header", "isApiVersion": false, @@ -23870,12 +25641,12 @@ "decorators": [] }, { - "$id": "1745", + "$id": "1872", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "202" + "$ref": "225" }, "location": "Header", "isApiVersion": false, @@ -23889,7 +25660,7 @@ ], "response": { "type": { - "$ref": "721" + "$ref": "768" } }, "isOverride": false, @@ -23900,13 +25671,13 @@ ], "parameters": [ { - "$id": "1746", + "$id": "1873", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1747", + "$id": "1874", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -23917,7 +25688,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1748", + "$id": "1875", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -23930,10 +25701,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -23948,17 +25719,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1749", + "$id": "1876", "kind": "client", "name": "JobResources", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1750", + "$id": "1877", "kind": "basic", "name": "get", "accessibility": "public", @@ -23967,20 +25738,20 @@ ], "doc": "Gets information about the specified job.", "operation": { - "$id": "1751", + "$id": "1878", "name": "get", "resourceName": "JobResource", "doc": "Gets information about the specified job.", "accessibility": "public", "parameters": [ { - "$id": "1752", + "$id": "1879", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1753", + "$id": "1880", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -23990,7 +25761,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1754", + "$id": "1881", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -24004,18 +25775,18 @@ "readOnly": false }, { - "$id": "1755", + "$id": "1882", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1756", + "$id": "1883", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1757", + "$id": "1884", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24035,13 +25806,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.subscriptionId" }, { - "$id": "1758", + "$id": "1885", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1759", + "$id": "1886", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24059,13 +25830,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.resourceGroupName" }, { - "$id": "1760", + "$id": "1887", "kind": "path", "name": "jobName", "serializedName": "jobName", "doc": "The name of the JobResource", "type": { - "$id": "1761", + "$id": "1888", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24083,13 +25854,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.jobName" }, { - "$id": "1762", + "$id": "1889", "kind": "query", "name": "$expand", "serializedName": "$expand", "doc": "$expand is supported on details parameter for job, which provides details on the job stages.", "type": { - "$id": "1763", + "$id": "1890", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24104,12 +25875,12 @@ "readOnly": false }, { - "$id": "1764", + "$id": "1891", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "204" + "$ref": "227" }, "isApiVersion": false, "optional": false, @@ -24126,7 +25897,7 @@ 200 ], "bodyType": { - "$ref": "738" + "$ref": "785" }, "headers": [], "isErrorResponse": false, @@ -24151,13 +25922,13 @@ }, "parameters": [ { - "$id": "1765", + "$id": "1892", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1766", + "$id": "1893", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24173,13 +25944,13 @@ "decorators": [] }, { - "$id": "1767", + "$id": "1894", "kind": "method", "name": "jobName", "serializedName": "jobName", "doc": "The name of the JobResource", "type": { - "$id": "1768", + "$id": "1895", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24195,13 +25966,13 @@ "decorators": [] }, { - "$id": "1769", + "$id": "1896", "kind": "method", "name": "$expand", "serializedName": "$expand", "doc": "$expand is supported on details parameter for job, which provides details on the job stages.", "type": { - "$id": "1770", + "$id": "1897", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24217,12 +25988,12 @@ "decorators": [] }, { - "$id": "1771", + "$id": "1898", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "204" + "$ref": "227" }, "location": "Header", "isApiVersion": false, @@ -24236,7 +26007,7 @@ ], "response": { "type": { - "$ref": "738" + "$ref": "785" } }, "isOverride": false, @@ -24245,7 +26016,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get" }, { - "$id": "1772", + "$id": "1899", "kind": "lro", "name": "update", "accessibility": "public", @@ -24254,20 +26025,20 @@ ], "doc": "Update a JobResource", "operation": { - "$id": "1773", + "$id": "1900", "name": "update", "resourceName": "JobResource", "doc": "Update a JobResource", "accessibility": "public", "parameters": [ { - "$id": "1774", + "$id": "1901", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1775", + "$id": "1902", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24277,7 +26048,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1776", + "$id": "1903", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -24291,18 +26062,18 @@ "readOnly": false }, { - "$id": "1777", + "$id": "1904", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1778", + "$id": "1905", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1779", + "$id": "1906", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24322,13 +26093,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.subscriptionId" }, { - "$id": "1780", + "$id": "1907", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1781", + "$id": "1908", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24346,13 +26117,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.resourceGroupName" }, { - "$id": "1782", + "$id": "1909", "kind": "path", "name": "jobName", "serializedName": "jobName", "doc": "The name of the JobResource", "type": { - "$id": "1783", + "$id": "1910", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24370,13 +26141,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.jobName" }, { - "$id": "1784", + "$id": "1911", "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": "1785", + "$id": "1912", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24391,13 +26162,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.If-Match" }, { - "$id": "1786", + "$id": "1913", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "206" + "$ref": "229" }, "isApiVersion": false, "optional": false, @@ -24408,12 +26179,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.contentType" }, { - "$id": "1787", + "$id": "1914", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "208" + "$ref": "231" }, "isApiVersion": false, "optional": false, @@ -24424,13 +26195,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.accept" }, { - "$id": "1788", + "$id": "1915", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "747" + "$ref": "794" }, "isApiVersion": false, "contentTypes": [ @@ -24450,7 +26221,7 @@ 200 ], "bodyType": { - "$ref": "738" + "$ref": "785" }, "headers": [], "isErrorResponse": false, @@ -24468,7 +26239,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1789", + "$id": "1916", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24480,7 +26251,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1790", + "$id": "1917", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -24510,13 +26281,13 @@ }, "parameters": [ { - "$id": "1791", + "$id": "1918", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1792", + "$id": "1919", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24532,13 +26303,13 @@ "decorators": [] }, { - "$id": "1793", + "$id": "1920", "kind": "method", "name": "jobName", "serializedName": "jobName", "doc": "The name of the JobResource", "type": { - "$id": "1794", + "$id": "1921", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24554,13 +26325,13 @@ "decorators": [] }, { - "$id": "1795", + "$id": "1922", "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": "1796", + "$id": "1923", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24576,13 +26347,13 @@ "decorators": [] }, { - "$id": "1797", + "$id": "1924", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "747" + "$ref": "794" }, "location": "Body", "isApiVersion": false, @@ -24594,13 +26365,13 @@ "decorators": [] }, { - "$id": "1798", + "$id": "1925", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "210" + "$ref": "233" }, "location": "Header", "isApiVersion": false, @@ -24612,12 +26383,12 @@ "decorators": [] }, { - "$id": "1799", + "$id": "1926", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "212" + "$ref": "235" }, "location": "Header", "isApiVersion": false, @@ -24631,7 +26402,7 @@ ], "response": { "type": { - "$ref": "738" + "$ref": "785" } }, "isOverride": false, @@ -24645,7 +26416,7 @@ 200 ], "bodyType": { - "$ref": "738" + "$ref": "785" } } } @@ -24653,13 +26424,13 @@ ], "parameters": [ { - "$id": "1800", + "$id": "1927", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1801", + "$id": "1928", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -24670,7 +26441,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1802", + "$id": "1929", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -24683,10 +26454,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -24701,17 +26472,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1803", + "$id": "1930", "kind": "client", "name": "HciVmInstances", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1804", + "$id": "1931", "kind": "basic", "name": "get", "accessibility": "public", @@ -24720,20 +26491,20 @@ ], "doc": "Gets a virtual machine instance", "operation": { - "$id": "1805", + "$id": "1932", "name": "get", "resourceName": "HciVmInstance", "doc": "Gets a virtual machine instance", "accessibility": "public", "parameters": [ { - "$id": "1806", + "$id": "1933", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1807", + "$id": "1934", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24743,7 +26514,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1808", + "$id": "1935", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -24757,13 +26528,13 @@ "readOnly": false }, { - "$id": "1809", + "$id": "1936", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1810", + "$id": "1937", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24781,12 +26552,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.HciVmInstances.get.resourceUri" }, { - "$id": "1811", + "$id": "1938", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "214" + "$ref": "237" }, "isApiVersion": false, "optional": false, @@ -24803,7 +26574,7 @@ 200 ], "bodyType": { - "$ref": "750" + "$ref": "797" }, "headers": [], "isErrorResponse": false, @@ -24828,13 +26599,13 @@ }, "parameters": [ { - "$id": "1812", + "$id": "1939", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1813", + "$id": "1940", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24850,12 +26621,12 @@ "decorators": [] }, { - "$id": "1814", + "$id": "1941", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "214" + "$ref": "237" }, "location": "Header", "isApiVersion": false, @@ -24869,7 +26640,7 @@ ], "response": { "type": { - "$ref": "750" + "$ref": "797" } }, "isOverride": false, @@ -24880,13 +26651,13 @@ ], "parameters": [ { - "$id": "1815", + "$id": "1942", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1816", + "$id": "1943", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -24897,7 +26668,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1817", + "$id": "1944", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -24910,7 +26681,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" } ], "initializedBy": 0, @@ -24925,17 +26696,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1818", + "$id": "1945", "kind": "client", "name": "GroupQuotaSubscriptionRequestStatuses", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1819", + "$id": "1946", "kind": "basic", "name": "get", "accessibility": "public", @@ -24944,20 +26715,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": "1820", + "$id": "1947", "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": "1821", + "$id": "1948", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1822", + "$id": "1949", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -24967,7 +26738,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1823", + "$id": "1950", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -24981,13 +26752,13 @@ "readOnly": false }, { - "$id": "1824", + "$id": "1951", "kind": "path", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1825", + "$id": "1952", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25005,13 +26776,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaSubscriptionRequestStatuses.get.managementGroupId" }, { - "$id": "1826", + "$id": "1953", "kind": "path", "name": "requestId", "serializedName": "requestId", "doc": "The name of the GroupQuotaSubscriptionRequestStatus", "type": { - "$id": "1827", + "$id": "1954", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25029,12 +26800,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaSubscriptionRequestStatuses.get.requestId" }, { - "$id": "1828", + "$id": "1955", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "216" + "$ref": "239" }, "isApiVersion": false, "optional": false, @@ -25051,7 +26822,7 @@ 200 ], "bodyType": { - "$ref": "758" + "$ref": "805" }, "headers": [], "isErrorResponse": false, @@ -25071,13 +26842,13 @@ }, "parameters": [ { - "$id": "1829", + "$id": "1956", "kind": "method", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1830", + "$id": "1957", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25093,13 +26864,13 @@ "decorators": [] }, { - "$id": "1831", + "$id": "1958", "kind": "method", "name": "requestId", "serializedName": "requestId", "doc": "The name of the GroupQuotaSubscriptionRequestStatus", "type": { - "$id": "1832", + "$id": "1959", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25115,12 +26886,12 @@ "decorators": [] }, { - "$id": "1833", + "$id": "1960", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "216" + "$ref": "239" }, "location": "Header", "isApiVersion": false, @@ -25134,7 +26905,7 @@ ], "response": { "type": { - "$ref": "758" + "$ref": "805" } }, "isOverride": false, @@ -25145,13 +26916,13 @@ ], "parameters": [ { - "$id": "1834", + "$id": "1961", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1835", + "$id": "1962", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -25162,7 +26933,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1836", + "$id": "1963", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -25175,7 +26946,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" } ], "initializedBy": 0, @@ -25190,17 +26961,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1837", + "$id": "1964", "kind": "client", "name": "GroupQuotaLimitLists", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1838", + "$id": "1965", "kind": "basic", "name": "list", "accessibility": "public", @@ -25209,20 +26980,20 @@ ], "doc": "Gets the GroupQuotaLimits for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}.", "operation": { - "$id": "1839", + "$id": "1966", "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": "1840", + "$id": "1967", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1841", + "$id": "1968", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25232,7 +27003,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1842", + "$id": "1969", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -25246,13 +27017,13 @@ "readOnly": false }, { - "$id": "1843", + "$id": "1970", "kind": "path", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1844", + "$id": "1971", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25270,13 +27041,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.list.managementGroupId" }, { - "$id": "1845", + "$id": "1972", "kind": "path", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "1846", + "$id": "1973", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25294,13 +27065,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.list.groupQuotaName" }, { - "$id": "1847", + "$id": "1974", "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": "1848", + "$id": "1975", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25318,18 +27089,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.list.resourceProviderName" }, { - "$id": "1849", + "$id": "1976", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1850", + "$id": "1977", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1851", + "$id": "1978", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25349,12 +27120,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.list.location" }, { - "$id": "1852", + "$id": "1979", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "218" + "$ref": "241" }, "isApiVersion": false, "optional": false, @@ -25371,7 +27142,7 @@ 200 ], "bodyType": { - "$ref": "784" + "$ref": "831" }, "headers": [], "isErrorResponse": false, @@ -25391,13 +27162,13 @@ }, "parameters": [ { - "$id": "1853", + "$id": "1980", "kind": "method", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1854", + "$id": "1981", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25413,13 +27184,13 @@ "decorators": [] }, { - "$id": "1855", + "$id": "1982", "kind": "method", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "1856", + "$id": "1983", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25435,13 +27206,13 @@ "decorators": [] }, { - "$id": "1857", + "$id": "1984", "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": "1858", + "$id": "1985", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25457,18 +27228,18 @@ "decorators": [] }, { - "$id": "1859", + "$id": "1986", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1860", + "$id": "1987", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1861", + "$id": "1988", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25486,12 +27257,12 @@ "decorators": [] }, { - "$id": "1862", + "$id": "1989", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "218" + "$ref": "241" }, "location": "Header", "isApiVersion": false, @@ -25505,7 +27276,7 @@ ], "response": { "type": { - "$ref": "784" + "$ref": "831" } }, "isOverride": false, @@ -25514,7 +27285,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.list" }, { - "$id": "1863", + "$id": "1990", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -25523,20 +27294,20 @@ ], "doc": "Create a GroupQuotaLimitList", "operation": { - "$id": "1864", + "$id": "1991", "name": "createOrUpdate", "resourceName": "GroupQuotaLimitList", "doc": "Create a GroupQuotaLimitList", "accessibility": "public", "parameters": [ { - "$id": "1865", + "$id": "1992", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1866", + "$id": "1993", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25546,7 +27317,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1867", + "$id": "1994", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -25560,13 +27331,13 @@ "readOnly": false }, { - "$id": "1868", + "$id": "1995", "kind": "path", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1869", + "$id": "1996", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25584,13 +27355,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate.managementGroupId" }, { - "$id": "1870", + "$id": "1997", "kind": "path", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "1871", + "$id": "1998", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25608,13 +27379,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate.groupQuotaName" }, { - "$id": "1872", + "$id": "1999", "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": "1873", + "$id": "2000", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25632,18 +27403,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate.resourceProviderName" }, { - "$id": "1874", + "$id": "2001", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1875", + "$id": "2002", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1876", + "$id": "2003", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25663,13 +27434,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate.location" }, { - "$id": "1877", + "$id": "2004", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "220" + "$ref": "243" }, "isApiVersion": false, "optional": true, @@ -25680,12 +27451,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate.contentType" }, { - "$id": "1878", + "$id": "2005", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "222" + "$ref": "245" }, "isApiVersion": false, "optional": false, @@ -25696,13 +27467,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.createOrUpdate.accept" }, { - "$id": "1879", + "$id": "2006", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "784" + "$ref": "831" }, "isApiVersion": false, "contentTypes": [ @@ -25722,7 +27493,7 @@ 200 ], "bodyType": { - "$ref": "784" + "$ref": "831" }, "headers": [], "isErrorResponse": false, @@ -25735,7 +27506,7 @@ 201 ], "bodyType": { - "$ref": "784" + "$ref": "831" }, "headers": [ { @@ -25743,12 +27514,12 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1880", + "$id": "2007", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "1881", + "$id": "2008", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -25762,7 +27533,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1882", + "$id": "2009", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25774,7 +27545,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1883", + "$id": "2010", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -25802,13 +27573,13 @@ }, "parameters": [ { - "$id": "1884", + "$id": "2011", "kind": "method", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1885", + "$id": "2012", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25824,13 +27595,13 @@ "decorators": [] }, { - "$id": "1886", + "$id": "2013", "kind": "method", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "1887", + "$id": "2014", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25846,13 +27617,13 @@ "decorators": [] }, { - "$id": "1888", + "$id": "2015", "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": "1889", + "$id": "2016", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25868,18 +27639,18 @@ "decorators": [] }, { - "$id": "1890", + "$id": "2017", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1891", + "$id": "2018", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1892", + "$id": "2019", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25897,13 +27668,13 @@ "decorators": [] }, { - "$id": "1893", + "$id": "2020", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "784" + "$ref": "831" }, "location": "Body", "isApiVersion": false, @@ -25915,18 +27686,18 @@ "decorators": [] }, { - "$id": "1894", + "$id": "2021", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "1895", + "$id": "2022", "kind": "enum", "name": "createOrUpdateContentType", "crossLanguageDefinitionId": "", "valueType": { - "$id": "1896", + "$id": "2023", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -25934,12 +27705,12 @@ }, "values": [ { - "$id": "1897", + "$id": "2024", "kind": "enumvalue", "name": "application/json", "value": "application/json", "valueType": { - "$id": "1898", + "$id": "2025", "kind": "string", "decorators": [], "doc": "A sequence of textual characters.", @@ -25947,7 +27718,7 @@ "crossLanguageDefinitionId": "TypeSpec.string" }, "enumType": { - "$ref": "1895" + "$ref": "2022" }, "decorators": [] } @@ -25968,12 +27739,12 @@ "decorators": [] }, { - "$id": "1899", + "$id": "2026", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "224" + "$ref": "247" }, "location": "Header", "isApiVersion": false, @@ -25987,7 +27758,7 @@ ], "response": { "type": { - "$ref": "784" + "$ref": "831" } }, "isOverride": false, @@ -26001,13 +27772,13 @@ 200 ], "bodyType": { - "$ref": "784" + "$ref": "831" } } } }, { - "$id": "1900", + "$id": "2027", "kind": "lro", "name": "update", "accessibility": "public", @@ -26016,20 +27787,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": "1901", + "$id": "2028", "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": "1902", + "$id": "2029", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1903", + "$id": "2030", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26039,7 +27810,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1904", + "$id": "2031", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -26053,13 +27824,13 @@ "readOnly": false }, { - "$id": "1905", + "$id": "2032", "kind": "path", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1906", + "$id": "2033", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26077,13 +27848,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.update.managementGroupId" }, { - "$id": "1907", + "$id": "2034", "kind": "path", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "1908", + "$id": "2035", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26101,13 +27872,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.update.groupQuotaName" }, { - "$id": "1909", + "$id": "2036", "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": "1910", + "$id": "2037", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26125,18 +27896,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.update.resourceProviderName" }, { - "$id": "1911", + "$id": "2038", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1912", + "$id": "2039", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1913", + "$id": "2040", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26156,13 +27927,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.update.location" }, { - "$id": "1914", + "$id": "2041", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "226" + "$ref": "249" }, "isApiVersion": false, "optional": true, @@ -26173,12 +27944,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.update.contentType" }, { - "$id": "1915", + "$id": "2042", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "228" + "$ref": "251" }, "isApiVersion": false, "optional": false, @@ -26189,13 +27960,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaLimitLists.update.accept" }, { - "$id": "1916", + "$id": "2043", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "Resource create parameters.", "type": { - "$ref": "794" + "$ref": "841" }, "isApiVersion": false, "contentTypes": [ @@ -26215,7 +27986,7 @@ 200 ], "bodyType": { - "$ref": "784" + "$ref": "831" }, "headers": [], "isErrorResponse": false, @@ -26233,12 +28004,12 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1917", + "$id": "2044", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "1918", + "$id": "2045", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -26252,7 +28023,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1919", + "$id": "2046", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26264,7 +28035,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1920", + "$id": "2047", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -26289,13 +28060,13 @@ }, "parameters": [ { - "$id": "1921", + "$id": "2048", "kind": "method", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1922", + "$id": "2049", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26311,13 +28082,13 @@ "decorators": [] }, { - "$id": "1923", + "$id": "2050", "kind": "method", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "1924", + "$id": "2051", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26333,13 +28104,13 @@ "decorators": [] }, { - "$id": "1925", + "$id": "2052", "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": "1926", + "$id": "2053", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26355,18 +28126,18 @@ "decorators": [] }, { - "$id": "1927", + "$id": "2054", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1928", + "$id": "2055", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1929", + "$id": "2056", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26384,13 +28155,13 @@ "decorators": [] }, { - "$id": "1930", + "$id": "2057", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "Resource create parameters.", "type": { - "$ref": "794" + "$ref": "841" }, "location": "Body", "isApiVersion": false, @@ -26402,18 +28173,18 @@ "decorators": [] }, { - "$id": "1931", + "$id": "2058", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "1932", + "$id": "2059", "kind": "enum", "name": "updateContentType", "crossLanguageDefinitionId": "", "valueType": { - "$id": "1933", + "$id": "2060", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26421,12 +28192,12 @@ }, "values": [ { - "$id": "1934", + "$id": "2061", "kind": "enumvalue", "name": "application/json", "value": "application/json", "valueType": { - "$id": "1935", + "$id": "2062", "kind": "string", "decorators": [], "doc": "A sequence of textual characters.", @@ -26434,7 +28205,7 @@ "crossLanguageDefinitionId": "TypeSpec.string" }, "enumType": { - "$ref": "1932" + "$ref": "2059" }, "decorators": [] } @@ -26455,12 +28226,12 @@ "decorators": [] }, { - "$id": "1936", + "$id": "2063", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "230" + "$ref": "253" }, "location": "Header", "isApiVersion": false, @@ -26474,7 +28245,7 @@ ], "response": { "type": { - "$ref": "784" + "$ref": "831" } }, "isOverride": false, @@ -26488,7 +28259,7 @@ 200 ], "bodyType": { - "$ref": "784" + "$ref": "831" } } } @@ -26496,13 +28267,13 @@ ], "parameters": [ { - "$id": "1937", + "$id": "2064", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1938", + "$id": "2065", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -26513,7 +28284,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1939", + "$id": "2066", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -26526,7 +28297,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" } ], "initializedBy": 0, @@ -26541,17 +28312,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1940", + "$id": "2067", "kind": "client", "name": "SubscriptionQuotaAllocationsLists", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1941", + "$id": "2068", "kind": "basic", "name": "get", "accessibility": "public", @@ -26560,20 +28331,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": "1942", + "$id": "2069", "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": "1943", + "$id": "2070", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1944", + "$id": "2071", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26583,7 +28354,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1945", + "$id": "2072", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -26597,13 +28368,13 @@ "readOnly": false }, { - "$id": "1946", + "$id": "2073", "kind": "path", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1947", + "$id": "2074", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26621,18 +28392,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SubscriptionQuotaAllocationsLists.get.managementGroupId" }, { - "$id": "1948", + "$id": "2075", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1949", + "$id": "2076", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1950", + "$id": "2077", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26652,13 +28423,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SubscriptionQuotaAllocationsLists.get.subscriptionId" }, { - "$id": "1951", + "$id": "2078", "kind": "path", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "1952", + "$id": "2079", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26676,13 +28447,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SubscriptionQuotaAllocationsLists.get.groupQuotaName" }, { - "$id": "1953", + "$id": "2080", "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": "1954", + "$id": "2081", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26700,18 +28471,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SubscriptionQuotaAllocationsLists.get.resourceProviderName" }, { - "$id": "1955", + "$id": "2082", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1956", + "$id": "2083", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1957", + "$id": "2084", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26731,12 +28502,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SubscriptionQuotaAllocationsLists.get.location" }, { - "$id": "1958", + "$id": "2085", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "232" + "$ref": "255" }, "isApiVersion": false, "optional": false, @@ -26753,7 +28524,7 @@ 200 ], "bodyType": { - "$ref": "797" + "$ref": "844" }, "headers": [], "isErrorResponse": false, @@ -26773,13 +28544,13 @@ }, "parameters": [ { - "$id": "1959", + "$id": "2086", "kind": "method", "name": "managementGroupId", "serializedName": "managementGroupId", "doc": "The management group ID.", "type": { - "$id": "1960", + "$id": "2087", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26795,13 +28566,13 @@ "decorators": [] }, { - "$id": "1961", + "$id": "2088", "kind": "method", "name": "groupQuotaName", "serializedName": "groupQuotaName", "doc": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "type": { - "$id": "1962", + "$id": "2089", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26817,13 +28588,13 @@ "decorators": [] }, { - "$id": "1963", + "$id": "2090", "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": "1964", + "$id": "2091", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26839,18 +28610,18 @@ "decorators": [] }, { - "$id": "1965", + "$id": "2092", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1966", + "$id": "2093", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1967", + "$id": "2094", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26868,12 +28639,12 @@ "decorators": [] }, { - "$id": "1968", + "$id": "2095", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "232" + "$ref": "255" }, "location": "Header", "isApiVersion": false, @@ -26887,7 +28658,7 @@ ], "response": { "type": { - "$ref": "797" + "$ref": "844" } }, "isOverride": false, @@ -26898,13 +28669,13 @@ ], "parameters": [ { - "$id": "1969", + "$id": "2096", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1970", + "$id": "2097", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -26915,7 +28686,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1971", + "$id": "2098", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -26928,10 +28699,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -26946,18 +28717,18 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1972", + "$id": "2099", "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": "1973", + "$id": "2100", "kind": "lro", "name": "queryNetworkSiblingSet", "accessibility": "public", @@ -26966,20 +28737,20 @@ ], "doc": "Query network sibling set - a provider-level async action.\nThis is a non-resource LRO operation that returns NetworkSiblingSet.", "operation": { - "$id": "1974", + "$id": "2101", "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": "1975", + "$id": "2102", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1976", + "$id": "2103", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -26989,7 +28760,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1977", + "$id": "2104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -27003,13 +28774,13 @@ "readOnly": false }, { - "$id": "1978", + "$id": "2105", "kind": "path", "name": "provider", "serializedName": "provider", "doc": "The provider namespace for the resource.", "type": { - "$ref": "234" + "$ref": "257" }, "isApiVersion": false, "explode": false, @@ -27023,13 +28794,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.NetworkProviderActions.queryNetworkSiblingSet.provider" }, { - "$id": "1979", + "$id": "2106", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "236" + "$ref": "259" }, "isApiVersion": false, "optional": false, @@ -27040,12 +28811,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.NetworkProviderActions.queryNetworkSiblingSet.contentType" }, { - "$id": "1980", + "$id": "2107", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "238" + "$ref": "261" }, "isApiVersion": false, "optional": false, @@ -27056,13 +28827,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.NetworkProviderActions.queryNetworkSiblingSet.accept" }, { - "$id": "1981", + "$id": "2108", "kind": "body", "name": "body", "serializedName": "body", "doc": "The request body", "type": { - "$ref": "806" + "$ref": "853" }, "isApiVersion": false, "contentTypes": [ @@ -27087,7 +28858,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1982", + "$id": "2109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27099,7 +28870,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1983", + "$id": "2110", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -27114,7 +28885,7 @@ 200 ], "bodyType": { - "$ref": "811" + "$ref": "858" }, "headers": [], "isErrorResponse": false, @@ -27137,13 +28908,13 @@ }, "parameters": [ { - "$id": "1984", + "$id": "2111", "kind": "method", "name": "provider", "serializedName": "provider", "doc": "The provider namespace for the resource.", "type": { - "$ref": "240" + "$ref": "263" }, "location": "Path", "isApiVersion": false, @@ -27155,13 +28926,13 @@ "decorators": [] }, { - "$id": "1985", + "$id": "2112", "kind": "method", "name": "body", "serializedName": "body", "doc": "The request body", "type": { - "$ref": "806" + "$ref": "853" }, "location": "Body", "isApiVersion": false, @@ -27173,13 +28944,13 @@ "decorators": [] }, { - "$id": "1986", + "$id": "2113", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "242" + "$ref": "265" }, "location": "Header", "isApiVersion": false, @@ -27191,12 +28962,12 @@ "decorators": [] }, { - "$id": "1987", + "$id": "2114", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "244" + "$ref": "267" }, "location": "Header", "isApiVersion": false, @@ -27210,7 +28981,7 @@ ], "response": { "type": { - "$ref": "811" + "$ref": "858" } }, "isOverride": false, @@ -27224,7 +28995,7 @@ 200 ], "bodyType": { - "$ref": "811" + "$ref": "858" } } } @@ -27232,13 +29003,13 @@ ], "parameters": [ { - "$id": "1988", + "$id": "2115", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1989", + "$id": "2116", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -27249,7 +29020,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1990", + "$id": "2117", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -27262,7 +29033,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" } ], "initializedBy": 0, @@ -27272,17 +29043,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "1991", + "$id": "2118", "kind": "client", "name": "Joos", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "1992", + "$id": "2119", "kind": "basic", "name": "createOrUpdate", "accessibility": "public", @@ -27291,20 +29062,20 @@ ], "doc": "Create a Joo", "operation": { - "$id": "1993", + "$id": "2120", "name": "createOrUpdate", "resourceName": "Joo", "doc": "Create a Joo", "accessibility": "public", "parameters": [ { - "$id": "1994", + "$id": "2121", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1995", + "$id": "2122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27314,7 +29085,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1996", + "$id": "2123", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -27328,18 +29099,18 @@ "readOnly": false }, { - "$id": "1997", + "$id": "2124", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1998", + "$id": "2125", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1999", + "$id": "2126", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27359,13 +29130,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.createOrUpdate.subscriptionId" }, { - "$id": "2000", + "$id": "2127", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2001", + "$id": "2128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27383,13 +29154,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.createOrUpdate.resourceGroupName" }, { - "$id": "2002", + "$id": "2129", "kind": "path", "name": "jooName", "serializedName": "jooName", "doc": "The name of the Joo", "type": { - "$id": "2003", + "$id": "2130", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27407,13 +29178,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.createOrUpdate.jooName" }, { - "$id": "2004", + "$id": "2131", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "246" + "$ref": "269" }, "isApiVersion": false, "optional": false, @@ -27424,12 +29195,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.createOrUpdate.contentType" }, { - "$id": "2005", + "$id": "2132", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "248" + "$ref": "271" }, "isApiVersion": false, "optional": false, @@ -27440,13 +29211,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.createOrUpdate.accept" }, { - "$id": "2006", + "$id": "2133", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "831" + "$ref": "878" }, "isApiVersion": false, "contentTypes": [ @@ -27466,7 +29237,7 @@ 200 ], "bodyType": { - "$ref": "831" + "$ref": "878" }, "headers": [], "isErrorResponse": false, @@ -27479,7 +29250,7 @@ 201 ], "bodyType": { - "$ref": "831" + "$ref": "878" }, "headers": [], "isErrorResponse": false, @@ -27507,13 +29278,13 @@ }, "parameters": [ { - "$id": "2007", + "$id": "2134", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2008", + "$id": "2135", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27529,13 +29300,13 @@ "decorators": [] }, { - "$id": "2009", + "$id": "2136", "kind": "method", "name": "jooName", "serializedName": "jooName", "doc": "The name of the Joo", "type": { - "$id": "2010", + "$id": "2137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27551,13 +29322,13 @@ "decorators": [] }, { - "$id": "2011", + "$id": "2138", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "831" + "$ref": "878" }, "location": "Body", "isApiVersion": false, @@ -27569,13 +29340,13 @@ "decorators": [] }, { - "$id": "2012", + "$id": "2139", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "246" + "$ref": "269" }, "location": "Header", "isApiVersion": false, @@ -27587,12 +29358,12 @@ "decorators": [] }, { - "$id": "2013", + "$id": "2140", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "248" + "$ref": "271" }, "location": "Header", "isApiVersion": false, @@ -27606,7 +29377,7 @@ ], "response": { "type": { - "$ref": "831" + "$ref": "878" } }, "isOverride": false, @@ -27615,7 +29386,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.createOrUpdate" }, { - "$id": "2014", + "$id": "2141", "kind": "basic", "name": "get", "accessibility": "public", @@ -27624,20 +29395,20 @@ ], "doc": "Get a Joo", "operation": { - "$id": "2015", + "$id": "2142", "name": "get", "resourceName": "Joo", "doc": "Get a Joo", "accessibility": "public", "parameters": [ { - "$id": "2016", + "$id": "2143", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2017", + "$id": "2144", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27647,7 +29418,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2018", + "$id": "2145", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -27661,18 +29432,18 @@ "readOnly": false }, { - "$id": "2019", + "$id": "2146", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2020", + "$id": "2147", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2021", + "$id": "2148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27692,13 +29463,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.get.subscriptionId" }, { - "$id": "2022", + "$id": "2149", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2023", + "$id": "2150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27716,13 +29487,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.get.resourceGroupName" }, { - "$id": "2024", + "$id": "2151", "kind": "path", "name": "jooName", "serializedName": "jooName", "doc": "The name of the Joo", "type": { - "$id": "2025", + "$id": "2152", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27740,12 +29511,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.get.jooName" }, { - "$id": "2026", + "$id": "2153", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "250" + "$ref": "273" }, "isApiVersion": false, "optional": false, @@ -27762,7 +29533,7 @@ 200 ], "bodyType": { - "$ref": "831" + "$ref": "878" }, "headers": [], "isErrorResponse": false, @@ -27787,13 +29558,13 @@ }, "parameters": [ { - "$id": "2027", + "$id": "2154", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2028", + "$id": "2155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27809,13 +29580,13 @@ "decorators": [] }, { - "$id": "2029", + "$id": "2156", "kind": "method", "name": "jooName", "serializedName": "jooName", "doc": "The name of the Joo", "type": { - "$id": "2030", + "$id": "2157", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27831,12 +29602,12 @@ "decorators": [] }, { - "$id": "2031", + "$id": "2158", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "250" + "$ref": "273" }, "location": "Header", "isApiVersion": false, @@ -27850,7 +29621,7 @@ ], "response": { "type": { - "$ref": "831" + "$ref": "878" } }, "isOverride": false, @@ -27859,7 +29630,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.get" }, { - "$id": "2032", + "$id": "2159", "kind": "lro", "name": "delete", "accessibility": "public", @@ -27868,20 +29639,20 @@ ], "doc": "Delete a Joo", "operation": { - "$id": "2033", + "$id": "2160", "name": "delete", "resourceName": "Joo", "doc": "Delete a Joo", "accessibility": "public", "parameters": [ { - "$id": "2034", + "$id": "2161", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2035", + "$id": "2162", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27891,7 +29662,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2036", + "$id": "2163", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -27905,18 +29676,18 @@ "readOnly": false }, { - "$id": "2037", + "$id": "2164", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2038", + "$id": "2165", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2039", + "$id": "2166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27936,13 +29707,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.delete.subscriptionId" }, { - "$id": "2040", + "$id": "2167", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2041", + "$id": "2168", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27960,13 +29731,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Joos.delete.resourceGroupName" }, { - "$id": "2042", + "$id": "2169", "kind": "path", "name": "jooName", "serializedName": "jooName", "doc": "The name of the Joo", "type": { - "$id": "2043", + "$id": "2170", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -27995,7 +29766,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "2044", + "$id": "2171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28007,7 +29778,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "2045", + "$id": "2172", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -28041,13 +29812,13 @@ }, "parameters": [ { - "$id": "2046", + "$id": "2173", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2047", + "$id": "2174", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28063,13 +29834,13 @@ "decorators": [] }, { - "$id": "2048", + "$id": "2175", "kind": "method", "name": "jooName", "serializedName": "jooName", "doc": "The name of the Joo", "type": { - "$id": "2049", + "$id": "2176", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28102,13 +29873,13 @@ ], "parameters": [ { - "$id": "2050", + "$id": "2177", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "2051", + "$id": "2178", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -28119,7 +29890,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "2052", + "$id": "2179", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -28132,10 +29903,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -28150,17 +29921,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "2053", + "$id": "2180", "kind": "client", "name": "SAPVirtualInstances", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "2054", + "$id": "2181", "kind": "basic", "name": "get", "accessibility": "public", @@ -28169,20 +29940,20 @@ ], "doc": "Gets a Virtual Instance for SAP solutions resource", "operation": { - "$id": "2055", + "$id": "2182", "name": "get", "resourceName": "SAPVirtualInstance", "doc": "Gets a Virtual Instance for SAP solutions resource", "accessibility": "public", "parameters": [ { - "$id": "2056", + "$id": "2183", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2057", + "$id": "2184", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28192,7 +29963,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2058", + "$id": "2185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -28206,18 +29977,18 @@ "readOnly": false }, { - "$id": "2059", + "$id": "2186", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2060", + "$id": "2187", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2061", + "$id": "2188", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28237,13 +30008,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.get.subscriptionId" }, { - "$id": "2062", + "$id": "2189", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2063", + "$id": "2190", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28261,13 +30032,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.get.resourceGroupName" }, { - "$id": "2064", + "$id": "2191", "kind": "path", "name": "sapVirtualInstanceName", "serializedName": "sapVirtualInstanceName", "doc": "The name of the SAPVirtualInstance", "type": { - "$id": "2065", + "$id": "2192", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28285,12 +30056,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.get.sapVirtualInstanceName" }, { - "$id": "2066", + "$id": "2193", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "252" + "$ref": "275" }, "isApiVersion": false, "optional": false, @@ -28307,7 +30078,7 @@ 200 ], "bodyType": { - "$ref": "841" + "$ref": "888" }, "headers": [], "isErrorResponse": false, @@ -28332,13 +30103,13 @@ }, "parameters": [ { - "$id": "2067", + "$id": "2194", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2068", + "$id": "2195", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28354,13 +30125,13 @@ "decorators": [] }, { - "$id": "2069", + "$id": "2196", "kind": "method", "name": "sapVirtualInstanceName", "serializedName": "sapVirtualInstanceName", "doc": "The name of the SAPVirtualInstance", "type": { - "$id": "2070", + "$id": "2197", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28376,12 +30147,12 @@ "decorators": [] }, { - "$id": "2071", + "$id": "2198", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "252" + "$ref": "275" }, "location": "Header", "isApiVersion": false, @@ -28395,7 +30166,7 @@ ], "response": { "type": { - "$ref": "841" + "$ref": "888" } }, "isOverride": false, @@ -28404,7 +30175,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.get" }, { - "$id": "2072", + "$id": "2199", "kind": "lro", "name": "create", "accessibility": "public", @@ -28413,20 +30184,20 @@ ], "doc": "Creates a Virtual Instance for SAP solutions (VIS) resource", "operation": { - "$id": "2073", + "$id": "2200", "name": "create", "resourceName": "SAPVirtualInstance", "doc": "Creates a Virtual Instance for SAP solutions (VIS) resource", "accessibility": "public", "parameters": [ { - "$id": "2074", + "$id": "2201", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2075", + "$id": "2202", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28436,7 +30207,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2076", + "$id": "2203", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -28450,18 +30221,18 @@ "readOnly": false }, { - "$id": "2077", + "$id": "2204", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2078", + "$id": "2205", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2079", + "$id": "2206", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28481,13 +30252,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.subscriptionId" }, { - "$id": "2080", + "$id": "2207", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2081", + "$id": "2208", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28505,13 +30276,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.resourceGroupName" }, { - "$id": "2082", + "$id": "2209", "kind": "path", "name": "sapVirtualInstanceName", "serializedName": "sapVirtualInstanceName", "doc": "The name of the SAPVirtualInstance", "type": { - "$id": "2083", + "$id": "2210", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28529,13 +30300,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.sapVirtualInstanceName" }, { - "$id": "2084", + "$id": "2211", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "254" + "$ref": "277" }, "isApiVersion": false, "optional": false, @@ -28546,12 +30317,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.contentType" }, { - "$id": "2085", + "$id": "2212", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "256" + "$ref": "279" }, "isApiVersion": false, "optional": false, @@ -28562,13 +30333,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.create.accept" }, { - "$id": "2086", + "$id": "2213", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "841" + "$ref": "888" }, "isApiVersion": false, "contentTypes": [ @@ -28588,7 +30359,7 @@ 200 ], "bodyType": { - "$ref": "841" + "$ref": "888" }, "headers": [], "isErrorResponse": false, @@ -28601,7 +30372,7 @@ 201 ], "bodyType": { - "$ref": "841" + "$ref": "888" }, "headers": [ { @@ -28609,7 +30380,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "2087", + "$id": "2214", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28621,7 +30392,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "2088", + "$id": "2215", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -28654,13 +30425,13 @@ }, "parameters": [ { - "$id": "2089", + "$id": "2216", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2090", + "$id": "2217", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28676,13 +30447,13 @@ "decorators": [] }, { - "$id": "2091", + "$id": "2218", "kind": "method", "name": "sapVirtualInstanceName", "serializedName": "sapVirtualInstanceName", "doc": "The name of the SAPVirtualInstance", "type": { - "$id": "2092", + "$id": "2219", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28698,13 +30469,13 @@ "decorators": [] }, { - "$id": "2093", + "$id": "2220", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "841" + "$ref": "888" }, "location": "Body", "isApiVersion": false, @@ -28716,13 +30487,13 @@ "decorators": [] }, { - "$id": "2094", + "$id": "2221", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "258" + "$ref": "281" }, "location": "Header", "isApiVersion": false, @@ -28734,12 +30505,12 @@ "decorators": [] }, { - "$id": "2095", + "$id": "2222", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "260" + "$ref": "283" }, "location": "Header", "isApiVersion": false, @@ -28753,7 +30524,7 @@ ], "response": { "type": { - "$ref": "841" + "$ref": "888" } }, "isOverride": false, @@ -28767,13 +30538,13 @@ 200 ], "bodyType": { - "$ref": "841" + "$ref": "888" } } } }, { - "$id": "2096", + "$id": "2223", "kind": "basic", "name": "getAvailabilityZoneDetails", "accessibility": "public", @@ -28782,20 +30553,20 @@ ], "doc": "Get the recommended SAP Availability Zone Pair Details for your region.", "operation": { - "$id": "2097", + "$id": "2224", "name": "getAvailabilityZoneDetails", "resourceName": "SAPVirtualInstances", "doc": "Get the recommended SAP Availability Zone Pair Details for your region.", "accessibility": "public", "parameters": [ { - "$id": "2098", + "$id": "2225", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2099", + "$id": "2226", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28805,7 +30576,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2100", + "$id": "2227", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -28819,18 +30590,18 @@ "readOnly": false }, { - "$id": "2101", + "$id": "2228", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2102", + "$id": "2229", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2103", + "$id": "2230", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28850,18 +30621,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.subscriptionId" }, { - "$id": "2104", + "$id": "2231", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "2105", + "$id": "2232", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "2106", + "$id": "2233", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28881,13 +30652,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.location" }, { - "$id": "2107", + "$id": "2234", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "262" + "$ref": "285" }, "isApiVersion": false, "optional": false, @@ -28898,12 +30669,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.contentType" }, { - "$id": "2108", + "$id": "2235", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "264" + "$ref": "287" }, "isApiVersion": false, "optional": false, @@ -28914,13 +30685,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SAPVirtualInstances.getAvailabilityZoneDetails.accept" }, { - "$id": "2109", + "$id": "2236", "kind": "body", "name": "body", "serializedName": "body", "doc": "The content of the action request", "type": { - "$ref": "850" + "$ref": "897" }, "isApiVersion": false, "contentTypes": [ @@ -28940,7 +30711,7 @@ 200 ], "bodyType": { - "$ref": "853" + "$ref": "900" }, "headers": [], "isErrorResponse": false, @@ -28968,18 +30739,18 @@ }, "parameters": [ { - "$id": "2110", + "$id": "2237", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "2111", + "$id": "2238", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "2112", + "$id": "2239", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -28997,13 +30768,13 @@ "decorators": [] }, { - "$id": "2113", + "$id": "2240", "kind": "method", "name": "body", "serializedName": "body", "doc": "The content of the action request", "type": { - "$ref": "850" + "$ref": "897" }, "location": "Body", "isApiVersion": false, @@ -29015,13 +30786,13 @@ "decorators": [] }, { - "$id": "2114", + "$id": "2241", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "262" + "$ref": "285" }, "location": "Header", "isApiVersion": false, @@ -29033,12 +30804,12 @@ "decorators": [] }, { - "$id": "2115", + "$id": "2242", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "264" + "$ref": "287" }, "location": "Header", "isApiVersion": false, @@ -29052,7 +30823,7 @@ ], "response": { "type": { - "$ref": "853" + "$ref": "900" } }, "isOverride": false, @@ -29063,13 +30834,13 @@ ], "parameters": [ { - "$id": "2116", + "$id": "2243", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "2117", + "$id": "2244", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -29080,7 +30851,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "2118", + "$id": "2245", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -29093,10 +30864,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -29111,17 +30882,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "2119", + "$id": "2246", "kind": "client", "name": "Bar", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "2120", + "$id": "2247", "kind": "basic", "name": "get", "accessibility": "public", @@ -29130,20 +30901,20 @@ ], "doc": "Get a Bar", "operation": { - "$id": "2121", + "$id": "2248", "name": "get", "resourceName": "Bar", "doc": "Get a Bar", "accessibility": "public", "parameters": [ { - "$id": "2122", + "$id": "2249", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2123", + "$id": "2250", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29153,7 +30924,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2124", + "$id": "2251", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -29167,18 +30938,18 @@ "readOnly": false }, { - "$id": "2125", + "$id": "2252", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2126", + "$id": "2253", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2127", + "$id": "2254", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29198,13 +30969,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.subscriptionId" }, { - "$id": "2128", + "$id": "2255", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2129", + "$id": "2256", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29222,13 +30993,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.resourceGroupName" }, { - "$id": "2130", + "$id": "2257", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "2131", + "$id": "2258", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29246,13 +31017,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.fooName" }, { - "$id": "2132", + "$id": "2259", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "2133", + "$id": "2260", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29270,12 +31041,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.barName" }, { - "$id": "2134", + "$id": "2261", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "266" + "$ref": "289" }, "isApiVersion": false, "optional": false, @@ -29292,7 +31063,7 @@ 200 ], "bodyType": { - "$ref": "553" + "$ref": "601" }, "headers": [], "isErrorResponse": false, @@ -29317,13 +31088,13 @@ }, "parameters": [ { - "$id": "2135", + "$id": "2262", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2136", + "$id": "2263", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29339,13 +31110,13 @@ "decorators": [] }, { - "$id": "2137", + "$id": "2264", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "2138", + "$id": "2265", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29361,13 +31132,13 @@ "decorators": [] }, { - "$id": "2139", + "$id": "2266", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "2140", + "$id": "2267", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29383,12 +31154,12 @@ "decorators": [] }, { - "$id": "2141", + "$id": "2268", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "266" + "$ref": "289" }, "location": "Header", "isApiVersion": false, @@ -29402,7 +31173,7 @@ ], "response": { "type": { - "$ref": "553" + "$ref": "601" } }, "isOverride": false, @@ -29411,7 +31182,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get" }, { - "$id": "2142", + "$id": "2269", "kind": "basic", "name": "update", "accessibility": "public", @@ -29420,20 +31191,20 @@ ], "doc": "Update a Bar", "operation": { - "$id": "2143", + "$id": "2270", "name": "update", "resourceName": "Bar", "doc": "Update a Bar", "accessibility": "public", "parameters": [ { - "$id": "2144", + "$id": "2271", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2145", + "$id": "2272", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29443,7 +31214,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2146", + "$id": "2273", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -29457,18 +31228,18 @@ "readOnly": false }, { - "$id": "2147", + "$id": "2274", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2148", + "$id": "2275", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2149", + "$id": "2276", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29488,13 +31259,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.subscriptionId" }, { - "$id": "2150", + "$id": "2277", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2151", + "$id": "2278", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29512,13 +31283,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.resourceGroupName" }, { - "$id": "2152", + "$id": "2279", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "2153", + "$id": "2280", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29536,13 +31307,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.fooName" }, { - "$id": "2154", + "$id": "2281", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "2155", + "$id": "2282", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29560,13 +31331,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.barName" }, { - "$id": "2156", + "$id": "2283", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "268" + "$ref": "291" }, "isApiVersion": false, "optional": false, @@ -29577,12 +31348,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.contentType" }, { - "$id": "2157", + "$id": "2284", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "270" + "$ref": "293" }, "isApiVersion": false, "optional": false, @@ -29593,13 +31364,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.accept" }, { - "$id": "2158", + "$id": "2285", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "553" + "$ref": "601" }, "isApiVersion": false, "contentTypes": [ @@ -29619,7 +31390,7 @@ 200 ], "bodyType": { - "$ref": "553" + "$ref": "601" }, "headers": [], "isErrorResponse": false, @@ -29647,13 +31418,13 @@ }, "parameters": [ { - "$id": "2159", + "$id": "2286", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2160", + "$id": "2287", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29669,13 +31440,13 @@ "decorators": [] }, { - "$id": "2161", + "$id": "2288", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "2162", + "$id": "2289", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29691,13 +31462,13 @@ "decorators": [] }, { - "$id": "2163", + "$id": "2290", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "2164", + "$id": "2291", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29713,13 +31484,13 @@ "decorators": [] }, { - "$id": "2165", + "$id": "2292", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "553" + "$ref": "601" }, "location": "Body", "isApiVersion": false, @@ -29731,13 +31502,13 @@ "decorators": [] }, { - "$id": "2166", + "$id": "2293", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "268" + "$ref": "291" }, "location": "Header", "isApiVersion": false, @@ -29749,12 +31520,12 @@ "decorators": [] }, { - "$id": "2167", + "$id": "2294", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "270" + "$ref": "293" }, "location": "Header", "isApiVersion": false, @@ -29768,7 +31539,7 @@ ], "response": { "type": { - "$ref": "553" + "$ref": "601" } }, "isOverride": false, @@ -29779,13 +31550,13 @@ ], "parameters": [ { - "$id": "2168", + "$id": "2295", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "2169", + "$id": "2296", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -29796,7 +31567,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "2170", + "$id": "2297", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -29809,10 +31580,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -29822,17 +31593,17 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } }, { - "$id": "2171", + "$id": "2298", "kind": "client", "name": "ZooRecommendation", "namespace": "Azure.Generator.MgmtTypeSpec.Tests", "methods": [ { - "$id": "2172", + "$id": "2299", "kind": "basic", "name": "recommend", "accessibility": "public", @@ -29841,20 +31612,20 @@ ], "doc": "A synchronous resource action.", "operation": { - "$id": "2173", + "$id": "2300", "name": "recommend", "resourceName": "Zoos", "doc": "A synchronous resource action.", "accessibility": "public", "parameters": [ { - "$id": "2174", + "$id": "2301", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "2175", + "$id": "2302", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29864,7 +31635,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "2176", + "$id": "2303", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -29878,18 +31649,18 @@ "readOnly": false }, { - "$id": "2177", + "$id": "2304", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "2178", + "$id": "2305", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "2179", + "$id": "2306", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29909,13 +31680,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.recommend.subscriptionId" }, { - "$id": "2180", + "$id": "2307", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2181", + "$id": "2308", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29933,13 +31704,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.recommend.resourceGroupName" }, { - "$id": "2182", + "$id": "2309", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "2183", + "$id": "2310", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -29957,12 +31728,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.recommend.zooName" }, { - "$id": "2184", + "$id": "2311", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "272" + "$ref": "295" }, "isApiVersion": false, "optional": false, @@ -29979,7 +31750,7 @@ 200 ], "bodyType": { - "$ref": "856" + "$ref": "903" }, "headers": [], "isErrorResponse": false, @@ -30004,13 +31775,13 @@ }, "parameters": [ { - "$id": "2185", + "$id": "2312", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "2186", + "$id": "2313", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30026,13 +31797,13 @@ "decorators": [] }, { - "$id": "2187", + "$id": "2314", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "2188", + "$id": "2315", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -30048,12 +31819,12 @@ "decorators": [] }, { - "$id": "2189", + "$id": "2316", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "272" + "$ref": "295" }, "location": "Header", "isApiVersion": false, @@ -30067,7 +31838,7 @@ ], "response": { "type": { - "$ref": "856" + "$ref": "903" } }, "isOverride": false, @@ -30078,13 +31849,13 @@ ], "parameters": [ { - "$id": "2190", + "$id": "2317", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "2191", + "$id": "2318", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -30095,7 +31866,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "2192", + "$id": "2319", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -30108,10 +31879,10 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" }, { - "$ref": "885" + "$ref": "932" }, { - "$ref": "888" + "$ref": "935" } ], "initializedBy": 0, @@ -30121,7 +31892,7 @@ "2024-05-01" ], "parent": { - "$ref": "861" + "$ref": "908" } } ] diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/zoo.tsp b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/zoo.tsp index 44239932ee6d..dd162c55865e 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/zoo.tsp +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/zoo.tsp @@ -71,10 +71,3 @@ model ZooRecommendation { @@clientLocation(Zoos.recommend, "ZooRecommendation"); } - -// We define this model here to test if the generated code would be replaced by Azure.ResourceManager.Models.SubResource via alternateType -namespace Azure.ResourceManager.Models { - model SubResource { } -} - -@@alternateType(MgmtTypeSpec.ZooAddressListListResult.value, Azure.ResourceManager.Models.SubResource[], "csharp"); \ No newline at end of file