From 1f4e3aff49d16b8539363fe763b02915a880298e Mon Sep 17 00:00:00 2001 From: Hong Ma Date: Thu, 7 Nov 2024 16:47:27 -0800 Subject: [PATCH] address comments - type transform and prepend-rp-prefix for generic names --- .../CHANGELOG.md | 9 +- .../README.md | 4 +- ...nager.HybridConnectivity.netstandard2.0.cs | 332 +++++++++--------- .../Samples/Sample_EndpointResource.cs | 6 +- .../Sample_EndpointResourceCollection.cs | 4 +- ...le_HybridConnectivityInventoryResource.cs} | 14 +- ...onnectivityInventoryResourceCollection.cs} | 32 +- .../Sample_PublicCloudConnectorCollection.cs | 2 +- ..._ServiceConfigurationResourceCollection.cs | 4 +- .../Sample_SubscriptionResourceExtensions.cs | 2 +- .../ArmHybridConnectivityModelFactory.cs | 36 +- .../EndpointResourceData.Serialization.cs | 4 +- .../src/Generated/EndpointResourceData.cs | 4 +- .../HybridConnectivityExtensions.cs | 12 +- .../MockableHybridConnectivityArmClient.cs | 12 +- ...ectivityInventoryResource.Serialization.cs | 26 ++ ...=> HybridConnectivityInventoryResource.cs} | 58 +-- ...onnectivityInventoryResourceCollection.cs} | 110 +++--- ...ityInventoryResourceData.Serialization.cs} | 42 +-- ...ybridConnectivityInventoryResourceData.cs} | 14 +- .../InventoryResource.Serialization.cs | 26 -- .../src/Generated/Models/CloudNativeType.cs | 48 --- ...enerateAwsTemplateContent.Serialization.cs | 4 +- .../Models/GenerateAwsTemplateContent.cs | 7 +- .../src/Generated/Models/HostType.cs | 48 --- .../HybridConnectivityCloudNativeType.cs | 48 +++ ...tivityEndpointProperties.Serialization.cs} | 38 +- ...> HybridConnectivityEndpointProperties.cs} | 14 +- .../Models/HybridConnectivityHostType.cs | 48 +++ ...ivityInventoryProperties.Serialization.cs} | 54 +-- ... HybridConnectivityInventoryProperties.cs} | 17 +- .../HybridConnectivityProvisioningState.cs | 60 ++++ ...idConnectivityResourceProvisioningState.cs | 54 +++ .../Models/HybridConnectivityServiceName.cs | 51 +++ ...ventoryResourceListResult.Serialization.cs | 6 +- .../Models/InventoryResourceListResult.cs | 6 +- .../ListCredentialsContent.Serialization.cs | 4 +- .../Models/ListCredentialsContent.cs | 4 +- ...GatewayCredentialsContent.Serialization.cs | 4 +- .../ListIngressGatewayCredentialsContent.cs | 4 +- .../ManagedProxyContent.Serialization.cs | 4 +- .../Generated/Models/ManagedProxyContent.cs | 4 +- .../src/Generated/Models/ProvisioningState.cs | 60 ---- ...cCloudConnectorProperties.Serialization.cs | 18 +- .../Models/PublicCloudConnectorProperties.cs | 10 +- .../Models/ResourceProvisioningState.cs | 54 --- .../src/Generated/Models/ServiceName.cs | 51 --- ...onConfigurationProperties.Serialization.cs | 4 +- .../Models/SolutionConfigurationProperties.cs | 4 +- .../RestOperations/InventoryRestOperations.cs | 16 +- ...ConfigurationResourceData.Serialization.cs | 16 +- .../ServiceConfigurationResourceData.cs | 8 +- .../SolutionConfigurationResource.cs | 20 +- .../src/autorest.md | 26 ++ ...onnectivityManagementMultiCloudTestBase.cs | 55 +++ 55 files changed, 857 insertions(+), 765 deletions(-) rename sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/{Sample_InventoryResource.cs => Sample_HybridConnectivityInventoryResource.cs} (65%) rename sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/{Sample_InventoryResourceCollection.cs => Sample_HybridConnectivityInventoryResourceCollection.cs} (83%) create mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.Serialization.cs rename sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/{InventoryResource.cs => HybridConnectivityInventoryResource.cs} (62%) rename sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/{InventoryResourceCollection.cs => HybridConnectivityInventoryResourceCollection.cs} (61%) rename sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/{InventoryResourceData.Serialization.cs => HybridConnectivityInventoryResourceData.Serialization.cs} (63%) rename sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/{InventoryResourceData.cs => HybridConnectivityInventoryResourceData.cs} (75%) delete mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResource.Serialization.cs delete mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/CloudNativeType.cs delete mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HostType.cs create mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityCloudNativeType.cs rename sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/{EndpointProperties.Serialization.cs => HybridConnectivityEndpointProperties.Serialization.cs} (65%) rename sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/{EndpointProperties.cs => HybridConnectivityEndpointProperties.cs} (78%) create mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityHostType.cs rename sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/{InventoryProperties.Serialization.cs => HybridConnectivityInventoryProperties.Serialization.cs} (67%) rename sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/{InventoryProperties.cs => HybridConnectivityInventoryProperties.cs} (77%) create mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityProvisioningState.cs create mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityResourceProvisioningState.cs create mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityServiceName.cs delete mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ProvisioningState.cs delete mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ResourceProvisioningState.cs delete mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceName.cs create mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/tests/HybridConnectivityManagementMultiCloudTestBase.cs diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/CHANGELOG.md b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/CHANGELOG.md index c3a38e4333b5c..5a74e3c1fd61b 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/CHANGELOG.md +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/CHANGELOG.md @@ -1,18 +1,15 @@ # Release History +- Release SDK for MultiCloud + ## 1.0.0-beta.5 (Unreleased) ### Features Added +- Release SDK for MultiCloud - Enable the new model serialization by using the System.ClientModel, refer this [document](https://aka.ms/azsdk/net/mrw) for more details. - Exposed `JsonModelWriteCore` for model serialization procedure. -### Breaking Changes - -### Bugs Fixed - -### Other Changes - ## 1.0.0-beta.4 (2023-11-29) ### Features Added diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/README.md b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/README.md index 9a7b8f0a27db2..1ee8bd945a056 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/README.md +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/README.md @@ -10,7 +10,7 @@ This library follows the [new Azure SDK guidelines](https://azure.github.io/azur - Better error-handling. - Support uniform telemetry across all languages. -## Getting started +## Getting started ### Install the package @@ -77,4 +77,4 @@ more information, see the [Code of Conduct FAQ][coc_faq] or contact [cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md [coc]: https://opensource.microsoft.com/codeofconduct/ -[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ \ No newline at end of file +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/api/Azure.ResourceManager.HybridConnectivity.netstandard2.0.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/api/Azure.ResourceManager.HybridConnectivity.netstandard2.0.cs index 48da5c626c154..b43fcf2d176b3 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/api/Azure.ResourceManager.HybridConnectivity.netstandard2.0.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/api/Azure.ResourceManager.HybridConnectivity.netstandard2.0.cs @@ -48,7 +48,7 @@ protected EndpointResourceCollection() { } public partial class EndpointResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public EndpointResourceData() { } - public Azure.ResourceManager.HybridConnectivity.Models.EndpointProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.HybridConnectivity.EndpointResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -62,7 +62,7 @@ public static partial class HybridConnectivityExtensions public static Azure.Response GetEndpointResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetEndpointResourceAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.HybridConnectivity.EndpointResourceCollection GetEndpointResources(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.InventoryResource GetInventoryResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryResource GetHybridConnectivityInventoryResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetPublicCloudConnector(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetPublicCloudConnectorAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorResource GetPublicCloudConnectorResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -83,46 +83,46 @@ public static partial class HybridConnectivityExtensions public static Azure.Response PostGenerateAwsTemplate(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.HybridConnectivity.Models.GenerateAwsTemplateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> PostGenerateAwsTemplateAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.HybridConnectivity.Models.GenerateAwsTemplateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class InventoryResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityInventoryResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; - protected InventoryResource() { } - public virtual Azure.ResourceManager.HybridConnectivity.InventoryResourceData Data { get { throw null; } } + protected HybridConnectivityInventoryResource() { } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryResourceData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string resourceUri, string solutionConfiguration, string inventoryId) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HybridConnectivity.InventoryResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.InventoryResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class InventoryResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HybridConnectivityInventoryResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected InventoryResourceCollection() { } + protected HybridConnectivityInventoryResourceCollection() { } public virtual Azure.Response Exists(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class InventoryResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityInventoryResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public InventoryResourceData() { } - public Azure.ResourceManager.HybridConnectivity.Models.InventoryProperties Properties { get { throw null; } set { } } + public HybridConnectivityInventoryResourceData() { } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityInventoryProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.InventoryResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.InventoryResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class PublicCloudConnectorCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -219,9 +219,9 @@ public partial class ServiceConfigurationResourceData : Azure.ResourceManager.Mo { public ServiceConfigurationResourceData() { } public long? Port { get { throw null; } set { } } - public Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public string ResourceId { get { throw null; } set { } } - public Azure.ResourceManager.HybridConnectivity.Models.ServiceName? ServiceName { get { throw null; } set { } } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState? ProvisioningState { get { throw null; } } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName? ServiceName { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -268,9 +268,9 @@ protected SolutionConfigurationResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetInventoryResource(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetInventoryResourceAsync(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.InventoryResourceCollection GetInventoryResources() { throw null; } + public virtual Azure.Response GetHybridConnectivityInventoryResource(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridConnectivityInventoryResourceAsync(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryResourceCollection GetHybridConnectivityInventoryResources() { throw null; } public virtual Azure.ResourceManager.ArmOperation SyncNow(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SyncNowAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.HybridConnectivity.SolutionConfigurationData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -332,7 +332,7 @@ protected MockableHybridConnectivityArmClient() { } public virtual Azure.Response GetEndpointResource(Azure.Core.ResourceIdentifier scope, string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetEndpointResourceAsync(Azure.Core.ResourceIdentifier scope, string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.HybridConnectivity.EndpointResourceCollection GetEndpointResources(Azure.Core.ResourceIdentifier scope) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.InventoryResource GetInventoryResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryResource GetHybridConnectivityInventoryResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorResource GetPublicCloudConnectorResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResource GetServiceConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.Response GetSolutionConfiguration(Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -366,22 +366,22 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { public static partial class ArmHybridConnectivityModelFactory { - public static Azure.ResourceManager.HybridConnectivity.Models.EndpointProperties EndpointProperties(Azure.ResourceManager.HybridConnectivity.Models.EndpointType endpointType = default(Azure.ResourceManager.HybridConnectivity.Models.EndpointType), string resourceId = null, string provisioningState = null) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.EndpointResourceData EndpointResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridConnectivity.Models.EndpointProperties properties = null) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.Models.GenerateAwsTemplateContent GenerateAwsTemplateContent(string connectorId = null, System.Collections.Generic.IEnumerable solutionTypes = null) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.EndpointResourceData EndpointResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointProperties properties = null) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.GenerateAwsTemplateContent GenerateAwsTemplateContent(Azure.Core.ResourceIdentifier connectorId = null, System.Collections.Generic.IEnumerable solutionTypes = null) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointProperties HybridConnectivityEndpointProperties(Azure.ResourceManager.HybridConnectivity.Models.EndpointType endpointType = default(Azure.ResourceManager.HybridConnectivity.Models.EndpointType), string resourceId = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityInventoryProperties HybridConnectivityInventoryProperties(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityCloudNativeType? cloudNativeType = default(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityCloudNativeType?), string cloudNativeResourceId = null, Azure.Core.ResourceIdentifier azureResourceId = null, Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus? status = default(Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus?), string statusDetails = null, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState? provisioningState = default(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryResourceData HybridConnectivityInventoryResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityInventoryProperties properties = null) { throw null; } public static Azure.ResourceManager.HybridConnectivity.Models.IngressGatewayAsset IngressGatewayAsset(string hostname = null, string serverId = null, System.Guid? tenantId = default(System.Guid?), string namespaceName = null, string namespaceNameSuffix = null, string hybridConnectionName = null, string accessKey = null, long? expiresOn = default(long?), string serviceConfigurationToken = null) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.Models.InventoryProperties InventoryProperties(Azure.ResourceManager.HybridConnectivity.Models.CloudNativeType? cloudNativeType = default(Azure.ResourceManager.HybridConnectivity.Models.CloudNativeType?), string cloudNativeResourceId = null, string azureResourceId = null, Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus? status = default(Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus?), string statusDetails = null, Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState? provisioningState = default(Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState?)) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.InventoryResourceData InventoryResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridConnectivity.Models.InventoryProperties properties = null) { throw null; } public static Azure.ResourceManager.HybridConnectivity.Models.ManagedProxyAsset ManagedProxyAsset(string proxy = null, long expiresOn = (long)0) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.Models.ManagedProxyContent ManagedProxyContent(string service = null, string hostname = null, Azure.ResourceManager.HybridConnectivity.Models.ServiceName? serviceName = default(Azure.ResourceManager.HybridConnectivity.Models.ServiceName?)) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.ManagedProxyContent ManagedProxyContent(string service = null, string hostname = null, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName? serviceName = default(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName?)) { throw null; } public static Azure.ResourceManager.HybridConnectivity.Models.OperationStatusResult OperationStatusResult(Azure.Core.ResourceIdentifier id = null, Azure.Core.ResourceIdentifier resourceId = null, string name = null, string status = null, float? percentComplete = default(float?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable operations = null, Azure.ResponseError error = null) { throw null; } public static Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorData PublicCloudConnectorData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.HybridConnectivity.Models.PublicCloudConnectorProperties properties = null) { throw null; } public static Azure.ResourceManager.HybridConnectivity.Models.PublicCloudConnectorPatch PublicCloudConnectorPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IEnumerable awsCloudExcludedAccounts = null, System.Collections.Generic.IDictionary tags = null) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.Models.PublicCloudConnectorProperties PublicCloudConnectorProperties(Azure.ResourceManager.HybridConnectivity.Models.AwsCloudProfile awsCloudProfile = null, Azure.ResourceManager.HybridConnectivity.Models.HostType hostType = default(Azure.ResourceManager.HybridConnectivity.Models.HostType), Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState? provisioningState = default(Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState?), string connectorPrimaryIdentifier = null) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceData ServiceConfigurationResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridConnectivity.Models.ServiceName? serviceName = default(Azure.ResourceManager.HybridConnectivity.Models.ServiceName?), string resourceId = null, long? port = default(long?), Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.PublicCloudConnectorProperties PublicCloudConnectorProperties(Azure.ResourceManager.HybridConnectivity.Models.AwsCloudProfile awsCloudProfile = null, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityHostType hostType = default(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityHostType), Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState? provisioningState = default(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState?), System.Guid? connectorPrimaryIdentifier = default(System.Guid?)) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceData ServiceConfigurationResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName? serviceName = default(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName?), Azure.Core.ResourceIdentifier resourceId = null, long? port = default(long?), Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState? provisioningState = default(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState?)) { throw null; } public static Azure.ResourceManager.HybridConnectivity.SolutionConfigurationData SolutionConfigurationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationProperties properties = null) { throw null; } public static Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationPatch SolutionConfigurationPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationPropertiesUpdate properties = null) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationProperties SolutionConfigurationProperties(Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState? provisioningState = default(Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState?), string solutionType = null, System.Collections.Generic.IDictionary solutionSettings = null, Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus? status = default(Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus?), string statusDetails = null, System.DateTimeOffset? lastSyncOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationProperties SolutionConfigurationProperties(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState? provisioningState = default(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState?), string solutionType = null, System.Collections.Generic.IDictionary solutionSettings = null, Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus? status = default(Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus?), string statusDetails = null, System.DateTimeOffset? lastSyncOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.HybridConnectivity.SolutionTypeResourceData SolutionTypeResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridConnectivity.Models.SolutionTypeProperties properties = null) { throw null; } public static Azure.ResourceManager.HybridConnectivity.Models.SolutionTypeSettings SolutionTypeSettings(string solutionType = null, System.Collections.Generic.IDictionary solutionSettings = null) { throw null; } public static Azure.ResourceManager.HybridConnectivity.Models.TargetResourceEndpointAccess TargetResourceEndpointAccess(string namespaceName = null, string namespaceNameSuffix = null, string hybridConnectionName = null, string accessKey = null, long? expiresOn = default(long?), string serviceConfigurationToken = null) { throw null; } @@ -400,80 +400,154 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CloudNativeType : System.IEquatable + public readonly partial struct EndpointType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EndpointType(string value) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.EndpointType Custom { get { throw null; } } + public static Azure.ResourceManager.HybridConnectivity.Models.EndpointType Default { get { throw null; } } + public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.EndpointType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HybridConnectivity.Models.EndpointType left, Azure.ResourceManager.HybridConnectivity.Models.EndpointType right) { throw null; } + public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.EndpointType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.EndpointType left, Azure.ResourceManager.HybridConnectivity.Models.EndpointType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class GenerateAwsTemplateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GenerateAwsTemplateContent(Azure.Core.ResourceIdentifier connectorId) { } + public Azure.Core.ResourceIdentifier ConnectorId { get { throw null; } } + public System.Collections.Generic.IList SolutionTypes { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.GenerateAwsTemplateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.GenerateAwsTemplateContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct HybridConnectivityCloudNativeType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public CloudNativeType(string value) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.Models.CloudNativeType Ec2 { get { throw null; } } - public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.CloudNativeType other) { throw null; } + public HybridConnectivityCloudNativeType(string value) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityCloudNativeType Ec2 { get { throw null; } } + public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityCloudNativeType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HybridConnectivity.Models.CloudNativeType left, Azure.ResourceManager.HybridConnectivity.Models.CloudNativeType right) { throw null; } - public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.CloudNativeType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.CloudNativeType left, Azure.ResourceManager.HybridConnectivity.Models.CloudNativeType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityCloudNativeType left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityCloudNativeType right) { throw null; } + public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityCloudNativeType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityCloudNativeType left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityCloudNativeType right) { throw null; } public override string ToString() { throw null; } } - public partial class EndpointProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityEndpointProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public EndpointProperties(Azure.ResourceManager.HybridConnectivity.Models.EndpointType endpointType) { } + public HybridConnectivityEndpointProperties(Azure.ResourceManager.HybridConnectivity.Models.EndpointType endpointType) { } public Azure.ResourceManager.HybridConnectivity.Models.EndpointType EndpointType { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } public string ResourceId { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.EndpointProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.EndpointProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EndpointType : System.IEquatable + public readonly partial struct HybridConnectivityHostType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public EndpointType(string value) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.Models.EndpointType Custom { get { throw null; } } - public static Azure.ResourceManager.HybridConnectivity.Models.EndpointType Default { get { throw null; } } - public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.EndpointType other) { throw null; } + public HybridConnectivityHostType(string value) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityHostType AWS { get { throw null; } } + public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityHostType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HybridConnectivity.Models.EndpointType left, Azure.ResourceManager.HybridConnectivity.Models.EndpointType right) { throw null; } - public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.EndpointType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.EndpointType left, Azure.ResourceManager.HybridConnectivity.Models.EndpointType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityHostType left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityHostType right) { throw null; } + public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityHostType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityHostType left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityHostType right) { throw null; } public override string ToString() { throw null; } } - public partial class GenerateAwsTemplateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityInventoryProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public GenerateAwsTemplateContent(string connectorId) { } - public string ConnectorId { get { throw null; } } - public System.Collections.Generic.IList SolutionTypes { get { throw null; } } + public HybridConnectivityInventoryProperties() { } + public Azure.Core.ResourceIdentifier AzureResourceId { get { throw null; } set { } } + public string CloudNativeResourceId { get { throw null; } set { } } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityCloudNativeType? CloudNativeType { get { throw null; } set { } } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus? Status { get { throw null; } set { } } + public string StatusDetails { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.GenerateAwsTemplateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.GenerateAwsTemplateContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityInventoryProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityInventoryProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct HostType : System.IEquatable + public readonly partial struct HybridConnectivityProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public HostType(string value) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.Models.HostType AWS { get { throw null; } } - public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.HostType other) { throw null; } + public HybridConnectivityProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HybridConnectivity.Models.HostType left, Azure.ResourceManager.HybridConnectivity.Models.HostType right) { throw null; } - public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.HostType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.HostType left, Azure.ResourceManager.HybridConnectivity.Models.HostType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct HybridConnectivityResourceProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public HybridConnectivityResourceProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct HybridConnectivityServiceName : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public HybridConnectivityServiceName(string value) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName SSH { get { throw null; } } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName WAC { get { throw null; } } + public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName right) { throw null; } + public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName right) { throw null; } public override string ToString() { throw null; } } public partial class IngressGatewayAsset : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel @@ -495,26 +569,10 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class InventoryProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public InventoryProperties() { } - public string AzureResourceId { get { throw null; } set { } } - public string CloudNativeResourceId { get { throw null; } set { } } - public Azure.ResourceManager.HybridConnectivity.Models.CloudNativeType? CloudNativeType { get { throw null; } set { } } - public Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus? Status { get { throw null; } set { } } - public string StatusDetails { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.InventoryProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.InventoryProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class ListCredentialsContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ListCredentialsContent() { } - public Azure.ResourceManager.HybridConnectivity.Models.ServiceName? ServiceName { get { throw null; } set { } } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName? ServiceName { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.HybridConnectivity.Models.ListCredentialsContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -525,7 +583,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class ListIngressGatewayCredentialsContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ListIngressGatewayCredentialsContent() { } - public Azure.ResourceManager.HybridConnectivity.Models.ServiceName? ServiceName { get { throw null; } set { } } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName? ServiceName { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.HybridConnectivity.Models.ListIngressGatewayCredentialsContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -550,7 +608,7 @@ public partial class ManagedProxyContent : System.ClientModel.Primitives.IJsonMo public ManagedProxyContent(string service) { } public string Hostname { get { throw null; } set { } } public string Service { get { throw null; } } - public Azure.ResourceManager.HybridConnectivity.Models.ServiceName? ServiceName { get { throw null; } set { } } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceName? ServiceName { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.HybridConnectivity.Models.ManagedProxyContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -577,27 +635,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ProvisioningState : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState Canceled { get { throw null; } } - public static Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState Creating { get { throw null; } } - public static Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState Succeeded { get { throw null; } } - public static Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState left, Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState left, Azure.ResourceManager.HybridConnectivity.Models.ProvisioningState right) { throw null; } - public override string ToString() { throw null; } - } public partial class PublicCloudConnectorPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public PublicCloudConnectorPatch() { } @@ -612,11 +649,11 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write } public partial class PublicCloudConnectorProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public PublicCloudConnectorProperties(Azure.ResourceManager.HybridConnectivity.Models.AwsCloudProfile awsCloudProfile, Azure.ResourceManager.HybridConnectivity.Models.HostType hostType) { } + public PublicCloudConnectorProperties(Azure.ResourceManager.HybridConnectivity.Models.AwsCloudProfile awsCloudProfile, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityHostType hostType) { } public Azure.ResourceManager.HybridConnectivity.Models.AwsCloudProfile AwsCloudProfile { get { throw null; } set { } } - public string ConnectorPrimaryIdentifier { get { throw null; } } - public Azure.ResourceManager.HybridConnectivity.Models.HostType HostType { get { throw null; } set { } } - public Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState? ProvisioningState { get { throw null; } } + public System.Guid? ConnectorPrimaryIdentifier { get { throw null; } } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityHostType HostType { get { throw null; } set { } } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState? ProvisioningState { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.HybridConnectivity.Models.PublicCloudConnectorProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -624,25 +661,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ResourceProvisioningState : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ResourceProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState Canceled { get { throw null; } } - public static Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState left, Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState left, Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState right) { throw null; } - public override string ToString() { throw null; } - } public partial class ServiceConfigurationResourcePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ServiceConfigurationResourcePatch() { } @@ -654,24 +672,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ServiceName : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ServiceName(string value) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.Models.ServiceName SSH { get { throw null; } } - public static Azure.ResourceManager.HybridConnectivity.Models.ServiceName WAC { get { throw null; } } - public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.ServiceName other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.HybridConnectivity.Models.ServiceName left, Azure.ResourceManager.HybridConnectivity.Models.ServiceName right) { throw null; } - public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.ServiceName (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.ServiceName left, Azure.ResourceManager.HybridConnectivity.Models.ServiceName right) { throw null; } - public override string ToString() { throw null; } - } public partial class SolutionConfigurationPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SolutionConfigurationPatch() { } @@ -687,7 +687,7 @@ public partial class SolutionConfigurationProperties : System.ClientModel.Primit { public SolutionConfigurationProperties(string solutionType) { } public System.DateTimeOffset? LastSyncOn { get { throw null; } } - public Azure.ResourceManager.HybridConnectivity.Models.ResourceProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState? ProvisioningState { get { throw null; } } public System.Collections.Generic.IDictionary SolutionSettings { get { throw null; } } public string SolutionType { get { throw null; } set { } } public Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus? Status { get { throw null; } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs index 5a41278d982b8..ba2a349723de1 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs @@ -96,7 +96,7 @@ public async Task Update_HybridConnectivityEndpointsPatchDefault() // invoke the operation EndpointResourceData data = new EndpointResourceData() { - Properties = new EndpointProperties(EndpointType.Default), + Properties = new HybridConnectivityEndpointProperties(EndpointType.Default), }; EndpointResource result = await endpointResource.UpdateAsync(data); @@ -154,7 +154,7 @@ public async Task GetCredentials_HybridConnectivityEndpointsPostListCredentials( // invoke the operation ListCredentialsContent content = new ListCredentialsContent() { - ServiceName = ServiceName.SSH, + ServiceName = HybridConnectivityServiceName.SSH, }; long? expiresin = 10800L; TargetResourceEndpointAccess result = await endpointResource.GetCredentialsAsync(content: content, expiresin: expiresin); @@ -213,7 +213,7 @@ public async Task GetManagedProxyDetails_HybridConnectivityEndpointsPostListMana ManagedProxyContent content = new ManagedProxyContent("127.0.0.1:65035") { Hostname = "r.proxy.arc.com", - ServiceName = ServiceName.WAC, + ServiceName = HybridConnectivityServiceName.WAC, }; ManagedProxyAsset result = await endpointResource.GetManagedProxyDetailsAsync(content); diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResourceCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResourceCollection.cs index fb167991c2654..71c9934f4d49f 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResourceCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResourceCollection.cs @@ -267,7 +267,7 @@ public async Task CreateOrUpdate_HybridConnectivityEndpointsPutCustom() string endpointName = "custom"; EndpointResourceData data = new EndpointResourceData() { - Properties = new EndpointProperties(EndpointType.Custom) + Properties = new HybridConnectivityEndpointProperties(EndpointType.Custom) { ResourceId = "/subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.Relay/namespaces/custom-relay-namespace", }, @@ -306,7 +306,7 @@ public async Task CreateOrUpdate_HybridConnectivityEndpointsPutDefault() string endpointName = "default"; EndpointResourceData data = new EndpointResourceData() { - Properties = new EndpointProperties(EndpointType.Default), + Properties = new HybridConnectivityEndpointProperties(EndpointType.Default), }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, endpointName, data); EndpointResource result = lro.Value; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_InventoryResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryResource.cs similarity index 65% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_InventoryResource.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryResource.cs index 740b5dde8ddde..60a741defef59 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_InventoryResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryResource.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Samples { - public partial class Sample_InventoryResource + public partial class Sample_HybridConnectivityInventoryResource { // Inventory_Get [NUnit.Framework.Test] @@ -27,20 +27,20 @@ public async Task Get_InventoryGet() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this InventoryResource created on azure - // for more information of creating InventoryResource, please refer to the document of InventoryResource + // this example assumes you already have this HybridConnectivityInventoryResource created on azure + // for more information of creating HybridConnectivityInventoryResource, please refer to the document of HybridConnectivityInventoryResource string resourceUri = "ymuj"; string solutionConfiguration = "zarfsraogroxlaqjjnwixtn"; string inventoryId = "xofprmcboosrbd"; - ResourceIdentifier inventoryResourceId = InventoryResource.CreateResourceIdentifier(resourceUri, solutionConfiguration, inventoryId); - InventoryResource inventoryResource = client.GetInventoryResource(inventoryResourceId); + ResourceIdentifier hybridConnectivityInventoryResourceId = HybridConnectivityInventoryResource.CreateResourceIdentifier(resourceUri, solutionConfiguration, inventoryId); + HybridConnectivityInventoryResource hybridConnectivityInventoryResource = client.GetHybridConnectivityInventoryResource(hybridConnectivityInventoryResourceId); // invoke the operation - InventoryResource result = await inventoryResource.GetAsync(); + HybridConnectivityInventoryResource result = await hybridConnectivityInventoryResource.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - InventoryResourceData resourceData = result.Data; + HybridConnectivityInventoryResourceData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_InventoryResourceCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryResourceCollection.cs similarity index 83% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_InventoryResourceCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryResourceCollection.cs index b4acdc616298b..850d920e43e45 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_InventoryResourceCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryResourceCollection.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Samples { - public partial class Sample_InventoryResourceCollection + public partial class Sample_HybridConnectivityInventoryResourceCollection { // Inventory_ListBySolutionConfiguration [NUnit.Framework.Test] @@ -34,15 +34,15 @@ public async Task GetAll_InventoryListBySolutionConfiguration() ResourceIdentifier solutionConfigurationResourceId = SolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); SolutionConfigurationResource solutionConfiguration0 = client.GetSolutionConfigurationResource(solutionConfigurationResourceId); - // get the collection of this InventoryResource - InventoryResourceCollection collection = solutionConfiguration0.GetInventoryResources(); + // get the collection of this HybridConnectivityInventoryResource + HybridConnectivityInventoryResourceCollection collection = solutionConfiguration0.GetHybridConnectivityInventoryResources(); // invoke the operation and iterate over the result - await foreach (InventoryResource item in collection.GetAllAsync()) + await foreach (HybridConnectivityInventoryResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - InventoryResourceData resourceData = item.Data; + HybridConnectivityInventoryResourceData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -70,16 +70,16 @@ public async Task Get_InventoryGet() ResourceIdentifier solutionConfigurationResourceId = SolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); SolutionConfigurationResource solutionConfiguration0 = client.GetSolutionConfigurationResource(solutionConfigurationResourceId); - // get the collection of this InventoryResource - InventoryResourceCollection collection = solutionConfiguration0.GetInventoryResources(); + // get the collection of this HybridConnectivityInventoryResource + HybridConnectivityInventoryResourceCollection collection = solutionConfiguration0.GetHybridConnectivityInventoryResources(); // invoke the operation string inventoryId = "xofprmcboosrbd"; - InventoryResource result = await collection.GetAsync(inventoryId); + HybridConnectivityInventoryResource result = await collection.GetAsync(inventoryId); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - InventoryResourceData resourceData = result.Data; + HybridConnectivityInventoryResourceData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -104,8 +104,8 @@ public async Task Exists_InventoryGet() ResourceIdentifier solutionConfigurationResourceId = SolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); SolutionConfigurationResource solutionConfiguration0 = client.GetSolutionConfigurationResource(solutionConfigurationResourceId); - // get the collection of this InventoryResource - InventoryResourceCollection collection = solutionConfiguration0.GetInventoryResources(); + // get the collection of this HybridConnectivityInventoryResource + HybridConnectivityInventoryResourceCollection collection = solutionConfiguration0.GetHybridConnectivityInventoryResources(); // invoke the operation string inventoryId = "xofprmcboosrbd"; @@ -134,13 +134,13 @@ public async Task GetIfExists_InventoryGet() ResourceIdentifier solutionConfigurationResourceId = SolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); SolutionConfigurationResource solutionConfiguration0 = client.GetSolutionConfigurationResource(solutionConfigurationResourceId); - // get the collection of this InventoryResource - InventoryResourceCollection collection = solutionConfiguration0.GetInventoryResources(); + // get the collection of this HybridConnectivityInventoryResource + HybridConnectivityInventoryResourceCollection collection = solutionConfiguration0.GetHybridConnectivityInventoryResources(); // invoke the operation string inventoryId = "xofprmcboosrbd"; - NullableResponse response = await collection.GetIfExistsAsync(inventoryId); - InventoryResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(inventoryId); + HybridConnectivityInventoryResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -150,7 +150,7 @@ public async Task GetIfExists_InventoryGet() { // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - InventoryResourceData resourceData = result.Data; + HybridConnectivityInventoryResourceData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_PublicCloudConnectorCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_PublicCloudConnectorCollection.cs index 4f623ac563ea1..9e0848e6309b2 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_PublicCloudConnectorCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_PublicCloudConnectorCollection.cs @@ -192,7 +192,7 @@ public async Task CreateOrUpdate_PublicCloudConnectorsCreateOrUpdate() "rwgqpukglvbqmogqcliqolucp" }, IsOrganizationalAccount = true, - }, HostType.AWS), + }, HybridConnectivityHostType.AWS), Tags = { }, diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_ServiceConfigurationResourceCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_ServiceConfigurationResourceCollection.cs index c300e124f796b..4cf15c7e72867 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_ServiceConfigurationResourceCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_ServiceConfigurationResourceCollection.cs @@ -290,7 +290,7 @@ public async Task CreateOrUpdate_ServiceConfigurationsPutSSH() string serviceConfigurationName = "SSH"; ServiceConfigurationResourceData data = new ServiceConfigurationResourceData() { - ServiceName = ServiceName.SSH, + ServiceName = HybridConnectivityServiceName.SSH, Port = 22L, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, serviceConfigurationName, data); @@ -330,7 +330,7 @@ public async Task CreateOrUpdate_ServiceConfigurationsPutWAC() string serviceConfigurationName = "WAC"; ServiceConfigurationResourceData data = new ServiceConfigurationResourceData() { - ServiceName = ServiceName.WAC, + ServiceName = HybridConnectivityServiceName.WAC, Port = 6516L, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, serviceConfigurationName, data); diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 44c89c53b5c21..cc1bb896be86d 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -36,7 +36,7 @@ public async Task PostGenerateAwsTemplate_GenerateAwsTemplatePost() SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); // invoke the operation - GenerateAwsTemplateContent content = new GenerateAwsTemplateContent("pnxcfjidglabnwxit") + GenerateAwsTemplateContent content = new GenerateAwsTemplateContent(new ResourceIdentifier("pnxcfjidglabnwxit")) { SolutionTypes = { diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs index 9ea0659b04a9e..42c66e62a0b25 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs @@ -42,7 +42,7 @@ public static SolutionConfigurationData SolutionConfigurationData(ResourceIdenti /// The detailed message of status details. /// The last time resources were inventoried. /// A new instance for mocking. - public static SolutionConfigurationProperties SolutionConfigurationProperties(ResourceProvisioningState? provisioningState = null, string solutionType = null, IDictionary solutionSettings = null, SolutionConfigurationStatus? status = null, string statusDetails = null, DateTimeOffset? lastSyncOn = null) + public static SolutionConfigurationProperties SolutionConfigurationProperties(HybridConnectivityResourceProvisioningState? provisioningState = null, string solutionType = null, IDictionary solutionSettings = null, SolutionConfigurationStatus? status = null, string statusDetails = null, DateTimeOffset? lastSyncOn = null) { solutionSettings ??= new Dictionary(); @@ -74,16 +74,16 @@ public static SolutionConfigurationPatch SolutionConfigurationPatch(ResourceIden serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The resource-specific properties for this resource. - /// A new instance for mocking. - public static InventoryResourceData InventoryResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, InventoryProperties properties = null) + /// A new instance for mocking. + public static HybridConnectivityInventoryResourceData HybridConnectivityInventoryResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridConnectivityInventoryProperties properties = null) { - return new InventoryResourceData( + return new HybridConnectivityInventoryResourceData( id, name, resourceType, @@ -92,17 +92,17 @@ public static InventoryResourceData InventoryResourceData(ResourceIdentifier id serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Gets or sets the cloud native resource type. /// Gets or sets the cloud native resource name. /// Gets or sets the mapped azure resource id. /// Gets or sets the status of the inventory. /// Gets or sets the status details. /// The resource provisioning state. - /// A new instance for mocking. - public static InventoryProperties InventoryProperties(CloudNativeType? cloudNativeType = null, string cloudNativeResourceId = null, string azureResourceId = null, SolutionConfigurationStatus? status = null, string statusDetails = null, ResourceProvisioningState? provisioningState = null) + /// A new instance for mocking. + public static HybridConnectivityInventoryProperties HybridConnectivityInventoryProperties(HybridConnectivityCloudNativeType? cloudNativeType = null, string cloudNativeResourceId = null, ResourceIdentifier azureResourceId = null, SolutionConfigurationStatus? status = null, string statusDetails = null, HybridConnectivityResourceProvisioningState? provisioningState = null) { - return new InventoryProperties( + return new HybridConnectivityInventoryProperties( cloudNativeType, cloudNativeResourceId, azureResourceId, @@ -144,7 +144,7 @@ public static OperationStatusResult OperationStatusResult(ResourceIdentifier id /// The name of public cloud connector. /// The list of solution types and their settings. /// A new instance for mocking. - public static GenerateAwsTemplateContent GenerateAwsTemplateContent(string connectorId = null, IEnumerable solutionTypes = null) + public static GenerateAwsTemplateContent GenerateAwsTemplateContent(ResourceIdentifier connectorId = null, IEnumerable solutionTypes = null) { solutionTypes ??= new List(); @@ -192,7 +192,7 @@ public static PublicCloudConnectorData PublicCloudConnectorData(ResourceIdentifi /// The resource provisioning state. /// Connector primary identifier. /// A new instance for mocking. - public static PublicCloudConnectorProperties PublicCloudConnectorProperties(AwsCloudProfile awsCloudProfile = null, HostType hostType = default, ResourceProvisioningState? provisioningState = null, string connectorPrimaryIdentifier = null) + public static PublicCloudConnectorProperties PublicCloudConnectorProperties(AwsCloudProfile awsCloudProfile = null, HybridConnectivityHostType hostType = default, HybridConnectivityResourceProvisioningState? provisioningState = null, Guid? connectorPrimaryIdentifier = null) { return new PublicCloudConnectorProperties(awsCloudProfile, hostType, provisioningState, connectorPrimaryIdentifier, serializedAdditionalRawData: null); } @@ -245,7 +245,7 @@ public static PublicCloudConnectorPatch PublicCloudConnectorPatch(ResourceIdenti /// The systemData. /// The endpoint properties. /// A new instance for mocking. - public static EndpointResourceData EndpointResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, EndpointProperties properties = null) + public static EndpointResourceData EndpointResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridConnectivityEndpointProperties properties = null) { return new EndpointResourceData( id, @@ -256,14 +256,14 @@ public static EndpointResourceData EndpointResourceData(ResourceIdentifier id = serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of endpoint. /// The resource Id of the connectivity endpoint (optional). /// The resource provisioning state. - /// A new instance for mocking. - public static EndpointProperties EndpointProperties(EndpointType endpointType = default, string resourceId = null, string provisioningState = null) + /// A new instance for mocking. + public static HybridConnectivityEndpointProperties HybridConnectivityEndpointProperties(EndpointType endpointType = default, string resourceId = null, string provisioningState = null) { - return new EndpointProperties(endpointType, resourceId, provisioningState, serializedAdditionalRawData: null); + return new HybridConnectivityEndpointProperties(endpointType, resourceId, provisioningState, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -276,7 +276,7 @@ public static EndpointProperties EndpointProperties(EndpointType endpointType = /// The port on which service is enabled. /// The resource provisioning state. /// A new instance for mocking. - public static ServiceConfigurationResourceData ServiceConfigurationResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ServiceName? serviceName = null, string resourceId = null, long? port = null, ProvisioningState? provisioningState = null) + public static ServiceConfigurationResourceData ServiceConfigurationResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridConnectivityServiceName? serviceName = null, ResourceIdentifier resourceId = null, long? port = null, HybridConnectivityProvisioningState? provisioningState = null) { return new ServiceConfigurationResourceData( id, @@ -341,7 +341,7 @@ public static IngressGatewayAsset IngressGatewayAsset(string hostname = null, st /// The target host name. /// The name of the service. It is an optional property, if not provided, service configuration tokens issue code would be by passed. /// A new instance for mocking. - public static ManagedProxyContent ManagedProxyContent(string service = null, string hostname = null, ServiceName? serviceName = null) + public static ManagedProxyContent ManagedProxyContent(string service = null, string hostname = null, HybridConnectivityServiceName? serviceName = null) { return new ManagedProxyContent(service, hostname, serviceName, serializedAdditionalRawData: null); } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceData.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceData.Serialization.cs index 8e2c8551c8252..e5548e146f342 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceData.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceData.Serialization.cs @@ -64,7 +64,7 @@ internal static EndpointResourceData DeserializeEndpointResourceData(JsonElement { return null; } - EndpointProperties properties = default; + HybridConnectivityEndpointProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -79,7 +79,7 @@ internal static EndpointResourceData DeserializeEndpointResourceData(JsonElement { continue; } - properties = EndpointProperties.DeserializeEndpointProperties(property.Value, options); + properties = HybridConnectivityEndpointProperties.DeserializeHybridConnectivityEndpointProperties(property.Value, options); continue; } if (property.NameEquals("id"u8)) diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceData.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceData.cs index 3feebb3a60bc4..6ceb2070954dd 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceData.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceData.cs @@ -63,13 +63,13 @@ public EndpointResourceData() /// The systemData. /// The endpoint properties. /// Keeps track of any properties unknown to the library. - internal EndpointResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, EndpointProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal EndpointResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, HybridConnectivityEndpointProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; } /// The endpoint properties. - public EndpointProperties Properties { get; set; } + public HybridConnectivityEndpointProperties Properties { get; set; } } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/HybridConnectivityExtensions.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/HybridConnectivityExtensions.cs index 15baab5b60eaa..9c931357f0824 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/HybridConnectivityExtensions.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/HybridConnectivityExtensions.cs @@ -243,22 +243,22 @@ public static SolutionConfigurationResource GetSolutionConfigurationResource(thi } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static InventoryResource GetInventoryResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static HybridConnectivityInventoryResource GetHybridConnectivityInventoryResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableHybridConnectivityArmClient(client).GetInventoryResource(id); + return GetMockableHybridConnectivityArmClient(client).GetHybridConnectivityInventoryResource(id); } /// diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivityArmClient.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivityArmClient.cs index 6a9722c84b339..9f5987af8fffc 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivityArmClient.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivityArmClient.cs @@ -192,15 +192,15 @@ public virtual SolutionConfigurationResource GetSolutionConfigurationResource(Re } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual InventoryResource GetInventoryResource(ResourceIdentifier id) + /// Returns a object. + public virtual HybridConnectivityInventoryResource GetHybridConnectivityInventoryResource(ResourceIdentifier id) { - InventoryResource.ValidateResourceId(id); - return new InventoryResource(Client, id); + HybridConnectivityInventoryResource.ValidateResourceId(id); + return new HybridConnectivityInventoryResource(Client, id); } /// diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.Serialization.cs new file mode 100644 index 0000000000000..3a5740a26a375 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.Serialization.cs @@ -0,0 +1,26 @@ +// 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.ResourceManager.HybridConnectivity +{ + public partial class HybridConnectivityInventoryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + HybridConnectivityInventoryResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + HybridConnectivityInventoryResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.cs similarity index 62% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResource.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.cs index e24b91bd98c7c..a03a3cd2957f2 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.cs @@ -15,14 +15,14 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A Class representing an InventoryResource along with the instance operations that can be performed on it. - /// If you have a you can construct an - /// from an instance of using the GetInventoryResource method. - /// Otherwise you can get one from its parent resource using the GetInventoryResource method. + /// A Class representing a HybridConnectivityInventoryResource 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 GetHybridConnectivityInventoryResource method. + /// Otherwise you can get one from its parent resource using the GetHybridConnectivityInventoryResource method. /// - public partial class InventoryResource : ArmResource + public partial class HybridConnectivityInventoryResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. /// The resourceUri. /// The solutionConfiguration. /// The inventoryId. @@ -32,35 +32,35 @@ public static ResourceIdentifier CreateResourceIdentifier(string resourceUri, st return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _inventoryResourceInventoryClientDiagnostics; - private readonly InventoryRestOperations _inventoryResourceInventoryRestClient; - private readonly InventoryResourceData _data; + private readonly ClientDiagnostics _hybridConnectivityInventoryResourceInventoryClientDiagnostics; + private readonly InventoryRestOperations _hybridConnectivityInventoryResourceInventoryRestClient; + private readonly HybridConnectivityInventoryResourceData _data; /// Gets the resource type for the operations. public static readonly ResourceType ResourceType = "Microsoft.HybridConnectivity/solutionConfigurations/inventory"; - /// Initializes a new instance of the class for mocking. - protected InventoryResource() + /// Initializes a new instance of the class for mocking. + protected HybridConnectivityInventoryResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal InventoryResource(ArmClient client, InventoryResourceData data) : this(client, data.Id) + internal HybridConnectivityInventoryResource(ArmClient client, HybridConnectivityInventoryResourceData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal InventoryResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal HybridConnectivityInventoryResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _inventoryResourceInventoryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string inventoryResourceInventoryApiVersion); - _inventoryResourceInventoryRestClient = new InventoryRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, inventoryResourceInventoryApiVersion); + _hybridConnectivityInventoryResourceInventoryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string hybridConnectivityInventoryResourceInventoryApiVersion); + _hybridConnectivityInventoryResourceInventoryRestClient = new InventoryRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivityInventoryResourceInventoryApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal InventoryResource(ArmClient client, ResourceIdentifier id) : base(clien /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual InventoryResourceData Data + public virtual HybridConnectivityInventoryResourceData Data { get { @@ -104,21 +104,21 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _inventoryResourceInventoryClientDiagnostics.CreateScope("InventoryResource.Get"); + using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResource.Get"); scope.Start(); try { - var response = await _inventoryResourceInventoryRestClient.GetAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityInventoryResourceInventoryRestClient.GetAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new InventoryResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityInventoryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -144,21 +144,21 @@ public virtual async Task> GetAsync(CancellationToke /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _inventoryResourceInventoryClientDiagnostics.CreateScope("InventoryResource.Get"); + using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResource.Get"); scope.Start(); try { - var response = _inventoryResourceInventoryRestClient.Get(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken); + var response = _hybridConnectivityInventoryResourceInventoryRestClient.Get(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new InventoryResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityInventoryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResourceCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceCollection.cs similarity index 61% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResourceCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceCollection.cs index a32714ba6ce6b..0e814cd53fc37 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResourceCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceCollection.cs @@ -18,28 +18,28 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetInventoryResources method from an instance of . + /// 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 GetHybridConnectivityInventoryResources method from an instance of . /// - public partial class InventoryResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class HybridConnectivityInventoryResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _inventoryResourceInventoryClientDiagnostics; - private readonly InventoryRestOperations _inventoryResourceInventoryRestClient; + private readonly ClientDiagnostics _hybridConnectivityInventoryResourceInventoryClientDiagnostics; + private readonly InventoryRestOperations _hybridConnectivityInventoryResourceInventoryRestClient; - /// Initializes a new instance of the class for mocking. - protected InventoryResourceCollection() + /// Initializes a new instance of the class for mocking. + protected HybridConnectivityInventoryResourceCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal InventoryResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal HybridConnectivityInventoryResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _inventoryResourceInventoryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", InventoryResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(InventoryResource.ResourceType, out string inventoryResourceInventoryApiVersion); - _inventoryResourceInventoryRestClient = new InventoryRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, inventoryResourceInventoryApiVersion); + _hybridConnectivityInventoryResourceInventoryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", HybridConnectivityInventoryResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(HybridConnectivityInventoryResource.ResourceType, out string hybridConnectivityInventoryResourceInventoryApiVersion); + _hybridConnectivityInventoryResourceInventoryRestClient = new InventoryRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivityInventoryResourceInventoryApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -68,7 +68,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Resource - /// + /// /// /// /// @@ -76,18 +76,18 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string inventoryId, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string inventoryId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(inventoryId, nameof(inventoryId)); - using var scope = _inventoryResourceInventoryClientDiagnostics.CreateScope("InventoryResourceCollection.Get"); + using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResourceCollection.Get"); scope.Start(); try { - var response = await _inventoryResourceInventoryRestClient.GetAsync(Id.Parent, Id.Name, inventoryId, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityInventoryResourceInventoryRestClient.GetAsync(Id.Parent, Id.Name, inventoryId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new InventoryResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityInventoryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -113,7 +113,7 @@ public virtual async Task> GetAsync(string inventory /// /// /// Resource - /// + /// /// /// /// @@ -121,18 +121,18 @@ public virtual async Task> GetAsync(string inventory /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string inventoryId, CancellationToken cancellationToken = default) + public virtual Response Get(string inventoryId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(inventoryId, nameof(inventoryId)); - using var scope = _inventoryResourceInventoryClientDiagnostics.CreateScope("InventoryResourceCollection.Get"); + using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResourceCollection.Get"); scope.Start(); try { - var response = _inventoryResourceInventoryRestClient.Get(Id.Parent, Id.Name, inventoryId, cancellationToken); + var response = _hybridConnectivityInventoryResourceInventoryRestClient.Get(Id.Parent, Id.Name, inventoryId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new InventoryResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityInventoryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -158,17 +158,17 @@ public virtual Response Get(string inventoryId, CancellationT /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _inventoryResourceInventoryRestClient.CreateListBySolutionConfigurationRequest(Id.Parent, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _inventoryResourceInventoryRestClient.CreateListBySolutionConfigurationNextPageRequest(nextLink, Id.Parent, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new InventoryResource(Client, InventoryResourceData.DeserializeInventoryResourceData(e)), _inventoryResourceInventoryClientDiagnostics, Pipeline, "InventoryResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivityInventoryResourceInventoryRestClient.CreateListBySolutionConfigurationRequest(Id.Parent, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivityInventoryResourceInventoryRestClient.CreateListBySolutionConfigurationNextPageRequest(nextLink, Id.Parent, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivityInventoryResource(Client, HybridConnectivityInventoryResourceData.DeserializeHybridConnectivityInventoryResourceData(e)), _hybridConnectivityInventoryResourceInventoryClientDiagnostics, Pipeline, "HybridConnectivityInventoryResourceCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -188,17 +188,17 @@ public virtual AsyncPageable GetAllAsync(CancellationToken ca /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _inventoryResourceInventoryRestClient.CreateListBySolutionConfigurationRequest(Id.Parent, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _inventoryResourceInventoryRestClient.CreateListBySolutionConfigurationNextPageRequest(nextLink, Id.Parent, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new InventoryResource(Client, InventoryResourceData.DeserializeInventoryResourceData(e)), _inventoryResourceInventoryClientDiagnostics, Pipeline, "InventoryResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivityInventoryResourceInventoryRestClient.CreateListBySolutionConfigurationRequest(Id.Parent, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivityInventoryResourceInventoryRestClient.CreateListBySolutionConfigurationNextPageRequest(nextLink, Id.Parent, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivityInventoryResource(Client, HybridConnectivityInventoryResourceData.DeserializeHybridConnectivityInventoryResourceData(e)), _hybridConnectivityInventoryResourceInventoryClientDiagnostics, Pipeline, "HybridConnectivityInventoryResourceCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -218,7 +218,7 @@ public virtual Pageable GetAll(CancellationToken cancellation /// /// /// Resource - /// + /// /// /// /// @@ -230,11 +230,11 @@ public virtual async Task> ExistsAsync(string inventoryId, Cancel { Argument.AssertNotNullOrEmpty(inventoryId, nameof(inventoryId)); - using var scope = _inventoryResourceInventoryClientDiagnostics.CreateScope("InventoryResourceCollection.Exists"); + using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResourceCollection.Exists"); scope.Start(); try { - var response = await _inventoryResourceInventoryRestClient.GetAsync(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityInventoryResourceInventoryRestClient.GetAsync(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -261,7 +261,7 @@ public virtual async Task> ExistsAsync(string inventoryId, Cancel /// /// /// Resource - /// + /// /// /// /// @@ -273,11 +273,11 @@ public virtual Response Exists(string inventoryId, CancellationToken cance { Argument.AssertNotNullOrEmpty(inventoryId, nameof(inventoryId)); - using var scope = _inventoryResourceInventoryClientDiagnostics.CreateScope("InventoryResourceCollection.Exists"); + using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResourceCollection.Exists"); scope.Start(); try { - var response = _inventoryResourceInventoryRestClient.Get(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken); + var response = _hybridConnectivityInventoryResourceInventoryRestClient.Get(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -304,7 +304,7 @@ public virtual Response Exists(string inventoryId, CancellationToken cance /// /// /// Resource - /// + /// /// /// /// @@ -312,18 +312,18 @@ public virtual Response Exists(string inventoryId, CancellationToken cance /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string inventoryId, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string inventoryId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(inventoryId, nameof(inventoryId)); - using var scope = _inventoryResourceInventoryClientDiagnostics.CreateScope("InventoryResourceCollection.GetIfExists"); + using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResourceCollection.GetIfExists"); scope.Start(); try { - var response = await _inventoryResourceInventoryRestClient.GetAsync(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityInventoryResourceInventoryRestClient.GetAsync(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new InventoryResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityInventoryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -349,7 +349,7 @@ public virtual async Task> GetIfExistsAsync( /// /// /// Resource - /// + /// /// /// /// @@ -357,18 +357,18 @@ public virtual async Task> GetIfExistsAsync( /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string inventoryId, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string inventoryId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(inventoryId, nameof(inventoryId)); - using var scope = _inventoryResourceInventoryClientDiagnostics.CreateScope("InventoryResourceCollection.GetIfExists"); + using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResourceCollection.GetIfExists"); scope.Start(); try { - var response = _inventoryResourceInventoryRestClient.Get(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken); + var response = _hybridConnectivityInventoryResourceInventoryRestClient.Get(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new InventoryResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityInventoryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -377,7 +377,7 @@ public virtual NullableResponse GetIfExists(string inventoryI } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -387,7 +387,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResourceData.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceData.Serialization.cs similarity index 63% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResourceData.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceData.Serialization.cs index 8697283a292d7..6daa93428bd8a 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResourceData.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceData.Serialization.cs @@ -15,11 +15,11 @@ namespace Azure.ResourceManager.HybridConnectivity { - public partial class InventoryResourceData : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivityInventoryResourceData : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -30,10 +30,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderW /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(InventoryResourceData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityInventoryResourceData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -44,19 +44,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - InventoryResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivityInventoryResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(InventoryResourceData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityInventoryResourceData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeInventoryResourceData(document.RootElement, options); + return DeserializeHybridConnectivityInventoryResourceData(document.RootElement, options); } - internal static InventoryResourceData DeserializeInventoryResourceData(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivityInventoryResourceData DeserializeHybridConnectivityInventoryResourceData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -64,7 +64,7 @@ internal static InventoryResourceData DeserializeInventoryResourceData(JsonEleme { return null; } - InventoryProperties properties = default; + HybridConnectivityInventoryProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -79,7 +79,7 @@ internal static InventoryResourceData DeserializeInventoryResourceData(JsonEleme { continue; } - properties = InventoryProperties.DeserializeInventoryProperties(property.Value, options); + properties = HybridConnectivityInventoryProperties.DeserializeHybridConnectivityInventoryProperties(property.Value, options); continue; } if (property.NameEquals("id"u8)) @@ -112,7 +112,7 @@ internal static InventoryResourceData DeserializeInventoryResourceData(JsonEleme } } serializedAdditionalRawData = rawDataDictionary; - return new InventoryResourceData( + return new HybridConnectivityInventoryResourceData( id, name, type, @@ -121,35 +121,35 @@ internal static InventoryResourceData DeserializeInventoryResourceData(JsonEleme serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(InventoryResourceData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityInventoryResourceData)} does not support writing '{options.Format}' format."); } } - InventoryResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivityInventoryResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeInventoryResourceData(document.RootElement, options); + return DeserializeHybridConnectivityInventoryResourceData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(InventoryResourceData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityInventoryResourceData)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResourceData.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceData.cs similarity index 75% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResourceData.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceData.cs index d6265a6408547..9f462a08eed1d 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResourceData.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceData.cs @@ -14,10 +14,10 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A class representing the InventoryResource data model. + /// A class representing the HybridConnectivityInventoryResource data model. /// Concrete proxy resource types can be created by aliasing this type using a specific property type. /// - public partial class InventoryResourceData : ResourceData + public partial class HybridConnectivityInventoryResourceData : ResourceData { /// /// Keeps track of any properties unknown to the library. @@ -51,25 +51,25 @@ public partial class InventoryResourceData : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public InventoryResourceData() + /// Initializes a new instance of . + public HybridConnectivityInventoryResourceData() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The resource-specific properties for this resource. /// Keeps track of any properties unknown to the library. - internal InventoryResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, InventoryProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal HybridConnectivityInventoryResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, HybridConnectivityInventoryProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; } /// The resource-specific properties for this resource. - public InventoryProperties Properties { get; set; } + public HybridConnectivityInventoryProperties Properties { get; set; } } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResource.Serialization.cs deleted file mode 100644 index 6d30d8c27edd7..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/InventoryResource.Serialization.cs +++ /dev/null @@ -1,26 +0,0 @@ -// 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.ResourceManager.HybridConnectivity -{ - public partial class InventoryResource : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - InventoryResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); - - InventoryResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); - } -} diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/CloudNativeType.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/CloudNativeType.cs deleted file mode 100644 index d7fb041119488..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/CloudNativeType.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.HybridConnectivity.Models -{ - /// Cloud Native Type enum. - public readonly partial struct CloudNativeType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public CloudNativeType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string Ec2Value = "ec2"; - - /// ec2 enum. - public static CloudNativeType Ec2 { get; } = new CloudNativeType(Ec2Value); - /// Determines if two values are the same. - public static bool operator ==(CloudNativeType left, CloudNativeType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(CloudNativeType left, CloudNativeType right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator CloudNativeType(string value) => new CloudNativeType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is CloudNativeType other && Equals(other); - /// - public bool Equals(CloudNativeType 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/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/GenerateAwsTemplateContent.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/GenerateAwsTemplateContent.Serialization.cs index befa55f6675b6..0a408de6387be 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/GenerateAwsTemplateContent.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/GenerateAwsTemplateContent.Serialization.cs @@ -83,7 +83,7 @@ internal static GenerateAwsTemplateContent DeserializeGenerateAwsTemplateContent { return null; } - string connectorId = default; + ResourceIdentifier connectorId = default; IList solutionTypes = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -91,7 +91,7 @@ internal static GenerateAwsTemplateContent DeserializeGenerateAwsTemplateContent { if (property.NameEquals("connectorId"u8)) { - connectorId = property.Value.GetString(); + connectorId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("solutionTypes"u8)) diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/GenerateAwsTemplateContent.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/GenerateAwsTemplateContent.cs index 5deeacfe71823..e0b110ab2d549 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/GenerateAwsTemplateContent.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/GenerateAwsTemplateContent.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.HybridConnectivity.Models { @@ -48,7 +49,7 @@ public partial class GenerateAwsTemplateContent /// Initializes a new instance of . /// The name of public cloud connector. /// is null. - public GenerateAwsTemplateContent(string connectorId) + public GenerateAwsTemplateContent(ResourceIdentifier connectorId) { Argument.AssertNotNull(connectorId, nameof(connectorId)); @@ -60,7 +61,7 @@ public GenerateAwsTemplateContent(string connectorId) /// The name of public cloud connector. /// The list of solution types and their settings. /// Keeps track of any properties unknown to the library. - internal GenerateAwsTemplateContent(string connectorId, IList solutionTypes, IDictionary serializedAdditionalRawData) + internal GenerateAwsTemplateContent(ResourceIdentifier connectorId, IList solutionTypes, IDictionary serializedAdditionalRawData) { ConnectorId = connectorId; SolutionTypes = solutionTypes; @@ -73,7 +74,7 @@ internal GenerateAwsTemplateContent() } /// The name of public cloud connector. - public string ConnectorId { get; } + public ResourceIdentifier ConnectorId { get; } /// The list of solution types and their settings. public IList SolutionTypes { get; } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HostType.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HostType.cs deleted file mode 100644 index 0df86ee07173c..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HostType.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.HybridConnectivity.Models -{ - /// Enum of host cloud the public cloud connector is referencing. - public readonly partial struct HostType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public HostType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string AWSValue = "AWS"; - - /// AWS state. - public static HostType AWS { get; } = new HostType(AWSValue); - /// Determines if two values are the same. - public static bool operator ==(HostType left, HostType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(HostType left, HostType right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator HostType(string value) => new HostType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is HostType other && Equals(other); - /// - public bool Equals(HostType 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/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityCloudNativeType.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityCloudNativeType.cs new file mode 100644 index 0000000000000..bba4a3ea15744 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityCloudNativeType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.HybridConnectivity.Models +{ + /// Cloud Native Type enum. + public readonly partial struct HybridConnectivityCloudNativeType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public HybridConnectivityCloudNativeType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string Ec2Value = "ec2"; + + /// ec2 enum. + public static HybridConnectivityCloudNativeType Ec2 { get; } = new HybridConnectivityCloudNativeType(Ec2Value); + /// Determines if two values are the same. + public static bool operator ==(HybridConnectivityCloudNativeType left, HybridConnectivityCloudNativeType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(HybridConnectivityCloudNativeType left, HybridConnectivityCloudNativeType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator HybridConnectivityCloudNativeType(string value) => new HybridConnectivityCloudNativeType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HybridConnectivityCloudNativeType other && Equals(other); + /// + public bool Equals(HybridConnectivityCloudNativeType 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/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointProperties.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.Serialization.cs similarity index 65% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointProperties.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.Serialization.cs index b1bd5d409b358..2123a13e3c957 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointProperties.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { - public partial class EndpointProperties : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivityEndpointProperties : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrit /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EndpointProperties)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityEndpointProperties)} does not support writing '{format}' format."); } writer.WritePropertyName("type"u8); @@ -63,19 +63,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - EndpointProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivityEndpointProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EndpointProperties)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityEndpointProperties)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeEndpointProperties(document.RootElement, options); + return DeserializeHybridConnectivityEndpointProperties(document.RootElement, options); } - internal static EndpointProperties DeserializeEndpointProperties(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivityEndpointProperties DeserializeHybridConnectivityEndpointProperties(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -111,38 +111,38 @@ internal static EndpointProperties DeserializeEndpointProperties(JsonElement ele } } serializedAdditionalRawData = rawDataDictionary; - return new EndpointProperties(type, resourceId, provisioningState, serializedAdditionalRawData); + return new HybridConnectivityEndpointProperties(type, resourceId, provisioningState, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(EndpointProperties)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityEndpointProperties)} does not support writing '{options.Format}' format."); } } - EndpointProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivityEndpointProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeEndpointProperties(document.RootElement, options); + return DeserializeHybridConnectivityEndpointProperties(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(EndpointProperties)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityEndpointProperties)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointProperties.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.cs similarity index 78% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointProperties.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.cs index 4f9c6e1dd5a05..70d9811010b5d 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointProperties.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { /// Endpoint details. - public partial class EndpointProperties + public partial class HybridConnectivityEndpointProperties { /// /// Keeps track of any properties unknown to the library. @@ -45,19 +45,19 @@ public partial class EndpointProperties /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of endpoint. - public EndpointProperties(EndpointType endpointType) + public HybridConnectivityEndpointProperties(EndpointType endpointType) { EndpointType = endpointType; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of endpoint. /// The resource Id of the connectivity endpoint (optional). /// The resource provisioning state. /// Keeps track of any properties unknown to the library. - internal EndpointProperties(EndpointType endpointType, string resourceId, string provisioningState, IDictionary serializedAdditionalRawData) + internal HybridConnectivityEndpointProperties(EndpointType endpointType, string resourceId, string provisioningState, IDictionary serializedAdditionalRawData) { EndpointType = endpointType; ResourceId = resourceId; @@ -65,8 +65,8 @@ internal EndpointProperties(EndpointType endpointType, string resourceId, string _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal EndpointProperties() + /// Initializes a new instance of for deserialization. + internal HybridConnectivityEndpointProperties() { } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityHostType.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityHostType.cs new file mode 100644 index 0000000000000..0dc254d69489f --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityHostType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.HybridConnectivity.Models +{ + /// Enum of host cloud the public cloud connector is referencing. + public readonly partial struct HybridConnectivityHostType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public HybridConnectivityHostType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AWSValue = "AWS"; + + /// AWS state. + public static HybridConnectivityHostType AWS { get; } = new HybridConnectivityHostType(AWSValue); + /// Determines if two values are the same. + public static bool operator ==(HybridConnectivityHostType left, HybridConnectivityHostType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(HybridConnectivityHostType left, HybridConnectivityHostType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator HybridConnectivityHostType(string value) => new HybridConnectivityHostType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HybridConnectivityHostType other && Equals(other); + /// + public bool Equals(HybridConnectivityHostType 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/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryProperties.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityInventoryProperties.Serialization.cs similarity index 67% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryProperties.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityInventoryProperties.Serialization.cs index 1dd8117e7fe14..a1866e7612038 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryProperties.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityInventoryProperties.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { - public partial class InventoryProperties : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivityInventoryProperties : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWri /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(InventoryProperties)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityInventoryProperties)} does not support writing '{format}' format."); } if (Optional.IsDefined(CloudNativeType)) @@ -81,19 +81,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - InventoryProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivityInventoryProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(InventoryProperties)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityInventoryProperties)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeInventoryProperties(document.RootElement, options); + return DeserializeHybridConnectivityInventoryProperties(document.RootElement, options); } - internal static InventoryProperties DeserializeInventoryProperties(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivityInventoryProperties DeserializeHybridConnectivityInventoryProperties(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -101,12 +101,12 @@ internal static InventoryProperties DeserializeInventoryProperties(JsonElement e { return null; } - CloudNativeType? cloudNativeType = default; + HybridConnectivityCloudNativeType? cloudNativeType = default; string cloudNativeResourceId = default; - string azureResourceId = default; + ResourceIdentifier azureResourceId = default; SolutionConfigurationStatus? status = default; string statusDetails = default; - ResourceProvisioningState? provisioningState = default; + HybridConnectivityResourceProvisioningState? provisioningState = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -117,7 +117,7 @@ internal static InventoryProperties DeserializeInventoryProperties(JsonElement e { continue; } - cloudNativeType = new CloudNativeType(property.Value.GetString()); + cloudNativeType = new HybridConnectivityCloudNativeType(property.Value.GetString()); continue; } if (property.NameEquals("cloudNativeResourceId"u8)) @@ -127,7 +127,11 @@ internal static InventoryProperties DeserializeInventoryProperties(JsonElement e } if (property.NameEquals("azureResourceId"u8)) { - azureResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + azureResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("status"u8)) @@ -150,7 +154,7 @@ internal static InventoryProperties DeserializeInventoryProperties(JsonElement e { continue; } - provisioningState = new ResourceProvisioningState(property.Value.GetString()); + provisioningState = new HybridConnectivityResourceProvisioningState(property.Value.GetString()); continue; } if (options.Format != "W") @@ -159,7 +163,7 @@ internal static InventoryProperties DeserializeInventoryProperties(JsonElement e } } serializedAdditionalRawData = rawDataDictionary; - return new InventoryProperties( + return new HybridConnectivityInventoryProperties( cloudNativeType, cloudNativeResourceId, azureResourceId, @@ -169,35 +173,35 @@ internal static InventoryProperties DeserializeInventoryProperties(JsonElement e serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(InventoryProperties)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityInventoryProperties)} does not support writing '{options.Format}' format."); } } - InventoryProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivityInventoryProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeInventoryProperties(document.RootElement, options); + return DeserializeHybridConnectivityInventoryProperties(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(InventoryProperties)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityInventoryProperties)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryProperties.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityInventoryProperties.cs similarity index 77% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryProperties.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityInventoryProperties.cs index 9e39583b3616b..6f6b1253e19b6 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryProperties.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityInventoryProperties.cs @@ -7,11 +7,12 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.HybridConnectivity.Models { /// Definition of inventory. - public partial class InventoryProperties + public partial class HybridConnectivityInventoryProperties { /// /// Keeps track of any properties unknown to the library. @@ -45,12 +46,12 @@ public partial class InventoryProperties /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public InventoryProperties() + /// Initializes a new instance of . + public HybridConnectivityInventoryProperties() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Gets or sets the cloud native resource type. /// Gets or sets the cloud native resource name. /// Gets or sets the mapped azure resource id. @@ -58,7 +59,7 @@ public InventoryProperties() /// Gets or sets the status details. /// The resource provisioning state. /// Keeps track of any properties unknown to the library. - internal InventoryProperties(CloudNativeType? cloudNativeType, string cloudNativeResourceId, string azureResourceId, SolutionConfigurationStatus? status, string statusDetails, ResourceProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) + internal HybridConnectivityInventoryProperties(HybridConnectivityCloudNativeType? cloudNativeType, string cloudNativeResourceId, ResourceIdentifier azureResourceId, SolutionConfigurationStatus? status, string statusDetails, HybridConnectivityResourceProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) { CloudNativeType = cloudNativeType; CloudNativeResourceId = cloudNativeResourceId; @@ -70,16 +71,16 @@ internal InventoryProperties(CloudNativeType? cloudNativeType, string cloudNativ } /// Gets or sets the cloud native resource type. - public CloudNativeType? CloudNativeType { get; set; } + public HybridConnectivityCloudNativeType? CloudNativeType { get; set; } /// Gets or sets the cloud native resource name. public string CloudNativeResourceId { get; set; } /// Gets or sets the mapped azure resource id. - public string AzureResourceId { get; set; } + public ResourceIdentifier AzureResourceId { get; set; } /// Gets or sets the status of the inventory. public SolutionConfigurationStatus? Status { get; set; } /// Gets or sets the status details. public string StatusDetails { get; set; } /// The resource provisioning state. - public ResourceProvisioningState? ProvisioningState { get; } + public HybridConnectivityResourceProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityProvisioningState.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityProvisioningState.cs new file mode 100644 index 0000000000000..bd76cc119eb26 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityProvisioningState.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.HybridConnectivity.Models +{ + /// The resource provisioning state. + public readonly partial struct HybridConnectivityProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public HybridConnectivityProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string CreatingValue = "Creating"; + private const string UpdatingValue = "Updating"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + + /// Succeeded. + public static HybridConnectivityProvisioningState Succeeded { get; } = new HybridConnectivityProvisioningState(SucceededValue); + /// Creating. + public static HybridConnectivityProvisioningState Creating { get; } = new HybridConnectivityProvisioningState(CreatingValue); + /// Updating. + public static HybridConnectivityProvisioningState Updating { get; } = new HybridConnectivityProvisioningState(UpdatingValue); + /// Failed. + public static HybridConnectivityProvisioningState Failed { get; } = new HybridConnectivityProvisioningState(FailedValue); + /// Canceled. + public static HybridConnectivityProvisioningState Canceled { get; } = new HybridConnectivityProvisioningState(CanceledValue); + /// Determines if two values are the same. + public static bool operator ==(HybridConnectivityProvisioningState left, HybridConnectivityProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(HybridConnectivityProvisioningState left, HybridConnectivityProvisioningState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator HybridConnectivityProvisioningState(string value) => new HybridConnectivityProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HybridConnectivityProvisioningState other && Equals(other); + /// + public bool Equals(HybridConnectivityProvisioningState 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/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityResourceProvisioningState.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityResourceProvisioningState.cs new file mode 100644 index 0000000000000..cf8059cb153b4 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityResourceProvisioningState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.HybridConnectivity.Models +{ + /// The provisioning state of a resource type. + public readonly partial struct HybridConnectivityResourceProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public HybridConnectivityResourceProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + + /// Resource has been created. + public static HybridConnectivityResourceProvisioningState Succeeded { get; } = new HybridConnectivityResourceProvisioningState(SucceededValue); + /// Resource creation failed. + public static HybridConnectivityResourceProvisioningState Failed { get; } = new HybridConnectivityResourceProvisioningState(FailedValue); + /// Resource creation was canceled. + public static HybridConnectivityResourceProvisioningState Canceled { get; } = new HybridConnectivityResourceProvisioningState(CanceledValue); + /// Determines if two values are the same. + public static bool operator ==(HybridConnectivityResourceProvisioningState left, HybridConnectivityResourceProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(HybridConnectivityResourceProvisioningState left, HybridConnectivityResourceProvisioningState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator HybridConnectivityResourceProvisioningState(string value) => new HybridConnectivityResourceProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HybridConnectivityResourceProvisioningState other && Equals(other); + /// + public bool Equals(HybridConnectivityResourceProvisioningState 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/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityServiceName.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityServiceName.cs new file mode 100644 index 0000000000000..28b4425b30c40 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityServiceName.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.HybridConnectivity.Models +{ + /// Name of the service. + public readonly partial struct HybridConnectivityServiceName : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public HybridConnectivityServiceName(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SSHValue = "SSH"; + private const string WACValue = "WAC"; + + /// SSH. + public static HybridConnectivityServiceName SSH { get; } = new HybridConnectivityServiceName(SSHValue); + /// WAC. + public static HybridConnectivityServiceName WAC { get; } = new HybridConnectivityServiceName(WACValue); + /// Determines if two values are the same. + public static bool operator ==(HybridConnectivityServiceName left, HybridConnectivityServiceName right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(HybridConnectivityServiceName left, HybridConnectivityServiceName right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator HybridConnectivityServiceName(string value) => new HybridConnectivityServiceName(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HybridConnectivityServiceName other && Equals(other); + /// + public bool Equals(HybridConnectivityServiceName 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/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryResourceListResult.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryResourceListResult.Serialization.cs index a566e83cd663a..45e4a8de24c49 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryResourceListResult.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryResourceListResult.Serialization.cs @@ -83,7 +83,7 @@ internal static InventoryResourceListResult DeserializeInventoryResourceListResu { return null; } - IReadOnlyList value = default; + IReadOnlyList value = default; Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -91,10 +91,10 @@ internal static InventoryResourceListResult DeserializeInventoryResourceListResu { if (property.NameEquals("value"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(InventoryResourceData.DeserializeInventoryResourceData(item, options)); + array.Add(HybridConnectivityInventoryResourceData.DeserializeHybridConnectivityInventoryResourceData(item, options)); } value = array; continue; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryResourceListResult.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryResourceListResult.cs index b06145f249158..837f05c7fc8ff 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryResourceListResult.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/InventoryResourceListResult.cs @@ -49,7 +49,7 @@ internal partial class InventoryResourceListResult /// Initializes a new instance of . /// The InventoryResource items on this page. /// is null. - internal InventoryResourceListResult(IEnumerable value) + internal InventoryResourceListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); @@ -60,7 +60,7 @@ internal InventoryResourceListResult(IEnumerable value) /// The InventoryResource items on this page. /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal InventoryResourceListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) + internal InventoryResourceListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; @@ -73,7 +73,7 @@ internal InventoryResourceListResult() } /// The InventoryResource items on this page. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The link to the next page of items. public Uri NextLink { get; } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListCredentialsContent.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListCredentialsContent.Serialization.cs index df908c857b150..c7c271671e598 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListCredentialsContent.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListCredentialsContent.Serialization.cs @@ -76,7 +76,7 @@ internal static ListCredentialsContent DeserializeListCredentialsContent(JsonEle { return null; } - ServiceName? serviceName = default; + HybridConnectivityServiceName? serviceName = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -87,7 +87,7 @@ internal static ListCredentialsContent DeserializeListCredentialsContent(JsonEle { continue; } - serviceName = new ServiceName(property.Value.GetString()); + serviceName = new HybridConnectivityServiceName(property.Value.GetString()); continue; } if (options.Format != "W") diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListCredentialsContent.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListCredentialsContent.cs index 2e92182ecb242..ad67ad07b0edc 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListCredentialsContent.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListCredentialsContent.cs @@ -53,13 +53,13 @@ public ListCredentialsContent() /// Initializes a new instance of . /// The name of the service. If not provided, the request will by pass the generation of service configuration token. /// Keeps track of any properties unknown to the library. - internal ListCredentialsContent(ServiceName? serviceName, IDictionary serializedAdditionalRawData) + internal ListCredentialsContent(HybridConnectivityServiceName? serviceName, IDictionary serializedAdditionalRawData) { ServiceName = serviceName; _serializedAdditionalRawData = serializedAdditionalRawData; } /// The name of the service. If not provided, the request will by pass the generation of service configuration token. - public ServiceName? ServiceName { get; set; } + public HybridConnectivityServiceName? ServiceName { get; set; } } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListIngressGatewayCredentialsContent.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListIngressGatewayCredentialsContent.Serialization.cs index 8c283e2359e44..a182a5bd5d10b 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListIngressGatewayCredentialsContent.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListIngressGatewayCredentialsContent.Serialization.cs @@ -76,7 +76,7 @@ internal static ListIngressGatewayCredentialsContent DeserializeListIngressGatew { return null; } - ServiceName? serviceName = default; + HybridConnectivityServiceName? serviceName = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -87,7 +87,7 @@ internal static ListIngressGatewayCredentialsContent DeserializeListIngressGatew { continue; } - serviceName = new ServiceName(property.Value.GetString()); + serviceName = new HybridConnectivityServiceName(property.Value.GetString()); continue; } if (options.Format != "W") diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListIngressGatewayCredentialsContent.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListIngressGatewayCredentialsContent.cs index 0df80ae78486a..86b90d6cdce42 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListIngressGatewayCredentialsContent.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ListIngressGatewayCredentialsContent.cs @@ -53,13 +53,13 @@ public ListIngressGatewayCredentialsContent() /// Initializes a new instance of . /// The name of the service. /// Keeps track of any properties unknown to the library. - internal ListIngressGatewayCredentialsContent(ServiceName? serviceName, IDictionary serializedAdditionalRawData) + internal ListIngressGatewayCredentialsContent(HybridConnectivityServiceName? serviceName, IDictionary serializedAdditionalRawData) { ServiceName = serviceName; _serializedAdditionalRawData = serializedAdditionalRawData; } /// The name of the service. - public ServiceName? ServiceName { get; set; } + public HybridConnectivityServiceName? ServiceName { get; set; } } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyContent.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyContent.Serialization.cs index c83d15e52d39d..29c332bb81373 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyContent.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyContent.Serialization.cs @@ -85,7 +85,7 @@ internal static ManagedProxyContent DeserializeManagedProxyContent(JsonElement e } string service = default; string hostname = default; - ServiceName? serviceName = default; + HybridConnectivityServiceName? serviceName = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -106,7 +106,7 @@ internal static ManagedProxyContent DeserializeManagedProxyContent(JsonElement e { continue; } - serviceName = new ServiceName(property.Value.GetString()); + serviceName = new HybridConnectivityServiceName(property.Value.GetString()); continue; } if (options.Format != "W") diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyContent.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyContent.cs index 7726d3f54d59c..c9d95d4cd2b52 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyContent.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyContent.cs @@ -60,7 +60,7 @@ public ManagedProxyContent(string service) /// The target host name. /// The name of the service. It is an optional property, if not provided, service configuration tokens issue code would be by passed. /// Keeps track of any properties unknown to the library. - internal ManagedProxyContent(string service, string hostname, ServiceName? serviceName, IDictionary serializedAdditionalRawData) + internal ManagedProxyContent(string service, string hostname, HybridConnectivityServiceName? serviceName, IDictionary serializedAdditionalRawData) { Service = service; Hostname = hostname; @@ -78,6 +78,6 @@ internal ManagedProxyContent() /// The target host name. public string Hostname { get; set; } /// The name of the service. It is an optional property, if not provided, service configuration tokens issue code would be by passed. - public ServiceName? ServiceName { get; set; } + public HybridConnectivityServiceName? ServiceName { get; set; } } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ProvisioningState.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ProvisioningState.cs deleted file mode 100644 index 83a19166ed65d..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ProvisioningState.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.HybridConnectivity.Models -{ - /// The resource provisioning state. - public readonly partial struct ProvisioningState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ProvisioningState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string SucceededValue = "Succeeded"; - private const string CreatingValue = "Creating"; - private const string UpdatingValue = "Updating"; - private const string FailedValue = "Failed"; - private const string CanceledValue = "Canceled"; - - /// Succeeded. - public static ProvisioningState Succeeded { get; } = new ProvisioningState(SucceededValue); - /// Creating. - public static ProvisioningState Creating { get; } = new ProvisioningState(CreatingValue); - /// Updating. - public static ProvisioningState Updating { get; } = new ProvisioningState(UpdatingValue); - /// Failed. - public static ProvisioningState Failed { get; } = new ProvisioningState(FailedValue); - /// Canceled. - public static ProvisioningState Canceled { get; } = new ProvisioningState(CanceledValue); - /// Determines if two values are the same. - public static bool operator ==(ProvisioningState left, ProvisioningState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ProvisioningState left, ProvisioningState right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator ProvisioningState(string value) => new ProvisioningState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ProvisioningState other && Equals(other); - /// - public bool Equals(ProvisioningState 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/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorProperties.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorProperties.Serialization.cs index 33d37f20574ce..8e38632ba183f 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorProperties.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorProperties.Serialization.cs @@ -46,7 +46,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit if (options.Format != "W" && Optional.IsDefined(ConnectorPrimaryIdentifier)) { writer.WritePropertyName("connectorPrimaryIdentifier"u8); - writer.WriteStringValue(ConnectorPrimaryIdentifier); + writer.WriteStringValue(ConnectorPrimaryIdentifier.Value); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -86,9 +86,9 @@ internal static PublicCloudConnectorProperties DeserializePublicCloudConnectorPr return null; } AwsCloudProfile awsCloudProfile = default; - HostType hostType = default; - ResourceProvisioningState? provisioningState = default; - string connectorPrimaryIdentifier = default; + HybridConnectivityHostType hostType = default; + HybridConnectivityResourceProvisioningState? provisioningState = default; + Guid? connectorPrimaryIdentifier = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -100,7 +100,7 @@ internal static PublicCloudConnectorProperties DeserializePublicCloudConnectorPr } if (property.NameEquals("hostType"u8)) { - hostType = new HostType(property.Value.GetString()); + hostType = new HybridConnectivityHostType(property.Value.GetString()); continue; } if (property.NameEquals("provisioningState"u8)) @@ -109,12 +109,16 @@ internal static PublicCloudConnectorProperties DeserializePublicCloudConnectorPr { continue; } - provisioningState = new ResourceProvisioningState(property.Value.GetString()); + provisioningState = new HybridConnectivityResourceProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("connectorPrimaryIdentifier"u8)) { - connectorPrimaryIdentifier = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + connectorPrimaryIdentifier = property.Value.GetGuid(); continue; } if (options.Format != "W") diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorProperties.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorProperties.cs index 3b9c17cfccbec..4a9877a077ad7 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorProperties.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorProperties.cs @@ -49,7 +49,7 @@ public partial class PublicCloudConnectorProperties /// Cloud profile for AWS. /// Host cloud the public cloud connector. /// is null. - public PublicCloudConnectorProperties(AwsCloudProfile awsCloudProfile, HostType hostType) + public PublicCloudConnectorProperties(AwsCloudProfile awsCloudProfile, HybridConnectivityHostType hostType) { Argument.AssertNotNull(awsCloudProfile, nameof(awsCloudProfile)); @@ -63,7 +63,7 @@ public PublicCloudConnectorProperties(AwsCloudProfile awsCloudProfile, HostType /// The resource provisioning state. /// Connector primary identifier. /// Keeps track of any properties unknown to the library. - internal PublicCloudConnectorProperties(AwsCloudProfile awsCloudProfile, HostType hostType, ResourceProvisioningState? provisioningState, string connectorPrimaryIdentifier, IDictionary serializedAdditionalRawData) + internal PublicCloudConnectorProperties(AwsCloudProfile awsCloudProfile, HybridConnectivityHostType hostType, HybridConnectivityResourceProvisioningState? provisioningState, Guid? connectorPrimaryIdentifier, IDictionary serializedAdditionalRawData) { AwsCloudProfile = awsCloudProfile; HostType = hostType; @@ -80,10 +80,10 @@ internal PublicCloudConnectorProperties() /// Cloud profile for AWS. public AwsCloudProfile AwsCloudProfile { get; set; } /// Host cloud the public cloud connector. - public HostType HostType { get; set; } + public HybridConnectivityHostType HostType { get; set; } /// The resource provisioning state. - public ResourceProvisioningState? ProvisioningState { get; } + public HybridConnectivityResourceProvisioningState? ProvisioningState { get; } /// Connector primary identifier. - public string ConnectorPrimaryIdentifier { get; } + public Guid? ConnectorPrimaryIdentifier { get; } } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ResourceProvisioningState.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ResourceProvisioningState.cs deleted file mode 100644 index 7b39bd59f202d..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ResourceProvisioningState.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.HybridConnectivity.Models -{ - /// The provisioning state of a resource type. - public readonly partial struct ResourceProvisioningState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ResourceProvisioningState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string SucceededValue = "Succeeded"; - private const string FailedValue = "Failed"; - private const string CanceledValue = "Canceled"; - - /// Resource has been created. - public static ResourceProvisioningState Succeeded { get; } = new ResourceProvisioningState(SucceededValue); - /// Resource creation failed. - public static ResourceProvisioningState Failed { get; } = new ResourceProvisioningState(FailedValue); - /// Resource creation was canceled. - public static ResourceProvisioningState Canceled { get; } = new ResourceProvisioningState(CanceledValue); - /// Determines if two values are the same. - public static bool operator ==(ResourceProvisioningState left, ResourceProvisioningState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ResourceProvisioningState left, ResourceProvisioningState right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator ResourceProvisioningState(string value) => new ResourceProvisioningState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ResourceProvisioningState other && Equals(other); - /// - public bool Equals(ResourceProvisioningState 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/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceName.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceName.cs deleted file mode 100644 index fade306b7d025..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceName.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.HybridConnectivity.Models -{ - /// Name of the service. - public readonly partial struct ServiceName : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ServiceName(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string SSHValue = "SSH"; - private const string WACValue = "WAC"; - - /// SSH. - public static ServiceName SSH { get; } = new ServiceName(SSHValue); - /// WAC. - public static ServiceName WAC { get; } = new ServiceName(WACValue); - /// Determines if two values are the same. - public static bool operator ==(ServiceName left, ServiceName right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ServiceName left, ServiceName right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator ServiceName(string value) => new ServiceName(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ServiceName other && Equals(other); - /// - public bool Equals(ServiceName 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/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationProperties.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationProperties.Serialization.cs index 9adc145468559..070c00e7c3f52 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationProperties.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationProperties.Serialization.cs @@ -104,7 +104,7 @@ internal static SolutionConfigurationProperties DeserializeSolutionConfiguration { return null; } - ResourceProvisioningState? provisioningState = default; + HybridConnectivityResourceProvisioningState? provisioningState = default; string solutionType = default; IDictionary solutionSettings = default; SolutionConfigurationStatus? status = default; @@ -120,7 +120,7 @@ internal static SolutionConfigurationProperties DeserializeSolutionConfiguration { continue; } - provisioningState = new ResourceProvisioningState(property.Value.GetString()); + provisioningState = new HybridConnectivityResourceProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("solutionType"u8)) diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationProperties.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationProperties.cs index 7428527c88d73..880f5bda6a0bb 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationProperties.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationProperties.cs @@ -64,7 +64,7 @@ public SolutionConfigurationProperties(string solutionType) /// The detailed message of status details. /// The last time resources were inventoried. /// Keeps track of any properties unknown to the library. - internal SolutionConfigurationProperties(ResourceProvisioningState? provisioningState, string solutionType, IDictionary solutionSettings, SolutionConfigurationStatus? status, string statusDetails, DateTimeOffset? lastSyncOn, IDictionary serializedAdditionalRawData) + internal SolutionConfigurationProperties(HybridConnectivityResourceProvisioningState? provisioningState, string solutionType, IDictionary solutionSettings, SolutionConfigurationStatus? status, string statusDetails, DateTimeOffset? lastSyncOn, IDictionary serializedAdditionalRawData) { ProvisioningState = provisioningState; SolutionType = solutionType; @@ -81,7 +81,7 @@ internal SolutionConfigurationProperties() } /// The resource provisioning state. - public ResourceProvisioningState? ProvisioningState { get; } + public HybridConnectivityResourceProvisioningState? ProvisioningState { get; } /// The type of the solution. public string SolutionType { get; set; } /// Solution settings. diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/InventoryRestOperations.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/InventoryRestOperations.cs index 6b4fc1fe770d4..b72de2f3ece7d 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/InventoryRestOperations.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/InventoryRestOperations.cs @@ -163,7 +163,7 @@ internal HttpMessage CreateGetRequest(string resourceUri, string solutionConfigu /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string resourceUri, string solutionConfiguration, string inventoryId, CancellationToken cancellationToken = default) + public async Task> GetAsync(string resourceUri, string solutionConfiguration, string inventoryId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); @@ -175,13 +175,13 @@ public async Task> GetAsync(string resourceUri, { case 200: { - InventoryResourceData value = default; + HybridConnectivityInventoryResourceData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = InventoryResourceData.DeserializeInventoryResourceData(document.RootElement); + value = HybridConnectivityInventoryResourceData.DeserializeHybridConnectivityInventoryResourceData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((InventoryResourceData)null, message.Response); + return Response.FromValue((HybridConnectivityInventoryResourceData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -194,7 +194,7 @@ public async Task> GetAsync(string resourceUri, /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response Get(string resourceUri, string solutionConfiguration, string inventoryId, CancellationToken cancellationToken = default) + public Response Get(string resourceUri, string solutionConfiguration, string inventoryId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); @@ -206,13 +206,13 @@ public Response Get(string resourceUri, string solutionCo { case 200: { - InventoryResourceData value = default; + HybridConnectivityInventoryResourceData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = InventoryResourceData.DeserializeInventoryResourceData(document.RootElement); + value = HybridConnectivityInventoryResourceData.DeserializeHybridConnectivityInventoryResourceData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((InventoryResourceData)null, message.Response); + return Response.FromValue((HybridConnectivityInventoryResourceData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceData.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceData.Serialization.cs index 1cba2ad4f5982..d087ab9a7bc9f 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceData.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceData.Serialization.cs @@ -86,10 +86,10 @@ internal static ServiceConfigurationResourceData DeserializeServiceConfiguration string name = default; ResourceType type = default; SystemData systemData = default; - ServiceName? serviceName = default; - string resourceId = default; + HybridConnectivityServiceName? serviceName = default; + ResourceIdentifier resourceId = default; long? port = default; - ProvisioningState? provisioningState = default; + HybridConnectivityProvisioningState? provisioningState = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -133,12 +133,16 @@ internal static ServiceConfigurationResourceData DeserializeServiceConfiguration { continue; } - serviceName = new ServiceName(property0.Value.GetString()); + serviceName = new HybridConnectivityServiceName(property0.Value.GetString()); continue; } if (property0.NameEquals("resourceId"u8)) { - resourceId = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceId = new ResourceIdentifier(property0.Value.GetString()); continue; } if (property0.NameEquals("port"u8)) @@ -156,7 +160,7 @@ internal static ServiceConfigurationResourceData DeserializeServiceConfiguration { continue; } - provisioningState = new ProvisioningState(property0.Value.GetString()); + provisioningState = new HybridConnectivityProvisioningState(property0.Value.GetString()); continue; } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceData.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceData.cs index 04b3654aa6252..f8f37c3e01a83 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceData.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceData.cs @@ -66,7 +66,7 @@ public ServiceConfigurationResourceData() /// The port on which service is enabled. /// The resource provisioning state. /// Keeps track of any properties unknown to the library. - internal ServiceConfigurationResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ServiceName? serviceName, string resourceId, long? port, ProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal ServiceConfigurationResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, HybridConnectivityServiceName? serviceName, ResourceIdentifier resourceId, long? port, HybridConnectivityProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { ServiceName = serviceName; ResourceId = resourceId; @@ -76,12 +76,12 @@ internal ServiceConfigurationResourceData(ResourceIdentifier id, string name, Re } /// Name of the service. - public ServiceName? ServiceName { get; set; } + public HybridConnectivityServiceName? ServiceName { get; set; } /// The resource Id of the connectivity endpoint (optional). - public string ResourceId { get; set; } + public ResourceIdentifier ResourceId { get; set; } /// The port on which service is enabled. public long? Port { get; set; } /// The resource provisioning state. - public ProvisioningState? ProvisioningState { get; } + public HybridConnectivityProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationResource.cs index 32622a0c2b9ca..76c2c4071ad35 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationResource.cs @@ -87,11 +87,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of InventoryResources in the SolutionConfiguration. - /// An object representing collection of InventoryResources and their operations over a InventoryResource. - public virtual InventoryResourceCollection GetInventoryResources() + /// Gets a collection of HybridConnectivityInventoryResources in the SolutionConfiguration. + /// An object representing collection of HybridConnectivityInventoryResources and their operations over a HybridConnectivityInventoryResource. + public virtual HybridConnectivityInventoryResourceCollection GetHybridConnectivityInventoryResources() { - return GetCachedClient(client => new InventoryResourceCollection(client, Id)); + return GetCachedClient(client => new HybridConnectivityInventoryResourceCollection(client, Id)); } /// @@ -111,7 +111,7 @@ public virtual InventoryResourceCollection GetInventoryResources() /// /// /// Resource - /// + /// /// /// /// @@ -120,9 +120,9 @@ public virtual InventoryResourceCollection GetInventoryResources() /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetInventoryResourceAsync(string inventoryId, CancellationToken cancellationToken = default) + public virtual async Task> GetHybridConnectivityInventoryResourceAsync(string inventoryId, CancellationToken cancellationToken = default) { - return await GetInventoryResources().GetAsync(inventoryId, cancellationToken).ConfigureAwait(false); + return await GetHybridConnectivityInventoryResources().GetAsync(inventoryId, cancellationToken).ConfigureAwait(false); } /// @@ -142,7 +142,7 @@ public virtual async Task> GetInventoryResourceAsync /// /// /// Resource - /// + /// /// /// /// @@ -151,9 +151,9 @@ public virtual async Task> GetInventoryResourceAsync /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetInventoryResource(string inventoryId, CancellationToken cancellationToken = default) + public virtual Response GetHybridConnectivityInventoryResource(string inventoryId, CancellationToken cancellationToken = default) { - return GetInventoryResources().Get(inventoryId, cancellationToken); + return GetHybridConnectivityInventoryResources().Get(inventoryId, cancellationToken); } /// diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md index e3779d2ae6002..8223978a16ceb 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md @@ -50,10 +50,23 @@ acronym-mapping: URI: Uri Etag: ETag|etag +prepend-rp-prefix: + - InventoryResource + - CloudNativeType + - EndpointProperties + - HostType + - InventoryProperties + - ProvisioningState + - ResourceProvisioningState + - ServiceName + rename-mapping: # IngressGatewayResource and ManagedProxyResource are not ARM resource but end with Resource suffix which is not allowed, so we need to rename them IngressGatewayResource: IngressGatewayAsset ManagedProxyResource: ManagedProxyAsset + # format transform + AADProfileProperties.serverId: -|uuid + PublicCloudConnectorProperties.connectorPrimaryIdentifier: -|uuid directive: - rename-model: @@ -69,4 +82,17 @@ directive: transform: > $["x-ms-client-name"] = "scope" + # To generate as Azure.Core.ResourceIdentifier + - from: swagger-document + where: $.definitions.ServiceConfigurationProperties.properties.resourceId + transform: $['x-ms-format'] = 'arm-id' + + - from: swagger-document + where: $.definitions.GenerateAwsTemplateRequest.properties.connectorId + transform: $['x-ms-format'] = 'arm-id' + + - from: swagger-document + where: $.definitions.InventoryProperties.properties.azureResourceId + transform: $['x-ms-format'] = 'arm-id' + ``` diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/tests/HybridConnectivityManagementMultiCloudTestBase.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/tests/HybridConnectivityManagementMultiCloudTestBase.cs new file mode 100644 index 0000000000000..c0de7e8bb5fb4 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/tests/HybridConnectivityManagementMultiCloudTestBase.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.TestFramework; +using NUnit.Framework; +using System.Threading.Tasks; +using System; +using Azure.Identity; +using Azure.ResourceManager.HybridConnectivity.Models; +using Azure.ResourceManager.Models; +using System.Collections.Generic; +using System.Xml; +using Castle.Components.DictionaryAdapter.Xml; + +namespace Azure.ResourceManager.HybridConnectivity.Tests +{ + public class HybridConnectivityManagementMultiCloudTestBase : ManagementRecordedTestBase + { + public ArmClient ArmClient { get; private set; } + + public ResourceIdentifier resourceGroupResourceId { get; set; } + + public ResourceGroupResource resourceGroupResource { get; set; } + + public PublicCloudConnectorCollection publicCloudConnectorCollection { get; set; } + + public SubscriptionResource Subscription { get; set; } + + public string subscriptionId = "1c70e365-4937-4ff9-8524-262064a268d8"; + + public string resourceGroupName = "MultiCloudSDKTestRG"; + + public HybridConnectivityManagementMultiCloudTestBase(bool isAsync) : base(isAsync) { } + + protected HybridConnectivityManagementMultiCloudTestBase(bool isAsync, RecordedTestMode mode) : base(isAsync, mode) { } + + [SetUp] + public void CreateCommonClient() + { + ArmClient = GetArmClient(); + } + + protected async Task InitializeClients() + { + Subscription = await ArmClient.GetDefaultSubscriptionAsync(); + resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + resourceGroupResource = ArmClient.GetResourceGroupResource(resourceGroupResourceId); + + //publicCloudConnectorCollection = resourceGroupResource.GetPublicCloudConnectors(); + } + } +}