diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/api/Azure.ResourceManager.HybridConnectivity.net8.0.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/api/Azure.ResourceManager.HybridConnectivity.net8.0.cs index 4f5455a011f0f..2381ca31ecc74 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/api/Azure.ResourceManager.HybridConnectivity.net8.0.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/api/Azure.ResourceManager.HybridConnectivity.net8.0.cs @@ -1,106 +1,91 @@ namespace Azure.ResourceManager.HybridConnectivity { - public partial class EndpointResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityEndpointCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HybridConnectivityEndpointCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string endpointName, Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string endpointName, Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string endpointName, 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 endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string endpointName, 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 HybridConnectivityEndpointData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HybridConnectivityEndpointData() { } + 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.HybridConnectivityEndpointData 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.HybridConnectivityEndpointData 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 HybridConnectivityEndpointResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; - protected EndpointResource() { } - public virtual Azure.ResourceManager.HybridConnectivity.EndpointResourceData Data { get { throw null; } } + protected HybridConnectivityEndpointResource() { } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string scope, string endpointName) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string resourceUri, string endpointName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } 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 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 GetCredentials(Azure.ResourceManager.HybridConnectivity.Models.ListCredentialsContent content = null, long? expiresin = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetCredentialsAsync(Azure.ResourceManager.HybridConnectivity.Models.ListCredentialsContent content = null, long? expiresin = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHybridConnectivityServiceConfiguration(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridConnectivityServiceConfigurationAsync(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationCollection GetHybridConnectivityServiceConfigurations() { throw null; } public virtual Azure.Response GetIngressGatewayCredentials(Azure.ResourceManager.HybridConnectivity.Models.ListIngressGatewayCredentialsContent content = null, long? expiresin = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetIngressGatewayCredentialsAsync(Azure.ResourceManager.HybridConnectivity.Models.ListIngressGatewayCredentialsContent content = null, long? expiresin = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetManagedProxyDetails(Azure.ResourceManager.HybridConnectivity.Models.ManagedProxyContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetManagedProxyDetailsAsync(Azure.ResourceManager.HybridConnectivity.Models.ManagedProxyContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetServiceConfigurationResource(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetServiceConfigurationResourceAsync(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceCollection GetServiceConfigurationResources() { throw null; } - 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) { } - Azure.ResourceManager.HybridConnectivity.EndpointResourceData 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 Update(Azure.ResourceManager.HybridConnectivity.EndpointResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.EndpointResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class EndpointResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected EndpointResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string endpointName, Azure.ResourceManager.HybridConnectivity.EndpointResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string endpointName, Azure.ResourceManager.HybridConnectivity.EndpointResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string endpointName, 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 endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string endpointName, 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 EndpointResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public EndpointResourceData() { } - 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) { } - Azure.ResourceManager.HybridConnectivity.EndpointResourceData 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.HybridConnectivityEndpointData 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.HybridConnectivityEndpointData 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 Update(Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public static partial class HybridConnectivityExtensions { - public static Azure.ResourceManager.HybridConnectivity.EndpointResource GetEndpointResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - 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.Response GetHybridConnectivityEndpoint(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> GetHybridConnectivityEndpointAsync(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.HybridConnectivityEndpointResource GetHybridConnectivityEndpointResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointCollection GetHybridConnectivityEndpoints(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { 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; } - public static Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorCollection GetPublicCloudConnectors(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetPublicCloudConnectors(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetPublicCloudConnectorsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResource GetServiceConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetSolutionConfiguration(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetSolutionConfigurationAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.SolutionConfigurationResource GetSolutionConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.SolutionConfigurationCollection GetSolutionConfigurations(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.SolutionTypeResource GetSolutionTypeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetSolutionTypeResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetSolutionTypeResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.SolutionTypeResourceCollection GetSolutionTypeResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetSolutionTypeResources(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetSolutionTypeResourcesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetHybridConnectivityPublicCloudConnector(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHybridConnectivityPublicCloudConnectorAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorResource GetHybridConnectivityPublicCloudConnectorResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorCollection GetHybridConnectivityPublicCloudConnectors(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHybridConnectivityPublicCloudConnectors(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHybridConnectivityPublicCloudConnectorsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationResource GetHybridConnectivityServiceConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetHybridConnectivitySolutionConfiguration(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHybridConnectivitySolutionConfigurationAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationResource GetHybridConnectivitySolutionConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationCollection GetHybridConnectivitySolutionConfigurations(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } + public static Azure.Response GetHybridConnectivitySolutionType(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHybridConnectivitySolutionTypeAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionTypeResource GetHybridConnectivitySolutionTypeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionTypeCollection GetHybridConnectivitySolutionTypes(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHybridConnectivitySolutionTypes(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHybridConnectivitySolutionTypesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } 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 HybridConnectivityInventoryResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - 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.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 HybridConnectivityInventoryResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HybridConnectivityInventoryCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected HybridConnectivityInventoryResourceCollection() { } + protected HybridConnectivityInventoryCollection() { } 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; } @@ -113,214 +98,229 @@ protected HybridConnectivityInventoryResourceCollection() { } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HybridConnectivityInventoryResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityInventoryData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public HybridConnectivityInventoryResourceData() { } + public HybridConnectivityInventoryData() { } 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.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; } + Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryData 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.HybridConnectivityInventoryData 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 + public partial class HybridConnectivityInventoryResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - protected PublicCloudConnectorCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string publicCloudConnector, Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string publicCloudConnector, Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static readonly Azure.Core.ResourceType ResourceType; + protected HybridConnectivityInventoryResource() { } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryData 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.HybridConnectivityInventoryData 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.HybridConnectivityInventoryData 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 HybridConnectivityPublicCloudConnectorCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HybridConnectivityPublicCloudConnectorCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string publicCloudConnector, Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string publicCloudConnector, Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string publicCloudConnector, 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 publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string publicCloudConnector, 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 publicCloudConnector, 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 publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string publicCloudConnector, 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 PublicCloudConnectorData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityPublicCloudConnectorData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public PublicCloudConnectorData(Azure.Core.AzureLocation location) { } + public HybridConnectivityPublicCloudConnectorData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.HybridConnectivity.Models.PublicCloudConnectorProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorData 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.PublicCloudConnectorData 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.HybridConnectivityPublicCloudConnectorData 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.HybridConnectivityPublicCloudConnectorData 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 PublicCloudConnectorResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityPublicCloudConnectorResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; - protected PublicCloudConnectorResource() { } - public virtual Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorData Data { get { throw null; } } + protected HybridConnectivityPublicCloudConnectorResource() { } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string publicCloudConnector) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } 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 RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorData 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.PublicCloudConnectorData 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.ResourceManager.ArmOperation TestPermissions(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> TestPermissionsAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.HybridConnectivity.Models.PublicCloudConnectorPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.Models.PublicCloudConnectorPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class ServiceConfigurationResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected ServiceConfigurationResource() { } - public virtual Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string scope, string endpointName, string serviceConfigurationName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - 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; } - 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) { } - Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceData 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 Update(Azure.ResourceManager.HybridConnectivity.Models.ServiceConfigurationResourcePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.Models.ServiceConfigurationResourcePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class ServiceConfigurationResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected ServiceConfigurationResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string serviceConfigurationName, Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string serviceConfigurationName, Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceData data, 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 RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorData 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.HybridConnectivityPublicCloudConnectorData 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.ResourceManager.ArmOperation TestPermissions(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> TestPermissionsAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityPublicCloudConnectorPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityPublicCloudConnectorPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HybridConnectivityServiceConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HybridConnectivityServiceConfigurationCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string serviceConfigurationName, Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string serviceConfigurationName, Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string serviceConfigurationName, 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 serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string serviceConfigurationName, 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 serviceConfigurationName, 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 serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string serviceConfigurationName, 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 ServiceConfigurationResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityServiceConfigurationData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public ServiceConfigurationResourceData() { } + public HybridConnectivityServiceConfigurationData() { } public long? Port { 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) { } - Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceData 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.HybridConnectivityServiceConfigurationData 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.HybridConnectivityServiceConfigurationData 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 SolutionConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HybridConnectivityServiceConfigurationResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - protected SolutionConfigurationCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string solutionConfiguration, Azure.ResourceManager.HybridConnectivity.SolutionConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string solutionConfiguration, Azure.ResourceManager.HybridConnectivity.SolutionConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static readonly Azure.Core.ResourceType ResourceType; + protected HybridConnectivityServiceConfigurationResource() { } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string resourceUri, string endpointName, string serviceConfigurationName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + 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; } + Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationData 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.HybridConnectivityServiceConfigurationData 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 Update(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HybridConnectivitySolutionConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HybridConnectivitySolutionConfigurationCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string solutionConfiguration, Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string solutionConfiguration, Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string solutionConfiguration, 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 solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string solutionConfiguration, 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 solutionConfiguration, 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 solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string solutionConfiguration, 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 SolutionConfigurationData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivitySolutionConfigurationData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public SolutionConfigurationData() { } + public HybridConnectivitySolutionConfigurationData() { } public Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.SolutionConfigurationData 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.SolutionConfigurationData 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.HybridConnectivitySolutionConfigurationData 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.HybridConnectivitySolutionConfigurationData 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 SolutionConfigurationResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivitySolutionConfigurationResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; - protected SolutionConfigurationResource() { } - public virtual Azure.ResourceManager.HybridConnectivity.SolutionConfigurationData Data { get { throw null; } } + protected HybridConnectivitySolutionConfigurationResource() { } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string resourceUri, string solutionConfiguration) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } 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 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; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.SolutionConfigurationData 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 Update(Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class SolutionTypeResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected SolutionTypeResource() { } - public virtual Azure.ResourceManager.HybridConnectivity.SolutionTypeResourceData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string solutionType) { 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.SolutionTypeResourceData 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.SolutionTypeResourceData 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 SolutionTypeResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected SolutionTypeResourceCollection() { } + 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.ResourceManager.HybridConnectivity.HybridConnectivityInventoryCollection GetHybridConnectivityInventories() { throw null; } + public virtual Azure.Response GetHybridConnectivityInventory(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridConnectivityInventoryAsync(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { 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.HybridConnectivitySolutionConfigurationData 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.HybridConnectivitySolutionConfigurationData 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 Update(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivitySolutionConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivitySolutionConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HybridConnectivitySolutionTypeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HybridConnectivitySolutionTypeCollection() { } public virtual Azure.Response Exists(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string solutionType, 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 solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string solutionType, 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 solutionType, 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 solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string solutionType, 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 SolutionTypeResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivitySolutionTypeData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public SolutionTypeResourceData() { } - public Azure.ResourceManager.HybridConnectivity.Models.SolutionTypeProperties Properties { get { throw null; } set { } } + public HybridConnectivitySolutionTypeData() { } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivitySolutionTypeProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.SolutionTypeResourceData 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.SolutionTypeResourceData 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.HybridConnectivitySolutionTypeData 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.HybridConnectivitySolutionTypeData 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 HybridConnectivitySolutionTypeResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HybridConnectivitySolutionTypeResource() { } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionTypeData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string solutionType) { 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.HybridConnectivitySolutionTypeData 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.HybridConnectivitySolutionTypeData 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; } } } namespace Azure.ResourceManager.HybridConnectivity.Mocking @@ -328,36 +328,36 @@ namespace Azure.ResourceManager.HybridConnectivity.Mocking public partial class MockableHybridConnectivityArmClient : Azure.ResourceManager.ArmResource { protected MockableHybridConnectivityArmClient() { } - public virtual Azure.ResourceManager.HybridConnectivity.EndpointResource GetEndpointResource(Azure.Core.ResourceIdentifier id) { throw null; } - 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.Response GetHybridConnectivityEndpoint(Azure.Core.ResourceIdentifier scope, string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridConnectivityEndpointAsync(Azure.Core.ResourceIdentifier scope, string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointResource GetHybridConnectivityEndpointResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointCollection GetHybridConnectivityEndpoints(Azure.Core.ResourceIdentifier scope) { 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; } - public virtual System.Threading.Tasks.Task> GetSolutionConfigurationAsync(Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.SolutionConfigurationResource GetSolutionConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.SolutionConfigurationCollection GetSolutionConfigurations(Azure.Core.ResourceIdentifier scope) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.SolutionTypeResource GetSolutionTypeResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorResource GetHybridConnectivityPublicCloudConnectorResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationResource GetHybridConnectivityServiceConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.Response GetHybridConnectivitySolutionConfiguration(Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridConnectivitySolutionConfigurationAsync(Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationResource GetHybridConnectivitySolutionConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationCollection GetHybridConnectivitySolutionConfigurations(Azure.Core.ResourceIdentifier scope) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionTypeResource GetHybridConnectivitySolutionTypeResource(Azure.Core.ResourceIdentifier id) { throw null; } } public partial class MockableHybridConnectivityResourceGroupResource : Azure.ResourceManager.ArmResource { protected MockableHybridConnectivityResourceGroupResource() { } - public virtual Azure.Response GetPublicCloudConnector(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetPublicCloudConnectorAsync(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorCollection GetPublicCloudConnectors() { throw null; } - public virtual Azure.Response GetSolutionTypeResource(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetSolutionTypeResourceAsync(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.SolutionTypeResourceCollection GetSolutionTypeResources() { throw null; } + public virtual Azure.Response GetHybridConnectivityPublicCloudConnector(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridConnectivityPublicCloudConnectorAsync(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorCollection GetHybridConnectivityPublicCloudConnectors() { throw null; } + public virtual Azure.Response GetHybridConnectivitySolutionType(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridConnectivitySolutionTypeAsync(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionTypeCollection GetHybridConnectivitySolutionTypes() { throw null; } } public partial class MockableHybridConnectivitySubscriptionResource : Azure.ResourceManager.ArmResource { protected MockableHybridConnectivitySubscriptionResource() { } - public virtual Azure.Pageable GetPublicCloudConnectors(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetPublicCloudConnectorsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetSolutionTypeResources(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetSolutionTypeResourcesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetHybridConnectivityPublicCloudConnectors(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHybridConnectivityPublicCloudConnectorsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetHybridConnectivitySolutionTypes(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHybridConnectivitySolutionTypesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response PostGenerateAwsTemplate(Azure.ResourceManager.HybridConnectivity.Models.GenerateAwsTemplateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> PostGenerateAwsTemplateAsync(Azure.ResourceManager.HybridConnectivity.Models.GenerateAwsTemplateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -366,23 +366,23 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { public static partial class ArmHybridConnectivityModelFactory { - 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), Azure.Core.ResourceIdentifier resourceId = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointData HybridConnectivityEndpointData(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.HybridConnectivityEndpointProperties HybridConnectivityEndpointProperties(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType endpointType = default(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType), Azure.Core.ResourceIdentifier resourceId = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryData HybridConnectivityInventoryData(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.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, Azure.Core.ResourceIdentifier 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.HybridConnectivityOperationStatusResult HybridConnectivityOperationStatusResult(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.HybridConnectivityPublicCloudConnectorData HybridConnectivityPublicCloudConnectorData(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.HybridConnectivityPublicCloudConnectorPatch HybridConnectivityPublicCloudConnectorPatch(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.HybridConnectivityServiceConfigurationData HybridConnectivityServiceConfigurationData(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.HybridConnectivitySolutionConfigurationData HybridConnectivitySolutionConfigurationData(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.HybridConnectivitySolutionConfigurationPatch HybridConnectivitySolutionConfigurationPatch(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.HybridConnectivitySolutionTypeData HybridConnectivitySolutionTypeData(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.HybridConnectivitySolutionTypeProperties properties = null) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.IngressGatewayAsset IngressGatewayAsset(string hostname = null, System.Guid? serverId = default(System.Guid?), 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.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.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.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.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; } } @@ -399,24 +399,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 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) { } @@ -448,8 +430,8 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer } public partial class HybridConnectivityEndpointProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public HybridConnectivityEndpointProperties(Azure.ResourceManager.HybridConnectivity.Models.EndpointType endpointType) { } - public Azure.ResourceManager.HybridConnectivity.Models.EndpointType EndpointType { get { throw null; } set { } } + public HybridConnectivityEndpointProperties(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType endpointType) { } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType EndpointType { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -460,6 +442,24 @@ 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 HybridConnectivityEndpointType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public HybridConnectivityEndpointType(string value) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType Custom { get { throw null; } } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType Default { get { throw null; } } + public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType 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.HybridConnectivityEndpointType left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType right) { throw null; } + public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct HybridConnectivityHostType : System.IEquatable { private readonly object _dummy; @@ -492,6 +492,25 @@ 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 HybridConnectivityOperationStatusResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HybridConnectivityOperationStatusResult() { } + public System.DateTimeOffset? EndOn { get { throw null; } } + public Azure.ResponseError Error { get { throw null; } } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public string Name { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Operations { get { throw null; } } + public float? PercentComplete { get { throw null; } } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } } + public string Status { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityOperationStatusResult 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.HybridConnectivityOperationStatusResult 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 HybridConnectivityProvisioningState : System.IEquatable { @@ -513,6 +532,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState right) { throw null; } public override string ToString() { throw null; } } + public partial class HybridConnectivityPublicCloudConnectorPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HybridConnectivityPublicCloudConnectorPatch() { } + public System.Collections.Generic.IList AwsCloudExcludedAccounts { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityPublicCloudConnectorPatch 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.HybridConnectivityPublicCloudConnectorPatch 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 HybridConnectivityResourceProvisioningState : System.IEquatable { @@ -532,6 +563,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState right) { throw null; } public override string ToString() { throw null; } } + public partial class HybridConnectivityServiceConfigurationPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HybridConnectivityServiceConfigurationPatch() { } + public long? Port { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceConfigurationPatch 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.HybridConnectivityServiceConfigurationPatch 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 HybridConnectivityServiceName : System.IEquatable { @@ -550,6 +592,31 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer 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 HybridConnectivitySolutionConfigurationPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HybridConnectivitySolutionConfigurationPatch() { } + public Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationPropertiesUpdate Properties { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivitySolutionConfigurationPatch 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.HybridConnectivitySolutionConfigurationPatch 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 HybridConnectivitySolutionTypeProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HybridConnectivitySolutionTypeProperties() { } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IList SolutionSettings { get { throw null; } } + public string SolutionType { get { throw null; } set { } } + public System.Collections.Generic.IList SupportedAzureRegions { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivitySolutionTypeProperties 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.HybridConnectivitySolutionTypeProperties 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 IngressGatewayAsset : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal IngressGatewayAsset() { } @@ -559,7 +626,7 @@ internal IngressGatewayAsset() { } public string HybridConnectionName { get { throw null; } } public string NamespaceName { get { throw null; } } public string NamespaceNameSuffix { get { throw null; } } - public Azure.Core.ResourceIdentifier ServerId { get { throw null; } } + public System.Guid? ServerId { get { throw null; } } public string ServiceConfigurationToken { get { throw null; } } public System.Guid? TenantId { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -616,37 +683,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; } } - public partial class OperationStatusResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal OperationStatusResult() { } - public System.DateTimeOffset? EndOn { get { throw null; } } - public Azure.ResponseError Error { get { throw null; } } - public Azure.Core.ResourceIdentifier Id { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Operations { get { throw null; } } - public float? PercentComplete { get { throw null; } } - public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } } - public string Status { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.OperationStatusResult 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.OperationStatusResult 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 PublicCloudConnectorPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public PublicCloudConnectorPatch() { } - public System.Collections.Generic.IList AwsCloudExcludedAccounts { get { throw null; } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.PublicCloudConnectorPatch 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.PublicCloudConnectorPatch 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 PublicCloudConnectorProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public PublicCloudConnectorProperties(Azure.ResourceManager.HybridConnectivity.Models.AwsCloudProfile awsCloudProfile, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityHostType hostType) { } @@ -661,28 +697,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; } } - public partial class ServiceConfigurationResourcePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ServiceConfigurationResourcePatch() { } - public long? Port { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.ServiceConfigurationResourcePatch 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.ServiceConfigurationResourcePatch 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 SolutionConfigurationPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public SolutionConfigurationPatch() { } - public Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationPropertiesUpdate Properties { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationPatch 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.SolutionConfigurationPatch 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 SolutionConfigurationProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SolutionConfigurationProperties(string solutionType) { } @@ -731,20 +745,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus left, Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class SolutionTypeProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public SolutionTypeProperties() { } - public string Description { get { throw null; } set { } } - public System.Collections.Generic.IList SolutionSettings { get { throw null; } } - public string SolutionType { get { throw null; } set { } } - public System.Collections.Generic.IList SupportedAzureRegions { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.SolutionTypeProperties 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.SolutionTypeProperties 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 SolutionTypeSettings : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SolutionTypeSettings(string solutionType) { } 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 4f5455a011f0f..2381ca31ecc74 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 @@ -1,106 +1,91 @@ namespace Azure.ResourceManager.HybridConnectivity { - public partial class EndpointResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityEndpointCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HybridConnectivityEndpointCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string endpointName, Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string endpointName, Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string endpointName, 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 endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string endpointName, 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 HybridConnectivityEndpointData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HybridConnectivityEndpointData() { } + 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.HybridConnectivityEndpointData 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.HybridConnectivityEndpointData 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 HybridConnectivityEndpointResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; - protected EndpointResource() { } - public virtual Azure.ResourceManager.HybridConnectivity.EndpointResourceData Data { get { throw null; } } + protected HybridConnectivityEndpointResource() { } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string scope, string endpointName) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string resourceUri, string endpointName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } 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 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 GetCredentials(Azure.ResourceManager.HybridConnectivity.Models.ListCredentialsContent content = null, long? expiresin = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetCredentialsAsync(Azure.ResourceManager.HybridConnectivity.Models.ListCredentialsContent content = null, long? expiresin = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHybridConnectivityServiceConfiguration(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridConnectivityServiceConfigurationAsync(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationCollection GetHybridConnectivityServiceConfigurations() { throw null; } public virtual Azure.Response GetIngressGatewayCredentials(Azure.ResourceManager.HybridConnectivity.Models.ListIngressGatewayCredentialsContent content = null, long? expiresin = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetIngressGatewayCredentialsAsync(Azure.ResourceManager.HybridConnectivity.Models.ListIngressGatewayCredentialsContent content = null, long? expiresin = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetManagedProxyDetails(Azure.ResourceManager.HybridConnectivity.Models.ManagedProxyContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetManagedProxyDetailsAsync(Azure.ResourceManager.HybridConnectivity.Models.ManagedProxyContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetServiceConfigurationResource(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetServiceConfigurationResourceAsync(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceCollection GetServiceConfigurationResources() { throw null; } - 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) { } - Azure.ResourceManager.HybridConnectivity.EndpointResourceData 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 Update(Azure.ResourceManager.HybridConnectivity.EndpointResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.EndpointResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class EndpointResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected EndpointResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string endpointName, Azure.ResourceManager.HybridConnectivity.EndpointResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string endpointName, Azure.ResourceManager.HybridConnectivity.EndpointResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string endpointName, 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 endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string endpointName, 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 EndpointResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public EndpointResourceData() { } - 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) { } - Azure.ResourceManager.HybridConnectivity.EndpointResourceData 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.HybridConnectivityEndpointData 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.HybridConnectivityEndpointData 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 Update(Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public static partial class HybridConnectivityExtensions { - public static Azure.ResourceManager.HybridConnectivity.EndpointResource GetEndpointResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - 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.Response GetHybridConnectivityEndpoint(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> GetHybridConnectivityEndpointAsync(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.HybridConnectivityEndpointResource GetHybridConnectivityEndpointResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointCollection GetHybridConnectivityEndpoints(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { 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; } - public static Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorCollection GetPublicCloudConnectors(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetPublicCloudConnectors(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetPublicCloudConnectorsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResource GetServiceConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetSolutionConfiguration(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetSolutionConfigurationAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.SolutionConfigurationResource GetSolutionConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.SolutionConfigurationCollection GetSolutionConfigurations(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.SolutionTypeResource GetSolutionTypeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetSolutionTypeResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetSolutionTypeResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.HybridConnectivity.SolutionTypeResourceCollection GetSolutionTypeResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetSolutionTypeResources(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetSolutionTypeResourcesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetHybridConnectivityPublicCloudConnector(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHybridConnectivityPublicCloudConnectorAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorResource GetHybridConnectivityPublicCloudConnectorResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorCollection GetHybridConnectivityPublicCloudConnectors(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHybridConnectivityPublicCloudConnectors(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHybridConnectivityPublicCloudConnectorsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationResource GetHybridConnectivityServiceConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetHybridConnectivitySolutionConfiguration(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHybridConnectivitySolutionConfigurationAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationResource GetHybridConnectivitySolutionConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationCollection GetHybridConnectivitySolutionConfigurations(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } + public static Azure.Response GetHybridConnectivitySolutionType(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetHybridConnectivitySolutionTypeAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionTypeResource GetHybridConnectivitySolutionTypeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionTypeCollection GetHybridConnectivitySolutionTypes(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetHybridConnectivitySolutionTypes(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetHybridConnectivitySolutionTypesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } 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 HybridConnectivityInventoryResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - 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.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 HybridConnectivityInventoryResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HybridConnectivityInventoryCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected HybridConnectivityInventoryResourceCollection() { } + protected HybridConnectivityInventoryCollection() { } 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; } @@ -113,214 +98,229 @@ protected HybridConnectivityInventoryResourceCollection() { } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class HybridConnectivityInventoryResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityInventoryData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public HybridConnectivityInventoryResourceData() { } + public HybridConnectivityInventoryData() { } 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.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; } + Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryData 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.HybridConnectivityInventoryData 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 + public partial class HybridConnectivityInventoryResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - protected PublicCloudConnectorCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string publicCloudConnector, Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string publicCloudConnector, Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static readonly Azure.Core.ResourceType ResourceType; + protected HybridConnectivityInventoryResource() { } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryData 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.HybridConnectivityInventoryData 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.HybridConnectivityInventoryData 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 HybridConnectivityPublicCloudConnectorCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HybridConnectivityPublicCloudConnectorCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string publicCloudConnector, Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string publicCloudConnector, Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string publicCloudConnector, 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 publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string publicCloudConnector, 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 publicCloudConnector, 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 publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string publicCloudConnector, 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 PublicCloudConnectorData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityPublicCloudConnectorData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public PublicCloudConnectorData(Azure.Core.AzureLocation location) { } + public HybridConnectivityPublicCloudConnectorData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.HybridConnectivity.Models.PublicCloudConnectorProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorData 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.PublicCloudConnectorData 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.HybridConnectivityPublicCloudConnectorData 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.HybridConnectivityPublicCloudConnectorData 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 PublicCloudConnectorResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityPublicCloudConnectorResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; - protected PublicCloudConnectorResource() { } - public virtual Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorData Data { get { throw null; } } + protected HybridConnectivityPublicCloudConnectorResource() { } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string publicCloudConnector) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } 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 RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorData 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.PublicCloudConnectorData 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.ResourceManager.ArmOperation TestPermissions(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> TestPermissionsAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.HybridConnectivity.Models.PublicCloudConnectorPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.Models.PublicCloudConnectorPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class ServiceConfigurationResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected ServiceConfigurationResource() { } - public virtual Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string scope, string endpointName, string serviceConfigurationName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - 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; } - 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) { } - Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceData 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 Update(Azure.ResourceManager.HybridConnectivity.Models.ServiceConfigurationResourcePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.Models.ServiceConfigurationResourcePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class ServiceConfigurationResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected ServiceConfigurationResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string serviceConfigurationName, Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string serviceConfigurationName, Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceData data, 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 RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorData 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.HybridConnectivityPublicCloudConnectorData 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.ResourceManager.ArmOperation TestPermissions(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> TestPermissionsAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityPublicCloudConnectorPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityPublicCloudConnectorPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HybridConnectivityServiceConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HybridConnectivityServiceConfigurationCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string serviceConfigurationName, Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string serviceConfigurationName, Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string serviceConfigurationName, 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 serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string serviceConfigurationName, 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 serviceConfigurationName, 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 serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string serviceConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string serviceConfigurationName, 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 ServiceConfigurationResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivityServiceConfigurationData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public ServiceConfigurationResourceData() { } + public HybridConnectivityServiceConfigurationData() { } public long? Port { 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) { } - Azure.ResourceManager.HybridConnectivity.ServiceConfigurationResourceData 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.HybridConnectivityServiceConfigurationData 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.HybridConnectivityServiceConfigurationData 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 SolutionConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class HybridConnectivityServiceConfigurationResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - protected SolutionConfigurationCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string solutionConfiguration, Azure.ResourceManager.HybridConnectivity.SolutionConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string solutionConfiguration, Azure.ResourceManager.HybridConnectivity.SolutionConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static readonly Azure.Core.ResourceType ResourceType; + protected HybridConnectivityServiceConfigurationResource() { } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string resourceUri, string endpointName, string serviceConfigurationName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + 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; } + Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationData 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.HybridConnectivityServiceConfigurationData 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 Update(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HybridConnectivitySolutionConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HybridConnectivitySolutionConfigurationCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string solutionConfiguration, Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string solutionConfiguration, Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string solutionConfiguration, 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 solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string solutionConfiguration, 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 solutionConfiguration, 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 solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string solutionConfiguration, 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 SolutionConfigurationData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivitySolutionConfigurationData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public SolutionConfigurationData() { } + public HybridConnectivitySolutionConfigurationData() { } public Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.SolutionConfigurationData 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.SolutionConfigurationData 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.HybridConnectivitySolutionConfigurationData 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.HybridConnectivitySolutionConfigurationData 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 SolutionConfigurationResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivitySolutionConfigurationResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; - protected SolutionConfigurationResource() { } - public virtual Azure.ResourceManager.HybridConnectivity.SolutionConfigurationData Data { get { throw null; } } + protected HybridConnectivitySolutionConfigurationResource() { } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string resourceUri, string solutionConfiguration) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } 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 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; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.SolutionConfigurationData 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 Update(Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class SolutionTypeResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected SolutionTypeResource() { } - public virtual Azure.ResourceManager.HybridConnectivity.SolutionTypeResourceData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string solutionType) { 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.SolutionTypeResourceData 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.SolutionTypeResourceData 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 SolutionTypeResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected SolutionTypeResourceCollection() { } + 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.ResourceManager.HybridConnectivity.HybridConnectivityInventoryCollection GetHybridConnectivityInventories() { throw null; } + public virtual Azure.Response GetHybridConnectivityInventory(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridConnectivityInventoryAsync(string inventoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { 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.HybridConnectivitySolutionConfigurationData 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.HybridConnectivitySolutionConfigurationData 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 Update(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivitySolutionConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivitySolutionConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HybridConnectivitySolutionTypeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HybridConnectivitySolutionTypeCollection() { } public virtual Azure.Response Exists(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string solutionType, 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 solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string solutionType, 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 solutionType, 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 solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string solutionType, 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 SolutionTypeResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class HybridConnectivitySolutionTypeData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public SolutionTypeResourceData() { } - public Azure.ResourceManager.HybridConnectivity.Models.SolutionTypeProperties Properties { get { throw null; } set { } } + public HybridConnectivitySolutionTypeData() { } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivitySolutionTypeProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.SolutionTypeResourceData 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.SolutionTypeResourceData 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.HybridConnectivitySolutionTypeData 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.HybridConnectivitySolutionTypeData 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 HybridConnectivitySolutionTypeResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HybridConnectivitySolutionTypeResource() { } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionTypeData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string solutionType) { 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.HybridConnectivitySolutionTypeData 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.HybridConnectivitySolutionTypeData 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; } } } namespace Azure.ResourceManager.HybridConnectivity.Mocking @@ -328,36 +328,36 @@ namespace Azure.ResourceManager.HybridConnectivity.Mocking public partial class MockableHybridConnectivityArmClient : Azure.ResourceManager.ArmResource { protected MockableHybridConnectivityArmClient() { } - public virtual Azure.ResourceManager.HybridConnectivity.EndpointResource GetEndpointResource(Azure.Core.ResourceIdentifier id) { throw null; } - 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.Response GetHybridConnectivityEndpoint(Azure.Core.ResourceIdentifier scope, string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridConnectivityEndpointAsync(Azure.Core.ResourceIdentifier scope, string endpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointResource GetHybridConnectivityEndpointResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointCollection GetHybridConnectivityEndpoints(Azure.Core.ResourceIdentifier scope) { 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; } - public virtual System.Threading.Tasks.Task> GetSolutionConfigurationAsync(Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.SolutionConfigurationResource GetSolutionConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.SolutionConfigurationCollection GetSolutionConfigurations(Azure.Core.ResourceIdentifier scope) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.SolutionTypeResource GetSolutionTypeResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorResource GetHybridConnectivityPublicCloudConnectorResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityServiceConfigurationResource GetHybridConnectivityServiceConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.Response GetHybridConnectivitySolutionConfiguration(Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridConnectivitySolutionConfigurationAsync(Azure.Core.ResourceIdentifier scope, string solutionConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationResource GetHybridConnectivitySolutionConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionConfigurationCollection GetHybridConnectivitySolutionConfigurations(Azure.Core.ResourceIdentifier scope) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionTypeResource GetHybridConnectivitySolutionTypeResource(Azure.Core.ResourceIdentifier id) { throw null; } } public partial class MockableHybridConnectivityResourceGroupResource : Azure.ResourceManager.ArmResource { protected MockableHybridConnectivityResourceGroupResource() { } - public virtual Azure.Response GetPublicCloudConnector(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetPublicCloudConnectorAsync(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorCollection GetPublicCloudConnectors() { throw null; } - public virtual Azure.Response GetSolutionTypeResource(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetSolutionTypeResourceAsync(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.HybridConnectivity.SolutionTypeResourceCollection GetSolutionTypeResources() { throw null; } + public virtual Azure.Response GetHybridConnectivityPublicCloudConnector(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridConnectivityPublicCloudConnectorAsync(string publicCloudConnector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivityPublicCloudConnectorCollection GetHybridConnectivityPublicCloudConnectors() { throw null; } + public virtual Azure.Response GetHybridConnectivitySolutionType(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridConnectivitySolutionTypeAsync(string solutionType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.HybridConnectivity.HybridConnectivitySolutionTypeCollection GetHybridConnectivitySolutionTypes() { throw null; } } public partial class MockableHybridConnectivitySubscriptionResource : Azure.ResourceManager.ArmResource { protected MockableHybridConnectivitySubscriptionResource() { } - public virtual Azure.Pageable GetPublicCloudConnectors(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetPublicCloudConnectorsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetSolutionTypeResources(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetSolutionTypeResourcesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetHybridConnectivityPublicCloudConnectors(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHybridConnectivityPublicCloudConnectorsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetHybridConnectivitySolutionTypes(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHybridConnectivitySolutionTypesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response PostGenerateAwsTemplate(Azure.ResourceManager.HybridConnectivity.Models.GenerateAwsTemplateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> PostGenerateAwsTemplateAsync(Azure.ResourceManager.HybridConnectivity.Models.GenerateAwsTemplateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -366,23 +366,23 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { public static partial class ArmHybridConnectivityModelFactory { - 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), Azure.Core.ResourceIdentifier resourceId = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityEndpointData HybridConnectivityEndpointData(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.HybridConnectivityEndpointProperties HybridConnectivityEndpointProperties(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType endpointType = default(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType), Azure.Core.ResourceIdentifier resourceId = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.HybridConnectivityInventoryData HybridConnectivityInventoryData(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.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, Azure.Core.ResourceIdentifier 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.HybridConnectivityOperationStatusResult HybridConnectivityOperationStatusResult(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.HybridConnectivityPublicCloudConnectorData HybridConnectivityPublicCloudConnectorData(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.HybridConnectivityPublicCloudConnectorPatch HybridConnectivityPublicCloudConnectorPatch(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.HybridConnectivityServiceConfigurationData HybridConnectivityServiceConfigurationData(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.HybridConnectivitySolutionConfigurationData HybridConnectivitySolutionConfigurationData(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.HybridConnectivitySolutionConfigurationPatch HybridConnectivitySolutionConfigurationPatch(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.HybridConnectivitySolutionTypeData HybridConnectivitySolutionTypeData(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.HybridConnectivitySolutionTypeProperties properties = null) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.IngressGatewayAsset IngressGatewayAsset(string hostname = null, System.Guid? serverId = default(System.Guid?), 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.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.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.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.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; } } @@ -399,24 +399,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 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) { } @@ -448,8 +430,8 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer } public partial class HybridConnectivityEndpointProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public HybridConnectivityEndpointProperties(Azure.ResourceManager.HybridConnectivity.Models.EndpointType endpointType) { } - public Azure.ResourceManager.HybridConnectivity.Models.EndpointType EndpointType { get { throw null; } set { } } + public HybridConnectivityEndpointProperties(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType endpointType) { } + public Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType EndpointType { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -460,6 +442,24 @@ 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 HybridConnectivityEndpointType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public HybridConnectivityEndpointType(string value) { throw null; } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType Custom { get { throw null; } } + public static Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType Default { get { throw null; } } + public bool Equals(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType 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.HybridConnectivityEndpointType left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType right) { throw null; } + public static implicit operator Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityEndpointType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct HybridConnectivityHostType : System.IEquatable { private readonly object _dummy; @@ -492,6 +492,25 @@ 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 HybridConnectivityOperationStatusResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal HybridConnectivityOperationStatusResult() { } + public System.DateTimeOffset? EndOn { get { throw null; } } + public Azure.ResponseError Error { get { throw null; } } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public string Name { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Operations { get { throw null; } } + public float? PercentComplete { get { throw null; } } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } } + public string Status { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityOperationStatusResult 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.HybridConnectivityOperationStatusResult 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 HybridConnectivityProvisioningState : System.IEquatable { @@ -513,6 +532,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityProvisioningState right) { throw null; } public override string ToString() { throw null; } } + public partial class HybridConnectivityPublicCloudConnectorPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HybridConnectivityPublicCloudConnectorPatch() { } + public System.Collections.Generic.IList AwsCloudExcludedAccounts { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityPublicCloudConnectorPatch 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.HybridConnectivityPublicCloudConnectorPatch 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 HybridConnectivityResourceProvisioningState : System.IEquatable { @@ -532,6 +563,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState left, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityResourceProvisioningState right) { throw null; } public override string ToString() { throw null; } } + public partial class HybridConnectivityServiceConfigurationPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HybridConnectivityServiceConfigurationPatch() { } + public long? Port { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityServiceConfigurationPatch 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.HybridConnectivityServiceConfigurationPatch 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 HybridConnectivityServiceName : System.IEquatable { @@ -550,6 +592,31 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer 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 HybridConnectivitySolutionConfigurationPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HybridConnectivitySolutionConfigurationPatch() { } + public Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationPropertiesUpdate Properties { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivitySolutionConfigurationPatch 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.HybridConnectivitySolutionConfigurationPatch 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 HybridConnectivitySolutionTypeProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public HybridConnectivitySolutionTypeProperties() { } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IList SolutionSettings { get { throw null; } } + public string SolutionType { get { throw null; } set { } } + public System.Collections.Generic.IList SupportedAzureRegions { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivitySolutionTypeProperties 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.HybridConnectivitySolutionTypeProperties 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 IngressGatewayAsset : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal IngressGatewayAsset() { } @@ -559,7 +626,7 @@ internal IngressGatewayAsset() { } public string HybridConnectionName { get { throw null; } } public string NamespaceName { get { throw null; } } public string NamespaceNameSuffix { get { throw null; } } - public Azure.Core.ResourceIdentifier ServerId { get { throw null; } } + public System.Guid? ServerId { get { throw null; } } public string ServiceConfigurationToken { get { throw null; } } public System.Guid? TenantId { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -616,37 +683,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; } } - public partial class OperationStatusResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal OperationStatusResult() { } - public System.DateTimeOffset? EndOn { get { throw null; } } - public Azure.ResponseError Error { get { throw null; } } - public Azure.Core.ResourceIdentifier Id { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Operations { get { throw null; } } - public float? PercentComplete { get { throw null; } } - public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } } - public string Status { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.OperationStatusResult 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.OperationStatusResult 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 PublicCloudConnectorPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public PublicCloudConnectorPatch() { } - public System.Collections.Generic.IList AwsCloudExcludedAccounts { get { throw null; } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.PublicCloudConnectorPatch 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.PublicCloudConnectorPatch 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 PublicCloudConnectorProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public PublicCloudConnectorProperties(Azure.ResourceManager.HybridConnectivity.Models.AwsCloudProfile awsCloudProfile, Azure.ResourceManager.HybridConnectivity.Models.HybridConnectivityHostType hostType) { } @@ -661,28 +697,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; } } - public partial class ServiceConfigurationResourcePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ServiceConfigurationResourcePatch() { } - public long? Port { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.ServiceConfigurationResourcePatch 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.ServiceConfigurationResourcePatch 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 SolutionConfigurationPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public SolutionConfigurationPatch() { } - public Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationPropertiesUpdate Properties { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationPatch 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.SolutionConfigurationPatch 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 SolutionConfigurationProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SolutionConfigurationProperties(string solutionType) { } @@ -731,20 +745,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus left, Azure.ResourceManager.HybridConnectivity.Models.SolutionConfigurationStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class SolutionTypeProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public SolutionTypeProperties() { } - public string Description { get { throw null; } set { } } - public System.Collections.Generic.IList SolutionSettings { get { throw null; } } - public string SolutionType { get { throw null; } set { } } - public System.Collections.Generic.IList SupportedAzureRegions { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.HybridConnectivity.Models.SolutionTypeProperties 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.SolutionTypeProperties 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 SolutionTypeSettings : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SolutionTypeSettings(string solutionType) { } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResourceCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityEndpointCollection.cs similarity index 72% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResourceCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityEndpointCollection.cs index 4b885bc400319..b9d640cba4d98 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResourceCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityEndpointCollection.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Samples { - public partial class Sample_EndpointResourceCollection + public partial class Sample_HybridConnectivityEndpointCollection { [Test] [Ignore("Only validating compilation of examples")] @@ -31,17 +31,17 @@ public async Task GetAll_HybridConnectivityEndpointsGet() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; - ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", scope)); - EndpointResourceCollection collection = client.GetEndpointResources(scopeId); + // get the collection of this HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); + HybridConnectivityEndpointCollection collection = client.GetHybridConnectivityEndpoints(scopeId); // invoke the operation and iterate over the result - await foreach (EndpointResource item in collection.GetAllAsync()) + await foreach (HybridConnectivityEndpointResource 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 - EndpointResourceData resourceData = item.Data; + HybridConnectivityEndpointData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -64,18 +64,18 @@ public async Task Get_HybridConnectivityEndpointsGetCustom() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; - ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", scope)); - EndpointResourceCollection collection = client.GetEndpointResources(scopeId); + // get the collection of this HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); + HybridConnectivityEndpointCollection collection = client.GetHybridConnectivityEndpoints(scopeId); // invoke the operation string endpointName = "custom"; - EndpointResource result = await collection.GetAsync(endpointName); + HybridConnectivityEndpointResource result = await collection.GetAsync(endpointName); // 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 - EndpointResourceData resourceData = result.Data; + HybridConnectivityEndpointData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -95,10 +95,10 @@ public async Task Exists_HybridConnectivityEndpointsGetCustom() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; - ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", scope)); - EndpointResourceCollection collection = client.GetEndpointResources(scopeId); + // get the collection of this HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); + HybridConnectivityEndpointCollection collection = client.GetHybridConnectivityEndpoints(scopeId); // invoke the operation string endpointName = "custom"; @@ -122,15 +122,15 @@ public async Task GetIfExists_HybridConnectivityEndpointsGetCustom() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; - ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", scope)); - EndpointResourceCollection collection = client.GetEndpointResources(scopeId); + // get the collection of this HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); + HybridConnectivityEndpointCollection collection = client.GetHybridConnectivityEndpoints(scopeId); // invoke the operation string endpointName = "custom"; - NullableResponse response = await collection.GetIfExistsAsync(endpointName); - EndpointResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(endpointName); + HybridConnectivityEndpointResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -140,7 +140,7 @@ public async Task GetIfExists_HybridConnectivityEndpointsGetCustom() { // 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 - EndpointResourceData resourceData = result.Data; + HybridConnectivityEndpointData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -161,18 +161,18 @@ public async Task Get_HybridConnectivityEndpointsGetDefault() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; - ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", scope)); - EndpointResourceCollection collection = client.GetEndpointResources(scopeId); + // get the collection of this HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); + HybridConnectivityEndpointCollection collection = client.GetHybridConnectivityEndpoints(scopeId); // invoke the operation string endpointName = "default"; - EndpointResource result = await collection.GetAsync(endpointName); + HybridConnectivityEndpointResource result = await collection.GetAsync(endpointName); // 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 - EndpointResourceData resourceData = result.Data; + HybridConnectivityEndpointData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -192,10 +192,10 @@ public async Task Exists_HybridConnectivityEndpointsGetDefault() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; - ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", scope)); - EndpointResourceCollection collection = client.GetEndpointResources(scopeId); + // get the collection of this HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); + HybridConnectivityEndpointCollection collection = client.GetHybridConnectivityEndpoints(scopeId); // invoke the operation string endpointName = "default"; @@ -219,15 +219,15 @@ public async Task GetIfExists_HybridConnectivityEndpointsGetDefault() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; - ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", scope)); - EndpointResourceCollection collection = client.GetEndpointResources(scopeId); + // get the collection of this HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); + HybridConnectivityEndpointCollection collection = client.GetHybridConnectivityEndpoints(scopeId); // invoke the operation string endpointName = "default"; - NullableResponse response = await collection.GetIfExistsAsync(endpointName); - EndpointResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(endpointName); + HybridConnectivityEndpointResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -237,7 +237,7 @@ public async Task GetIfExists_HybridConnectivityEndpointsGetDefault() { // 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 - EndpointResourceData resourceData = result.Data; + HybridConnectivityEndpointData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -258,26 +258,26 @@ public async Task CreateOrUpdate_HybridConnectivityEndpointsPutCustom() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; - ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", scope)); - EndpointResourceCollection collection = client.GetEndpointResources(scopeId); + // get the collection of this HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); + HybridConnectivityEndpointCollection collection = client.GetHybridConnectivityEndpoints(scopeId); // invoke the operation string endpointName = "custom"; - EndpointResourceData data = new EndpointResourceData() + HybridConnectivityEndpointData data = new HybridConnectivityEndpointData() { - Properties = new HybridConnectivityEndpointProperties(EndpointType.Custom) + Properties = new HybridConnectivityEndpointProperties(HybridConnectivityEndpointType.Custom) { ResourceId = new ResourceIdentifier("/subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.Relay/namespaces/custom-relay-namespace"), }, }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, endpointName, data); - EndpointResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, endpointName, data); + HybridConnectivityEndpointResource result = lro.Value; // 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 - EndpointResourceData resourceData = result.Data; + HybridConnectivityEndpointData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -297,23 +297,23 @@ public async Task CreateOrUpdate_HybridConnectivityEndpointsPutDefault() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; - ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", scope)); - EndpointResourceCollection collection = client.GetEndpointResources(scopeId); + // get the collection of this HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); + HybridConnectivityEndpointCollection collection = client.GetHybridConnectivityEndpoints(scopeId); // invoke the operation string endpointName = "default"; - EndpointResourceData data = new EndpointResourceData() + HybridConnectivityEndpointData data = new HybridConnectivityEndpointData() { - Properties = new HybridConnectivityEndpointProperties(EndpointType.Default), + Properties = new HybridConnectivityEndpointProperties(HybridConnectivityEndpointType.Default), }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, endpointName, data); - EndpointResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, endpointName, data); + HybridConnectivityEndpointResource result = lro.Value; // 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 - EndpointResourceData resourceData = result.Data; + HybridConnectivityEndpointData 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_EndpointResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityEndpointResource.cs similarity index 58% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityEndpointResource.cs index 930dc9edbedca..de563a34bf244 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityEndpointResource.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Samples { - public partial class Sample_EndpointResource + public partial class Sample_HybridConnectivityEndpointResource { [Test] [Ignore("Only validating compilation of examples")] @@ -28,19 +28,19 @@ public async Task Get_HybridConnectivityEndpointsGetCustom() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; string endpointName = "custom"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); // invoke the operation - EndpointResource result = await endpointResource.GetAsync(); + HybridConnectivityEndpointResource result = await hybridConnectivityEndpoint.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 - EndpointResourceData resourceData = result.Data; + HybridConnectivityEndpointData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -57,19 +57,19 @@ public async Task Get_HybridConnectivityEndpointsGetDefault() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); // invoke the operation - EndpointResource result = await endpointResource.GetAsync(); + HybridConnectivityEndpointResource result = await hybridConnectivityEndpoint.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 - EndpointResourceData resourceData = result.Data; + HybridConnectivityEndpointData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -86,23 +86,23 @@ public async Task Update_HybridConnectivityEndpointsPatchDefault() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); // invoke the operation - EndpointResourceData data = new EndpointResourceData() + HybridConnectivityEndpointData data = new HybridConnectivityEndpointData() { - Properties = new HybridConnectivityEndpointProperties(EndpointType.Default), + Properties = new HybridConnectivityEndpointProperties(HybridConnectivityEndpointType.Default), }; - EndpointResource result = await endpointResource.UpdateAsync(data); + HybridConnectivityEndpointResource result = await hybridConnectivityEndpoint.UpdateAsync(data); // 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 - EndpointResourceData resourceData = result.Data; + HybridConnectivityEndpointData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -119,15 +119,15 @@ public async Task Delete_HybridConnectivityEndpointsDeleteDefault() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); // invoke the operation - await endpointResource.DeleteAsync(WaitUntil.Completed); + await hybridConnectivityEndpoint.DeleteAsync(WaitUntil.Completed); Console.WriteLine("Succeeded"); } @@ -144,12 +144,12 @@ public async Task GetCredentials_HybridConnectivityEndpointsPostListCredentials( // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); // invoke the operation ListCredentialsContent content = new ListCredentialsContent() @@ -157,7 +157,7 @@ public async Task GetCredentials_HybridConnectivityEndpointsPostListCredentials( ServiceName = HybridConnectivityServiceName.SSH, }; long? expiresin = 10800L; - TargetResourceEndpointAccess result = await endpointResource.GetCredentialsAsync(content: content, expiresin: expiresin); + TargetResourceEndpointAccess result = await hybridConnectivityEndpoint.GetCredentialsAsync(content: content, expiresin: expiresin); Console.WriteLine($"Succeeded: {result}"); } @@ -174,16 +174,16 @@ public async Task GetIngressGatewayCredentials_HybridConnectivityEndpointsPostLi // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/arcGroup/providers/Microsoft.ArcPlaceHolder/ProvisionedClusters/cluster0"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/arcGroup/providers/Microsoft.ArcPlaceHolder/ProvisionedClusters/cluster0"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); // invoke the operation long? expiresin = 10800L; - IngressGatewayAsset result = await endpointResource.GetIngressGatewayCredentialsAsync(expiresin: expiresin); + IngressGatewayAsset result = await hybridConnectivityEndpoint.GetIngressGatewayCredentialsAsync(expiresin: expiresin); Console.WriteLine($"Succeeded: {result}"); } @@ -200,12 +200,12 @@ public async Task GetManagedProxyDetails_HybridConnectivityEndpointsPostListMana // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/arcGroup/providers/Microsoft.Compute/virtualMachines/vm00006"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/arcGroup/providers/Microsoft.Compute/virtualMachines/vm00006"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); // invoke the operation ManagedProxyContent content = new ManagedProxyContent("127.0.0.1:65035") @@ -213,7 +213,7 @@ public async Task GetManagedProxyDetails_HybridConnectivityEndpointsPostListMana Hostname = "r.proxy.arc.com", ServiceName = HybridConnectivityServiceName.WAC, }; - ManagedProxyAsset result = await endpointResource.GetManagedProxyDetailsAsync(content); + ManagedProxyAsset result = await hybridConnectivityEndpoint.GetManagedProxyDetailsAsync(content); Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryResourceCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryCollection.cs similarity index 64% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryResourceCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryCollection.cs index 052005a08fec7..73e1ed6de3689 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryResourceCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryCollection.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Samples { - public partial class Sample_HybridConnectivityInventoryResourceCollection + public partial class Sample_HybridConnectivityInventoryCollection { [Test] [Ignore("Only validating compilation of examples")] @@ -27,22 +27,22 @@ public async Task GetAll_InventoryListBySolutionConfiguration() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this SolutionConfigurationResource created on azure - // for more information of creating SolutionConfigurationResource, please refer to the document of SolutionConfigurationResource + // this example assumes you already have this HybridConnectivitySolutionConfigurationResource created on azure + // for more information of creating HybridConnectivitySolutionConfigurationResource, please refer to the document of HybridConnectivitySolutionConfigurationResource string resourceUri = "ymuj"; string solutionConfiguration = "wsxt"; - ResourceIdentifier solutionConfigurationResourceId = SolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); - SolutionConfigurationResource solutionConfiguration0 = client.GetSolutionConfigurationResource(solutionConfigurationResourceId); + ResourceIdentifier hybridConnectivitySolutionConfigurationResourceId = HybridConnectivitySolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); + HybridConnectivitySolutionConfigurationResource hybridConnectivitySolutionConfiguration = client.GetHybridConnectivitySolutionConfigurationResource(hybridConnectivitySolutionConfigurationResourceId); // get the collection of this HybridConnectivityInventoryResource - HybridConnectivityInventoryResourceCollection collection = solutionConfiguration0.GetHybridConnectivityInventoryResources(); + HybridConnectivityInventoryCollection collection = hybridConnectivitySolutionConfiguration.GetHybridConnectivityInventories(); // invoke the operation and iterate over the result 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 - HybridConnectivityInventoryResourceData resourceData = item.Data; + HybridConnectivityInventoryData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -62,15 +62,15 @@ public async Task Get_InventoryGet() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this SolutionConfigurationResource created on azure - // for more information of creating SolutionConfigurationResource, please refer to the document of SolutionConfigurationResource + // this example assumes you already have this HybridConnectivitySolutionConfigurationResource created on azure + // for more information of creating HybridConnectivitySolutionConfigurationResource, please refer to the document of HybridConnectivitySolutionConfigurationResource string resourceUri = "ymuj"; string solutionConfiguration = "zarfsraogroxlaqjjnwixtn"; - ResourceIdentifier solutionConfigurationResourceId = SolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); - SolutionConfigurationResource solutionConfiguration0 = client.GetSolutionConfigurationResource(solutionConfigurationResourceId); + ResourceIdentifier hybridConnectivitySolutionConfigurationResourceId = HybridConnectivitySolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); + HybridConnectivitySolutionConfigurationResource hybridConnectivitySolutionConfiguration = client.GetHybridConnectivitySolutionConfigurationResource(hybridConnectivitySolutionConfigurationResourceId); // get the collection of this HybridConnectivityInventoryResource - HybridConnectivityInventoryResourceCollection collection = solutionConfiguration0.GetHybridConnectivityInventoryResources(); + HybridConnectivityInventoryCollection collection = hybridConnectivitySolutionConfiguration.GetHybridConnectivityInventories(); // invoke the operation string inventoryId = "xofprmcboosrbd"; @@ -78,7 +78,7 @@ public async Task Get_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 - HybridConnectivityInventoryResourceData resourceData = result.Data; + HybridConnectivityInventoryData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -95,15 +95,15 @@ public async Task Exists_InventoryGet() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this SolutionConfigurationResource created on azure - // for more information of creating SolutionConfigurationResource, please refer to the document of SolutionConfigurationResource + // this example assumes you already have this HybridConnectivitySolutionConfigurationResource created on azure + // for more information of creating HybridConnectivitySolutionConfigurationResource, please refer to the document of HybridConnectivitySolutionConfigurationResource string resourceUri = "ymuj"; string solutionConfiguration = "zarfsraogroxlaqjjnwixtn"; - ResourceIdentifier solutionConfigurationResourceId = SolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); - SolutionConfigurationResource solutionConfiguration0 = client.GetSolutionConfigurationResource(solutionConfigurationResourceId); + ResourceIdentifier hybridConnectivitySolutionConfigurationResourceId = HybridConnectivitySolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); + HybridConnectivitySolutionConfigurationResource hybridConnectivitySolutionConfiguration = client.GetHybridConnectivitySolutionConfigurationResource(hybridConnectivitySolutionConfigurationResourceId); // get the collection of this HybridConnectivityInventoryResource - HybridConnectivityInventoryResourceCollection collection = solutionConfiguration0.GetHybridConnectivityInventoryResources(); + HybridConnectivityInventoryCollection collection = hybridConnectivitySolutionConfiguration.GetHybridConnectivityInventories(); // invoke the operation string inventoryId = "xofprmcboosrbd"; @@ -124,15 +124,15 @@ public async Task GetIfExists_InventoryGet() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this SolutionConfigurationResource created on azure - // for more information of creating SolutionConfigurationResource, please refer to the document of SolutionConfigurationResource + // this example assumes you already have this HybridConnectivitySolutionConfigurationResource created on azure + // for more information of creating HybridConnectivitySolutionConfigurationResource, please refer to the document of HybridConnectivitySolutionConfigurationResource string resourceUri = "ymuj"; string solutionConfiguration = "zarfsraogroxlaqjjnwixtn"; - ResourceIdentifier solutionConfigurationResourceId = SolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); - SolutionConfigurationResource solutionConfiguration0 = client.GetSolutionConfigurationResource(solutionConfigurationResourceId); + ResourceIdentifier hybridConnectivitySolutionConfigurationResourceId = HybridConnectivitySolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); + HybridConnectivitySolutionConfigurationResource hybridConnectivitySolutionConfiguration = client.GetHybridConnectivitySolutionConfigurationResource(hybridConnectivitySolutionConfigurationResourceId); // get the collection of this HybridConnectivityInventoryResource - HybridConnectivityInventoryResourceCollection collection = solutionConfiguration0.GetHybridConnectivityInventoryResources(); + HybridConnectivityInventoryCollection collection = hybridConnectivitySolutionConfiguration.GetHybridConnectivityInventories(); // invoke the operation string inventoryId = "xofprmcboosrbd"; @@ -147,7 +147,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 - HybridConnectivityInventoryResourceData resourceData = result.Data; + HybridConnectivityInventoryData 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_HybridConnectivityInventoryResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryResource.cs index ba2d526e1d529..56128948655b9 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityInventoryResource.cs @@ -33,14 +33,14 @@ public async Task Get_InventoryGet() string solutionConfiguration = "zarfsraogroxlaqjjnwixtn"; string inventoryId = "xofprmcboosrbd"; ResourceIdentifier hybridConnectivityInventoryResourceId = HybridConnectivityInventoryResource.CreateResourceIdentifier(resourceUri, solutionConfiguration, inventoryId); - HybridConnectivityInventoryResource hybridConnectivityInventoryResource = client.GetHybridConnectivityInventoryResource(hybridConnectivityInventoryResourceId); + HybridConnectivityInventoryResource hybridConnectivityInventory = client.GetHybridConnectivityInventoryResource(hybridConnectivityInventoryResourceId); // invoke the operation - HybridConnectivityInventoryResource result = await hybridConnectivityInventoryResource.GetAsync(); + HybridConnectivityInventoryResource result = await hybridConnectivityInventory.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 - HybridConnectivityInventoryResourceData resourceData = result.Data; + HybridConnectivityInventoryData 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_HybridConnectivityPublicCloudConnectorCollection.cs similarity index 80% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_PublicCloudConnectorCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityPublicCloudConnectorCollection.cs index a6377c1c7e363..b90a72f83250e 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_PublicCloudConnectorCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityPublicCloudConnectorCollection.cs @@ -15,7 +15,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Samples { - public partial class Sample_PublicCloudConnectorCollection + public partial class Sample_HybridConnectivityPublicCloudConnectorCollection { [Test] [Ignore("Only validating compilation of examples")] @@ -36,15 +36,15 @@ public async Task GetAll_PublicCloudConnectorsListByResourceGroup() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this PublicCloudConnectorResource - PublicCloudConnectorCollection collection = resourceGroupResource.GetPublicCloudConnectors(); + // get the collection of this HybridConnectivityPublicCloudConnectorResource + HybridConnectivityPublicCloudConnectorCollection collection = resourceGroupResource.GetHybridConnectivityPublicCloudConnectors(); // invoke the operation and iterate over the result - await foreach (PublicCloudConnectorResource item in collection.GetAllAsync()) + await foreach (HybridConnectivityPublicCloudConnectorResource 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 - PublicCloudConnectorData resourceData = item.Data; + HybridConnectivityPublicCloudConnectorData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -71,16 +71,16 @@ public async Task Get_PublicCloudConnectorsGet() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this PublicCloudConnectorResource - PublicCloudConnectorCollection collection = resourceGroupResource.GetPublicCloudConnectors(); + // get the collection of this HybridConnectivityPublicCloudConnectorResource + HybridConnectivityPublicCloudConnectorCollection collection = resourceGroupResource.GetHybridConnectivityPublicCloudConnectors(); // invoke the operation string publicCloudConnector = "rzygvnpsnrdylwzdbsscjazvamyxmh"; - PublicCloudConnectorResource result = await collection.GetAsync(publicCloudConnector); + HybridConnectivityPublicCloudConnectorResource result = await collection.GetAsync(publicCloudConnector); // 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 - PublicCloudConnectorData resourceData = result.Data; + HybridConnectivityPublicCloudConnectorData 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_PublicCloudConnectorsGet() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this PublicCloudConnectorResource - PublicCloudConnectorCollection collection = resourceGroupResource.GetPublicCloudConnectors(); + // get the collection of this HybridConnectivityPublicCloudConnectorResource + HybridConnectivityPublicCloudConnectorCollection collection = resourceGroupResource.GetHybridConnectivityPublicCloudConnectors(); // invoke the operation string publicCloudConnector = "rzygvnpsnrdylwzdbsscjazvamyxmh"; @@ -133,13 +133,13 @@ public async Task GetIfExists_PublicCloudConnectorsGet() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this PublicCloudConnectorResource - PublicCloudConnectorCollection collection = resourceGroupResource.GetPublicCloudConnectors(); + // get the collection of this HybridConnectivityPublicCloudConnectorResource + HybridConnectivityPublicCloudConnectorCollection collection = resourceGroupResource.GetHybridConnectivityPublicCloudConnectors(); // invoke the operation string publicCloudConnector = "rzygvnpsnrdylwzdbsscjazvamyxmh"; - NullableResponse response = await collection.GetIfExistsAsync(publicCloudConnector); - PublicCloudConnectorResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(publicCloudConnector); + HybridConnectivityPublicCloudConnectorResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -149,7 +149,7 @@ public async Task GetIfExists_PublicCloudConnectorsGet() { // 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 - PublicCloudConnectorData resourceData = result.Data; + HybridConnectivityPublicCloudConnectorData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -174,12 +174,12 @@ public async Task CreateOrUpdate_PublicCloudConnectorsCreateOrUpdate() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this PublicCloudConnectorResource - PublicCloudConnectorCollection collection = resourceGroupResource.GetPublicCloudConnectors(); + // get the collection of this HybridConnectivityPublicCloudConnectorResource + HybridConnectivityPublicCloudConnectorCollection collection = resourceGroupResource.GetHybridConnectivityPublicCloudConnectors(); // invoke the operation string publicCloudConnector = "advjwoakdusalamomg"; - PublicCloudConnectorData data = new PublicCloudConnectorData(new AzureLocation("jpiglusfxynfcewcjwvvnn")) + HybridConnectivityPublicCloudConnectorData data = new HybridConnectivityPublicCloudConnectorData(new AzureLocation("jpiglusfxynfcewcjwvvnn")) { Properties = new PublicCloudConnectorProperties(new AwsCloudProfile("snbnuxckevyqpm") { @@ -193,12 +193,12 @@ public async Task CreateOrUpdate_PublicCloudConnectorsCreateOrUpdate() { }, }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, publicCloudConnector, data); - PublicCloudConnectorResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, publicCloudConnector, data); + HybridConnectivityPublicCloudConnectorResource result = lro.Value; // 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 - PublicCloudConnectorData resourceData = result.Data; + HybridConnectivityPublicCloudConnectorData 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_PublicCloudConnectorResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityPublicCloudConnectorResource.cs similarity index 64% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_PublicCloudConnectorResource.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityPublicCloudConnectorResource.cs index 57d788522afe3..b0170056845e1 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_PublicCloudConnectorResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityPublicCloudConnectorResource.cs @@ -15,11 +15,11 @@ namespace Azure.ResourceManager.HybridConnectivity.Samples { - public partial class Sample_PublicCloudConnectorResource + public partial class Sample_HybridConnectivityPublicCloudConnectorResource { [Test] [Ignore("Only validating compilation of examples")] - public async Task GetPublicCloudConnectors_PublicCloudConnectorsListBySubscription() + public async Task GetHybridConnectivityPublicCloudConnectors_PublicCloudConnectorsListBySubscription() { // Generated from example definition: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/PublicCloud/stable/2024-12-01/examples/PublicCloudConnectors_ListBySubscription.json // this example is just showing the usage of "PublicCloudConnectors_ListBySubscription" operation, for the dependent resources, they will have to be created separately. @@ -36,11 +36,11 @@ public async Task GetPublicCloudConnectors_PublicCloudConnectorsListBySubscripti SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); // invoke the operation and iterate over the result - await foreach (PublicCloudConnectorResource item in subscriptionResource.GetPublicCloudConnectorsAsync()) + await foreach (HybridConnectivityPublicCloudConnectorResource item in subscriptionResource.GetHybridConnectivityPublicCloudConnectorsAsync()) { // 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 - PublicCloudConnectorData resourceData = item.Data; + HybridConnectivityPublicCloudConnectorData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -60,20 +60,20 @@ public async Task Get_PublicCloudConnectorsGet() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this PublicCloudConnectorResource created on azure - // for more information of creating PublicCloudConnectorResource, please refer to the document of PublicCloudConnectorResource + // this example assumes you already have this HybridConnectivityPublicCloudConnectorResource created on azure + // for more information of creating HybridConnectivityPublicCloudConnectorResource, please refer to the document of HybridConnectivityPublicCloudConnectorResource string subscriptionId = "5ACC4579-DB34-4C2F-8F8C-25061168F342"; string resourceGroupName = "rgpublicCloud"; string publicCloudConnector = "rzygvnpsnrdylwzdbsscjazvamyxmh"; - ResourceIdentifier publicCloudConnectorResourceId = PublicCloudConnectorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, publicCloudConnector); - PublicCloudConnectorResource publicCloudConnector0 = client.GetPublicCloudConnectorResource(publicCloudConnectorResourceId); + ResourceIdentifier hybridConnectivityPublicCloudConnectorResourceId = HybridConnectivityPublicCloudConnectorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, publicCloudConnector); + HybridConnectivityPublicCloudConnectorResource hybridConnectivityPublicCloudConnector = client.GetHybridConnectivityPublicCloudConnectorResource(hybridConnectivityPublicCloudConnectorResourceId); // invoke the operation - PublicCloudConnectorResource result = await publicCloudConnector0.GetAsync(); + HybridConnectivityPublicCloudConnectorResource result = await hybridConnectivityPublicCloudConnector.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 - PublicCloudConnectorData resourceData = result.Data; + HybridConnectivityPublicCloudConnectorData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -90,16 +90,16 @@ public async Task Update_PublicCloudConnectorsUpdate() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this PublicCloudConnectorResource created on azure - // for more information of creating PublicCloudConnectorResource, please refer to the document of PublicCloudConnectorResource + // this example assumes you already have this HybridConnectivityPublicCloudConnectorResource created on azure + // for more information of creating HybridConnectivityPublicCloudConnectorResource, please refer to the document of HybridConnectivityPublicCloudConnectorResource string subscriptionId = "5ACC4579-DB34-4C2F-8F8C-25061168F342"; string resourceGroupName = "rgpublicCloud"; string publicCloudConnector = "svtirlbyqpepbzyessjenlueeznhg"; - ResourceIdentifier publicCloudConnectorResourceId = PublicCloudConnectorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, publicCloudConnector); - PublicCloudConnectorResource publicCloudConnector0 = client.GetPublicCloudConnectorResource(publicCloudConnectorResourceId); + ResourceIdentifier hybridConnectivityPublicCloudConnectorResourceId = HybridConnectivityPublicCloudConnectorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, publicCloudConnector); + HybridConnectivityPublicCloudConnectorResource hybridConnectivityPublicCloudConnector = client.GetHybridConnectivityPublicCloudConnectorResource(hybridConnectivityPublicCloudConnectorResourceId); // invoke the operation - PublicCloudConnectorPatch patch = new PublicCloudConnectorPatch() + HybridConnectivityPublicCloudConnectorPatch patch = new HybridConnectivityPublicCloudConnectorPatch() { AwsCloudExcludedAccounts = { @@ -109,11 +109,11 @@ public async Task Update_PublicCloudConnectorsUpdate() { }, }; - PublicCloudConnectorResource result = await publicCloudConnector0.UpdateAsync(patch); + HybridConnectivityPublicCloudConnectorResource result = await hybridConnectivityPublicCloudConnector.UpdateAsync(patch); // 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 - PublicCloudConnectorData resourceData = result.Data; + HybridConnectivityPublicCloudConnectorData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -130,16 +130,16 @@ public async Task Delete_PublicCloudConnectorsDelete() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this PublicCloudConnectorResource created on azure - // for more information of creating PublicCloudConnectorResource, please refer to the document of PublicCloudConnectorResource + // this example assumes you already have this HybridConnectivityPublicCloudConnectorResource created on azure + // for more information of creating HybridConnectivityPublicCloudConnectorResource, please refer to the document of HybridConnectivityPublicCloudConnectorResource string subscriptionId = "5ACC4579-DB34-4C2F-8F8C-25061168F342"; string resourceGroupName = "rgpublicCloud"; string publicCloudConnector = "skcfyjvflkhibdywjay"; - ResourceIdentifier publicCloudConnectorResourceId = PublicCloudConnectorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, publicCloudConnector); - PublicCloudConnectorResource publicCloudConnector0 = client.GetPublicCloudConnectorResource(publicCloudConnectorResourceId); + ResourceIdentifier hybridConnectivityPublicCloudConnectorResourceId = HybridConnectivityPublicCloudConnectorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, publicCloudConnector); + HybridConnectivityPublicCloudConnectorResource hybridConnectivityPublicCloudConnector = client.GetHybridConnectivityPublicCloudConnectorResource(hybridConnectivityPublicCloudConnectorResourceId); // invoke the operation - await publicCloudConnector0.DeleteAsync(WaitUntil.Completed); + await hybridConnectivityPublicCloudConnector.DeleteAsync(WaitUntil.Completed); Console.WriteLine("Succeeded"); } @@ -156,17 +156,17 @@ public async Task TestPermissions_PublicCloudConnectorsTestPermissions() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this PublicCloudConnectorResource created on azure - // for more information of creating PublicCloudConnectorResource, please refer to the document of PublicCloudConnectorResource + // this example assumes you already have this HybridConnectivityPublicCloudConnectorResource created on azure + // for more information of creating HybridConnectivityPublicCloudConnectorResource, please refer to the document of HybridConnectivityPublicCloudConnectorResource string subscriptionId = "5ACC4579-DB34-4C2F-8F8C-25061168F342"; string resourceGroupName = "rgpublicCloud"; string publicCloudConnector = "rzygvnpsnrdylwzdbsscjazvamyxmh"; - ResourceIdentifier publicCloudConnectorResourceId = PublicCloudConnectorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, publicCloudConnector); - PublicCloudConnectorResource publicCloudConnector0 = client.GetPublicCloudConnectorResource(publicCloudConnectorResourceId); + ResourceIdentifier hybridConnectivityPublicCloudConnectorResourceId = HybridConnectivityPublicCloudConnectorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, publicCloudConnector); + HybridConnectivityPublicCloudConnectorResource hybridConnectivityPublicCloudConnector = client.GetHybridConnectivityPublicCloudConnectorResource(hybridConnectivityPublicCloudConnectorResourceId); // invoke the operation - ArmOperation lro = await publicCloudConnector0.TestPermissionsAsync(WaitUntil.Completed); - OperationStatusResult result = lro.Value; + ArmOperation lro = await hybridConnectivityPublicCloudConnector.TestPermissionsAsync(WaitUntil.Completed); + HybridConnectivityOperationStatusResult result = lro.Value; Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_ServiceConfigurationResourceCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityServiceConfigurationCollection.cs similarity index 52% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_ServiceConfigurationResourceCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityServiceConfigurationCollection.cs index 6b89abbd4c539..c962b3b68daeb 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_ServiceConfigurationResourceCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityServiceConfigurationCollection.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Samples { - public partial class Sample_ServiceConfigurationResourceCollection + public partial class Sample_HybridConnectivityServiceConfigurationCollection { [Test] [Ignore("Only validating compilation of examples")] @@ -28,22 +28,22 @@ public async Task GetAll_GetClustersExample() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); - // get the collection of this ServiceConfigurationResource - ServiceConfigurationResourceCollection collection = endpointResource.GetServiceConfigurationResources(); + // get the collection of this HybridConnectivityServiceConfigurationResource + HybridConnectivityServiceConfigurationCollection collection = hybridConnectivityEndpoint.GetHybridConnectivityServiceConfigurations(); // invoke the operation and iterate over the result - await foreach (ServiceConfigurationResource item in collection.GetAllAsync()) + await foreach (HybridConnectivityServiceConfigurationResource 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 - ServiceConfigurationResourceData resourceData = item.Data; + HybridConnectivityServiceConfigurationData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -63,23 +63,23 @@ public async Task Get_HybridConnectivityEndpointsServiceconfigurationsGetSSH() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); - // get the collection of this ServiceConfigurationResource - ServiceConfigurationResourceCollection collection = endpointResource.GetServiceConfigurationResources(); + // get the collection of this HybridConnectivityServiceConfigurationResource + HybridConnectivityServiceConfigurationCollection collection = hybridConnectivityEndpoint.GetHybridConnectivityServiceConfigurations(); // invoke the operation string serviceConfigurationName = "SSH"; - ServiceConfigurationResource result = await collection.GetAsync(serviceConfigurationName); + HybridConnectivityServiceConfigurationResource result = await collection.GetAsync(serviceConfigurationName); // 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 - ServiceConfigurationResourceData resourceData = result.Data; + HybridConnectivityServiceConfigurationData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -96,15 +96,15 @@ public async Task Exists_HybridConnectivityEndpointsServiceconfigurationsGetSSH( // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); - // get the collection of this ServiceConfigurationResource - ServiceConfigurationResourceCollection collection = endpointResource.GetServiceConfigurationResources(); + // get the collection of this HybridConnectivityServiceConfigurationResource + HybridConnectivityServiceConfigurationCollection collection = hybridConnectivityEndpoint.GetHybridConnectivityServiceConfigurations(); // invoke the operation string serviceConfigurationName = "SSH"; @@ -125,20 +125,20 @@ public async Task GetIfExists_HybridConnectivityEndpointsServiceconfigurationsGe // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); - // get the collection of this ServiceConfigurationResource - ServiceConfigurationResourceCollection collection = endpointResource.GetServiceConfigurationResources(); + // get the collection of this HybridConnectivityServiceConfigurationResource + HybridConnectivityServiceConfigurationCollection collection = hybridConnectivityEndpoint.GetHybridConnectivityServiceConfigurations(); // invoke the operation string serviceConfigurationName = "SSH"; - NullableResponse response = await collection.GetIfExistsAsync(serviceConfigurationName); - ServiceConfigurationResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(serviceConfigurationName); + HybridConnectivityServiceConfigurationResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -148,7 +148,7 @@ public async Task GetIfExists_HybridConnectivityEndpointsServiceconfigurationsGe { // 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 - ServiceConfigurationResourceData resourceData = result.Data; + HybridConnectivityServiceConfigurationData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -166,23 +166,23 @@ public async Task Get_HybridConnectivityEndpointsServiceconfigurationsGetWAC() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); - // get the collection of this ServiceConfigurationResource - ServiceConfigurationResourceCollection collection = endpointResource.GetServiceConfigurationResources(); + // get the collection of this HybridConnectivityServiceConfigurationResource + HybridConnectivityServiceConfigurationCollection collection = hybridConnectivityEndpoint.GetHybridConnectivityServiceConfigurations(); // invoke the operation string serviceConfigurationName = "WAC"; - ServiceConfigurationResource result = await collection.GetAsync(serviceConfigurationName); + HybridConnectivityServiceConfigurationResource result = await collection.GetAsync(serviceConfigurationName); // 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 - ServiceConfigurationResourceData resourceData = result.Data; + HybridConnectivityServiceConfigurationData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -199,15 +199,15 @@ public async Task Exists_HybridConnectivityEndpointsServiceconfigurationsGetWAC( // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); - // get the collection of this ServiceConfigurationResource - ServiceConfigurationResourceCollection collection = endpointResource.GetServiceConfigurationResources(); + // get the collection of this HybridConnectivityServiceConfigurationResource + HybridConnectivityServiceConfigurationCollection collection = hybridConnectivityEndpoint.GetHybridConnectivityServiceConfigurations(); // invoke the operation string serviceConfigurationName = "WAC"; @@ -228,20 +228,20 @@ public async Task GetIfExists_HybridConnectivityEndpointsServiceconfigurationsGe // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); - // get the collection of this ServiceConfigurationResource - ServiceConfigurationResourceCollection collection = endpointResource.GetServiceConfigurationResources(); + // get the collection of this HybridConnectivityServiceConfigurationResource + HybridConnectivityServiceConfigurationCollection collection = hybridConnectivityEndpoint.GetHybridConnectivityServiceConfigurations(); // invoke the operation string serviceConfigurationName = "WAC"; - NullableResponse response = await collection.GetIfExistsAsync(serviceConfigurationName); - ServiceConfigurationResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(serviceConfigurationName); + HybridConnectivityServiceConfigurationResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -251,7 +251,7 @@ public async Task GetIfExists_HybridConnectivityEndpointsServiceconfigurationsGe { // 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 - ServiceConfigurationResourceData resourceData = result.Data; + HybridConnectivityServiceConfigurationData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -269,29 +269,29 @@ public async Task CreateOrUpdate_ServiceConfigurationsPutSSH() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); - // get the collection of this ServiceConfigurationResource - ServiceConfigurationResourceCollection collection = endpointResource.GetServiceConfigurationResources(); + // get the collection of this HybridConnectivityServiceConfigurationResource + HybridConnectivityServiceConfigurationCollection collection = hybridConnectivityEndpoint.GetHybridConnectivityServiceConfigurations(); // invoke the operation string serviceConfigurationName = "SSH"; - ServiceConfigurationResourceData data = new ServiceConfigurationResourceData() + HybridConnectivityServiceConfigurationData data = new HybridConnectivityServiceConfigurationData() { ServiceName = HybridConnectivityServiceName.SSH, Port = 22L, }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, serviceConfigurationName, data); - ServiceConfigurationResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, serviceConfigurationName, data); + HybridConnectivityServiceConfigurationResource result = lro.Value; // 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 - ServiceConfigurationResourceData resourceData = result.Data; + HybridConnectivityServiceConfigurationData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -308,29 +308,29 @@ public async Task CreateOrUpdate_ServiceConfigurationsPutWAC() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EndpointResource created on azure - // for more information of creating EndpointResource, please refer to the document of EndpointResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; + // this example assumes you already have this HybridConnectivityEndpointResource created on azure + // for more information of creating HybridConnectivityEndpointResource, please refer to the document of HybridConnectivityEndpointResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; string endpointName = "default"; - ResourceIdentifier endpointResourceId = EndpointResource.CreateResourceIdentifier(scope, endpointName); - EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); + ResourceIdentifier hybridConnectivityEndpointResourceId = HybridConnectivityEndpointResource.CreateResourceIdentifier(resourceUri, endpointName); + HybridConnectivityEndpointResource hybridConnectivityEndpoint = client.GetHybridConnectivityEndpointResource(hybridConnectivityEndpointResourceId); - // get the collection of this ServiceConfigurationResource - ServiceConfigurationResourceCollection collection = endpointResource.GetServiceConfigurationResources(); + // get the collection of this HybridConnectivityServiceConfigurationResource + HybridConnectivityServiceConfigurationCollection collection = hybridConnectivityEndpoint.GetHybridConnectivityServiceConfigurations(); // invoke the operation string serviceConfigurationName = "WAC"; - ServiceConfigurationResourceData data = new ServiceConfigurationResourceData() + HybridConnectivityServiceConfigurationData data = new HybridConnectivityServiceConfigurationData() { ServiceName = HybridConnectivityServiceName.WAC, Port = 6516L, }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, serviceConfigurationName, data); - ServiceConfigurationResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, serviceConfigurationName, data); + HybridConnectivityServiceConfigurationResource result = lro.Value; // 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 - ServiceConfigurationResourceData resourceData = result.Data; + HybridConnectivityServiceConfigurationData 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_ServiceConfigurationResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityServiceConfigurationResource.cs similarity index 54% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_ServiceConfigurationResource.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityServiceConfigurationResource.cs index d6ed0eb5b9e96..9181ebfe65b49 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_ServiceConfigurationResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivityServiceConfigurationResource.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Samples { - public partial class Sample_ServiceConfigurationResource + public partial class Sample_HybridConnectivityServiceConfigurationResource { [Test] [Ignore("Only validating compilation of examples")] @@ -28,20 +28,20 @@ public async Task Get_HybridConnectivityEndpointsServiceconfigurationsGetSSH() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ServiceConfigurationResource created on azure - // for more information of creating ServiceConfigurationResource, please refer to the document of ServiceConfigurationResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; + // this example assumes you already have this HybridConnectivityServiceConfigurationResource created on azure + // for more information of creating HybridConnectivityServiceConfigurationResource, please refer to the document of HybridConnectivityServiceConfigurationResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; string endpointName = "default"; string serviceConfigurationName = "SSH"; - ResourceIdentifier serviceConfigurationResourceId = ServiceConfigurationResource.CreateResourceIdentifier(scope, endpointName, serviceConfigurationName); - ServiceConfigurationResource serviceConfigurationResource = client.GetServiceConfigurationResource(serviceConfigurationResourceId); + ResourceIdentifier hybridConnectivityServiceConfigurationResourceId = HybridConnectivityServiceConfigurationResource.CreateResourceIdentifier(resourceUri, endpointName, serviceConfigurationName); + HybridConnectivityServiceConfigurationResource hybridConnectivityServiceConfiguration = client.GetHybridConnectivityServiceConfigurationResource(hybridConnectivityServiceConfigurationResourceId); // invoke the operation - ServiceConfigurationResource result = await serviceConfigurationResource.GetAsync(); + HybridConnectivityServiceConfigurationResource result = await hybridConnectivityServiceConfiguration.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 - ServiceConfigurationResourceData resourceData = result.Data; + HybridConnectivityServiceConfigurationData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -58,20 +58,20 @@ public async Task Get_HybridConnectivityEndpointsServiceconfigurationsGetWAC() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ServiceConfigurationResource created on azure - // for more information of creating ServiceConfigurationResource, please refer to the document of ServiceConfigurationResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; + // this example assumes you already have this HybridConnectivityServiceConfigurationResource created on azure + // for more information of creating HybridConnectivityServiceConfigurationResource, please refer to the document of HybridConnectivityServiceConfigurationResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; string endpointName = "default"; string serviceConfigurationName = "WAC"; - ResourceIdentifier serviceConfigurationResourceId = ServiceConfigurationResource.CreateResourceIdentifier(scope, endpointName, serviceConfigurationName); - ServiceConfigurationResource serviceConfigurationResource = client.GetServiceConfigurationResource(serviceConfigurationResourceId); + ResourceIdentifier hybridConnectivityServiceConfigurationResourceId = HybridConnectivityServiceConfigurationResource.CreateResourceIdentifier(resourceUri, endpointName, serviceConfigurationName); + HybridConnectivityServiceConfigurationResource hybridConnectivityServiceConfiguration = client.GetHybridConnectivityServiceConfigurationResource(hybridConnectivityServiceConfigurationResourceId); // invoke the operation - ServiceConfigurationResource result = await serviceConfigurationResource.GetAsync(); + HybridConnectivityServiceConfigurationResource result = await hybridConnectivityServiceConfiguration.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 - ServiceConfigurationResourceData resourceData = result.Data; + HybridConnectivityServiceConfigurationData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -88,24 +88,24 @@ public async Task Update_ServiceConfigurationsPatchSSH() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ServiceConfigurationResource created on azure - // for more information of creating ServiceConfigurationResource, please refer to the document of ServiceConfigurationResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; + // this example assumes you already have this HybridConnectivityServiceConfigurationResource created on azure + // for more information of creating HybridConnectivityServiceConfigurationResource, please refer to the document of HybridConnectivityServiceConfigurationResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; string endpointName = "default"; string serviceConfigurationName = "SSH"; - ResourceIdentifier serviceConfigurationResourceId = ServiceConfigurationResource.CreateResourceIdentifier(scope, endpointName, serviceConfigurationName); - ServiceConfigurationResource serviceConfigurationResource = client.GetServiceConfigurationResource(serviceConfigurationResourceId); + ResourceIdentifier hybridConnectivityServiceConfigurationResourceId = HybridConnectivityServiceConfigurationResource.CreateResourceIdentifier(resourceUri, endpointName, serviceConfigurationName); + HybridConnectivityServiceConfigurationResource hybridConnectivityServiceConfiguration = client.GetHybridConnectivityServiceConfigurationResource(hybridConnectivityServiceConfigurationResourceId); // invoke the operation - ServiceConfigurationResourcePatch patch = new ServiceConfigurationResourcePatch() + HybridConnectivityServiceConfigurationPatch patch = new HybridConnectivityServiceConfigurationPatch() { Port = 22L, }; - ServiceConfigurationResource result = await serviceConfigurationResource.UpdateAsync(patch); + HybridConnectivityServiceConfigurationResource result = await hybridConnectivityServiceConfiguration.UpdateAsync(patch); // 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 - ServiceConfigurationResourceData resourceData = result.Data; + HybridConnectivityServiceConfigurationData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -122,16 +122,16 @@ public async Task Delete_ServiceConfigurationsDeleteSSH() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ServiceConfigurationResource created on azure - // for more information of creating ServiceConfigurationResource, please refer to the document of ServiceConfigurationResource - string scope = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; + // this example assumes you already have this HybridConnectivityServiceConfigurationResource created on azure + // for more information of creating HybridConnectivityServiceConfigurationResource, please refer to the document of HybridConnectivityServiceConfigurationResource + string resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default"; string endpointName = "default"; string serviceConfigurationName = "SSH"; - ResourceIdentifier serviceConfigurationResourceId = ServiceConfigurationResource.CreateResourceIdentifier(scope, endpointName, serviceConfigurationName); - ServiceConfigurationResource serviceConfigurationResource = client.GetServiceConfigurationResource(serviceConfigurationResourceId); + ResourceIdentifier hybridConnectivityServiceConfigurationResourceId = HybridConnectivityServiceConfigurationResource.CreateResourceIdentifier(resourceUri, endpointName, serviceConfigurationName); + HybridConnectivityServiceConfigurationResource hybridConnectivityServiceConfiguration = client.GetHybridConnectivityServiceConfigurationResource(hybridConnectivityServiceConfigurationResourceId); // invoke the operation - await serviceConfigurationResource.DeleteAsync(WaitUntil.Completed); + await hybridConnectivityServiceConfiguration.DeleteAsync(WaitUntil.Completed); Console.WriteLine("Succeeded"); } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SolutionConfigurationCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivitySolutionConfigurationCollection.cs similarity index 78% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SolutionConfigurationCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivitySolutionConfigurationCollection.cs index bbec2dadc3d13..acdc3bdd8e93b 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SolutionConfigurationCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivitySolutionConfigurationCollection.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Samples { - public partial class Sample_SolutionConfigurationCollection + public partial class Sample_HybridConnectivitySolutionConfigurationCollection { [Test] [Ignore("Only validating compilation of examples")] @@ -31,17 +31,17 @@ public async Task GetAll_SolutionConfigurationsList() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this SolutionConfigurationResource + // get the collection of this HybridConnectivitySolutionConfigurationResource string resourceUri = "ymuj"; ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); - SolutionConfigurationCollection collection = client.GetSolutionConfigurations(scopeId); + HybridConnectivitySolutionConfigurationCollection collection = client.GetHybridConnectivitySolutionConfigurations(scopeId); // invoke the operation and iterate over the result - await foreach (SolutionConfigurationResource item in collection.GetAllAsync()) + await foreach (HybridConnectivitySolutionConfigurationResource 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 - SolutionConfigurationData resourceData = item.Data; + HybridConnectivitySolutionConfigurationData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -64,18 +64,18 @@ public async Task Get_SolutionConfigurationsGet() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this SolutionConfigurationResource + // get the collection of this HybridConnectivitySolutionConfigurationResource string resourceUri = "ymuj"; ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); - SolutionConfigurationCollection collection = client.GetSolutionConfigurations(scopeId); + HybridConnectivitySolutionConfigurationCollection collection = client.GetHybridConnectivitySolutionConfigurations(scopeId); // invoke the operation string solutionConfiguration = "tks"; - SolutionConfigurationResource result = await collection.GetAsync(solutionConfiguration); + HybridConnectivitySolutionConfigurationResource result = await collection.GetAsync(solutionConfiguration); // 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 - SolutionConfigurationData resourceData = result.Data; + HybridConnectivitySolutionConfigurationData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -95,10 +95,10 @@ public async Task Exists_SolutionConfigurationsGet() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this SolutionConfigurationResource + // get the collection of this HybridConnectivitySolutionConfigurationResource string resourceUri = "ymuj"; ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); - SolutionConfigurationCollection collection = client.GetSolutionConfigurations(scopeId); + HybridConnectivitySolutionConfigurationCollection collection = client.GetHybridConnectivitySolutionConfigurations(scopeId); // invoke the operation string solutionConfiguration = "tks"; @@ -122,15 +122,15 @@ public async Task GetIfExists_SolutionConfigurationsGet() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this SolutionConfigurationResource + // get the collection of this HybridConnectivitySolutionConfigurationResource string resourceUri = "ymuj"; ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); - SolutionConfigurationCollection collection = client.GetSolutionConfigurations(scopeId); + HybridConnectivitySolutionConfigurationCollection collection = client.GetHybridConnectivitySolutionConfigurations(scopeId); // invoke the operation string solutionConfiguration = "tks"; - NullableResponse response = await collection.GetIfExistsAsync(solutionConfiguration); - SolutionConfigurationResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(solutionConfiguration); + HybridConnectivitySolutionConfigurationResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -140,7 +140,7 @@ public async Task GetIfExists_SolutionConfigurationsGet() { // 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 - SolutionConfigurationData resourceData = result.Data; + HybridConnectivitySolutionConfigurationData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -161,14 +161,14 @@ public async Task CreateOrUpdate_SolutionConfigurationsCreateOrUpdate() // this example assumes you already have this ArmResource created on azure // for more information of creating ArmResource, please refer to the document of ArmResource - // get the collection of this SolutionConfigurationResource + // get the collection of this HybridConnectivitySolutionConfigurationResource string resourceUri = "ymuj"; ResourceIdentifier scopeId = new ResourceIdentifier(string.Format("/{0}", resourceUri)); - SolutionConfigurationCollection collection = client.GetSolutionConfigurations(scopeId); + HybridConnectivitySolutionConfigurationCollection collection = client.GetHybridConnectivitySolutionConfigurations(scopeId); // invoke the operation string solutionConfiguration = "keebwujt"; - SolutionConfigurationData data = new SolutionConfigurationData() + HybridConnectivitySolutionConfigurationData data = new HybridConnectivitySolutionConfigurationData() { Properties = new SolutionConfigurationProperties("nmtqllkyohwtsthxaimsye") { @@ -177,12 +177,12 @@ public async Task CreateOrUpdate_SolutionConfigurationsCreateOrUpdate() }, }, }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, solutionConfiguration, data); - SolutionConfigurationResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, solutionConfiguration, data); + HybridConnectivitySolutionConfigurationResource result = lro.Value; // 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 - SolutionConfigurationData resourceData = result.Data; + HybridConnectivitySolutionConfigurationData 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_SolutionConfigurationResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivitySolutionConfigurationResource.cs similarity index 58% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SolutionConfigurationResource.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivitySolutionConfigurationResource.cs index 76d9eaa5eb6e7..801c9c51abf6a 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SolutionConfigurationResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivitySolutionConfigurationResource.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Samples { - public partial class Sample_SolutionConfigurationResource + public partial class Sample_HybridConnectivitySolutionConfigurationResource { [Test] [Ignore("Only validating compilation of examples")] @@ -28,19 +28,19 @@ public async Task Get_SolutionConfigurationsGet() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this SolutionConfigurationResource created on azure - // for more information of creating SolutionConfigurationResource, please refer to the document of SolutionConfigurationResource + // this example assumes you already have this HybridConnectivitySolutionConfigurationResource created on azure + // for more information of creating HybridConnectivitySolutionConfigurationResource, please refer to the document of HybridConnectivitySolutionConfigurationResource string resourceUri = "ymuj"; string solutionConfiguration = "tks"; - ResourceIdentifier solutionConfigurationResourceId = SolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); - SolutionConfigurationResource solutionConfiguration0 = client.GetSolutionConfigurationResource(solutionConfigurationResourceId); + ResourceIdentifier hybridConnectivitySolutionConfigurationResourceId = HybridConnectivitySolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); + HybridConnectivitySolutionConfigurationResource hybridConnectivitySolutionConfiguration = client.GetHybridConnectivitySolutionConfigurationResource(hybridConnectivitySolutionConfigurationResourceId); // invoke the operation - SolutionConfigurationResource result = await solutionConfiguration0.GetAsync(); + HybridConnectivitySolutionConfigurationResource result = await hybridConnectivitySolutionConfiguration.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 - SolutionConfigurationData resourceData = result.Data; + HybridConnectivitySolutionConfigurationData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -57,15 +57,15 @@ public async Task Update_SolutionConfigurationsUpdate() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this SolutionConfigurationResource created on azure - // for more information of creating SolutionConfigurationResource, please refer to the document of SolutionConfigurationResource + // this example assumes you already have this HybridConnectivitySolutionConfigurationResource created on azure + // for more information of creating HybridConnectivitySolutionConfigurationResource, please refer to the document of HybridConnectivitySolutionConfigurationResource string resourceUri = "ymuj"; string solutionConfiguration = "dxt"; - ResourceIdentifier solutionConfigurationResourceId = SolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); - SolutionConfigurationResource solutionConfiguration0 = client.GetSolutionConfigurationResource(solutionConfigurationResourceId); + ResourceIdentifier hybridConnectivitySolutionConfigurationResourceId = HybridConnectivitySolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); + HybridConnectivitySolutionConfigurationResource hybridConnectivitySolutionConfiguration = client.GetHybridConnectivitySolutionConfigurationResource(hybridConnectivitySolutionConfigurationResourceId); // invoke the operation - SolutionConfigurationPatch patch = new SolutionConfigurationPatch() + HybridConnectivitySolutionConfigurationPatch patch = new HybridConnectivitySolutionConfigurationPatch() { Properties = new SolutionConfigurationPropertiesUpdate() { @@ -75,11 +75,11 @@ public async Task Update_SolutionConfigurationsUpdate() }, }, }; - SolutionConfigurationResource result = await solutionConfiguration0.UpdateAsync(patch); + HybridConnectivitySolutionConfigurationResource result = await hybridConnectivitySolutionConfiguration.UpdateAsync(patch); // 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 - SolutionConfigurationData resourceData = result.Data; + HybridConnectivitySolutionConfigurationData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -96,15 +96,15 @@ public async Task Delete_SolutionConfigurationsDelete() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this SolutionConfigurationResource created on azure - // for more information of creating SolutionConfigurationResource, please refer to the document of SolutionConfigurationResource + // this example assumes you already have this HybridConnectivitySolutionConfigurationResource created on azure + // for more information of creating HybridConnectivitySolutionConfigurationResource, please refer to the document of HybridConnectivitySolutionConfigurationResource string resourceUri = "ymuj"; string solutionConfiguration = "stu"; - ResourceIdentifier solutionConfigurationResourceId = SolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); - SolutionConfigurationResource solutionConfiguration0 = client.GetSolutionConfigurationResource(solutionConfigurationResourceId); + ResourceIdentifier hybridConnectivitySolutionConfigurationResourceId = HybridConnectivitySolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); + HybridConnectivitySolutionConfigurationResource hybridConnectivitySolutionConfiguration = client.GetHybridConnectivitySolutionConfigurationResource(hybridConnectivitySolutionConfigurationResourceId); // invoke the operation - await solutionConfiguration0.DeleteAsync(WaitUntil.Completed); + await hybridConnectivitySolutionConfiguration.DeleteAsync(WaitUntil.Completed); Console.WriteLine("Succeeded"); } @@ -121,16 +121,16 @@ public async Task SyncNow_SolutionConfigurationsSyncNow() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this SolutionConfigurationResource created on azure - // for more information of creating SolutionConfigurationResource, please refer to the document of SolutionConfigurationResource + // this example assumes you already have this HybridConnectivitySolutionConfigurationResource created on azure + // for more information of creating HybridConnectivitySolutionConfigurationResource, please refer to the document of HybridConnectivitySolutionConfigurationResource string resourceUri = "ymuj"; string solutionConfiguration = "tks"; - ResourceIdentifier solutionConfigurationResourceId = SolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); - SolutionConfigurationResource solutionConfiguration0 = client.GetSolutionConfigurationResource(solutionConfigurationResourceId); + ResourceIdentifier hybridConnectivitySolutionConfigurationResourceId = HybridConnectivitySolutionConfigurationResource.CreateResourceIdentifier(resourceUri, solutionConfiguration); + HybridConnectivitySolutionConfigurationResource hybridConnectivitySolutionConfiguration = client.GetHybridConnectivitySolutionConfigurationResource(hybridConnectivitySolutionConfigurationResourceId); // invoke the operation - ArmOperation lro = await solutionConfiguration0.SyncNowAsync(WaitUntil.Completed); - OperationStatusResult result = lro.Value; + ArmOperation lro = await hybridConnectivitySolutionConfiguration.SyncNowAsync(WaitUntil.Completed); + HybridConnectivityOperationStatusResult result = lro.Value; Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SolutionTypeResourceCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivitySolutionTypeCollection.cs similarity index 83% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SolutionTypeResourceCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivitySolutionTypeCollection.cs index 51116b68f9d0e..26c01196484f9 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SolutionTypeResourceCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivitySolutionTypeCollection.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Samples { - public partial class Sample_SolutionTypeResourceCollection + public partial class Sample_HybridConnectivitySolutionTypeCollection { [Test] [Ignore("Only validating compilation of examples")] @@ -35,15 +35,15 @@ public async Task GetAll_SolutionTypesListByResourceGroup() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this SolutionTypeResource - SolutionTypeResourceCollection collection = resourceGroupResource.GetSolutionTypeResources(); + // get the collection of this HybridConnectivitySolutionTypeResource + HybridConnectivitySolutionTypeCollection collection = resourceGroupResource.GetHybridConnectivitySolutionTypes(); // invoke the operation and iterate over the result - await foreach (SolutionTypeResource item in collection.GetAllAsync()) + await foreach (HybridConnectivitySolutionTypeResource 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 - SolutionTypeResourceData resourceData = item.Data; + HybridConnectivitySolutionTypeData 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_SolutionTypesGet() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this SolutionTypeResource - SolutionTypeResourceCollection collection = resourceGroupResource.GetSolutionTypeResources(); + // get the collection of this HybridConnectivitySolutionTypeResource + HybridConnectivitySolutionTypeCollection collection = resourceGroupResource.GetHybridConnectivitySolutionTypes(); // invoke the operation string solutionType = "lulzqllpu"; - SolutionTypeResource result = await collection.GetAsync(solutionType); + HybridConnectivitySolutionTypeResource result = await collection.GetAsync(solutionType); // 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 - SolutionTypeResourceData resourceData = result.Data; + HybridConnectivitySolutionTypeData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -103,8 +103,8 @@ public async Task Exists_SolutionTypesGet() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this SolutionTypeResource - SolutionTypeResourceCollection collection = resourceGroupResource.GetSolutionTypeResources(); + // get the collection of this HybridConnectivitySolutionTypeResource + HybridConnectivitySolutionTypeCollection collection = resourceGroupResource.GetHybridConnectivitySolutionTypes(); // invoke the operation string solutionType = "lulzqllpu"; @@ -132,13 +132,13 @@ public async Task GetIfExists_SolutionTypesGet() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this SolutionTypeResource - SolutionTypeResourceCollection collection = resourceGroupResource.GetSolutionTypeResources(); + // get the collection of this HybridConnectivitySolutionTypeResource + HybridConnectivitySolutionTypeCollection collection = resourceGroupResource.GetHybridConnectivitySolutionTypes(); // invoke the operation string solutionType = "lulzqllpu"; - NullableResponse response = await collection.GetIfExistsAsync(solutionType); - SolutionTypeResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(solutionType); + HybridConnectivitySolutionTypeResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -148,7 +148,7 @@ public async Task GetIfExists_SolutionTypesGet() { // 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 - SolutionTypeResourceData resourceData = result.Data; + HybridConnectivitySolutionTypeData 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_SolutionTypeResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivitySolutionTypeResource.cs similarity index 74% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SolutionTypeResource.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivitySolutionTypeResource.cs index 66e204ebfaf00..4a6d750fd940d 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_SolutionTypeResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_HybridConnectivitySolutionTypeResource.cs @@ -14,11 +14,11 @@ namespace Azure.ResourceManager.HybridConnectivity.Samples { - public partial class Sample_SolutionTypeResource + public partial class Sample_HybridConnectivitySolutionTypeResource { [Test] [Ignore("Only validating compilation of examples")] - public async Task GetSolutionTypeResources_SolutionTypesListBySubscription() + public async Task GetHybridConnectivitySolutionTypes_SolutionTypesListBySubscription() { // Generated from example definition: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/PublicCloud/stable/2024-12-01/examples/SolutionTypes_ListBySubscription.json // this example is just showing the usage of "SolutionTypes_ListBySubscription" operation, for the dependent resources, they will have to be created separately. @@ -35,11 +35,11 @@ public async Task GetSolutionTypeResources_SolutionTypesListBySubscription() SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); // invoke the operation and iterate over the result - await foreach (SolutionTypeResource item in subscriptionResource.GetSolutionTypeResourcesAsync()) + await foreach (HybridConnectivitySolutionTypeResource item in subscriptionResource.GetHybridConnectivitySolutionTypesAsync()) { // 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 - SolutionTypeResourceData resourceData = item.Data; + HybridConnectivitySolutionTypeData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -59,20 +59,20 @@ public async Task Get_SolutionTypesGet() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this SolutionTypeResource created on azure - // for more information of creating SolutionTypeResource, please refer to the document of SolutionTypeResource + // this example assumes you already have this HybridConnectivitySolutionTypeResource created on azure + // for more information of creating HybridConnectivitySolutionTypeResource, please refer to the document of HybridConnectivitySolutionTypeResource string subscriptionId = "5ACC4579-DB34-4C2F-8F8C-25061168F342"; string resourceGroupName = "rgpublicCloud"; string solutionType = "lulzqllpu"; - ResourceIdentifier solutionTypeResourceId = SolutionTypeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, solutionType); - SolutionTypeResource solutionTypeResource = client.GetSolutionTypeResource(solutionTypeResourceId); + ResourceIdentifier hybridConnectivitySolutionTypeResourceId = HybridConnectivitySolutionTypeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, solutionType); + HybridConnectivitySolutionTypeResource hybridConnectivitySolutionType = client.GetHybridConnectivitySolutionTypeResource(hybridConnectivitySolutionTypeResourceId); // invoke the operation - SolutionTypeResource result = await solutionTypeResource.GetAsync(); + HybridConnectivitySolutionTypeResource result = await hybridConnectivitySolutionType.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 - SolutionTypeResourceData resourceData = result.Data; + HybridConnectivitySolutionTypeData 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/src/Generated/ArmHybridConnectivityModelFactory.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs index 2b0e016093f10..a30daffbf20b6 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs @@ -16,16 +16,16 @@ namespace Azure.ResourceManager.HybridConnectivity.Models /// Model factory for models. public static partial class ArmHybridConnectivityModelFactory { - /// 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 SolutionConfigurationData SolutionConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SolutionConfigurationProperties properties = null) + /// A new instance for mocking. + public static HybridConnectivitySolutionConfigurationData HybridConnectivitySolutionConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SolutionConfigurationProperties properties = null) { - return new SolutionConfigurationData( + return new HybridConnectivitySolutionConfigurationData( id, name, resourceType, @@ -56,16 +56,16 @@ public static SolutionConfigurationProperties SolutionConfigurationProperties(Hy 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 SolutionConfigurationPatch SolutionConfigurationPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SolutionConfigurationPropertiesUpdate properties = null) + /// A new instance for mocking. + public static HybridConnectivitySolutionConfigurationPatch HybridConnectivitySolutionConfigurationPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SolutionConfigurationPropertiesUpdate properties = null) { - return new SolutionConfigurationPatch( + return new HybridConnectivitySolutionConfigurationPatch( id, name, resourceType, @@ -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 HybridConnectivityInventoryResourceData HybridConnectivityInventoryResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridConnectivityInventoryProperties properties = null) + /// A new instance for mocking. + public static HybridConnectivityInventoryData HybridConnectivityInventoryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridConnectivityInventoryProperties properties = null) { - return new HybridConnectivityInventoryResourceData( + return new HybridConnectivityInventoryData( id, name, resourceType, @@ -112,7 +112,7 @@ public static HybridConnectivityInventoryProperties HybridConnectivityInventoryP serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Fully qualified ID for the async operation. /// Fully qualified ID of the resource against which the original async operation was started. /// Name of the async operation. @@ -122,12 +122,12 @@ public static HybridConnectivityInventoryProperties HybridConnectivityInventoryP /// The end time of the operation. /// The operations list. /// If present, details of the operation error. - /// A new instance for mocking. - public static OperationStatusResult OperationStatusResult(ResourceIdentifier id = null, ResourceIdentifier resourceId = null, string name = null, string status = null, float? percentComplete = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, IEnumerable operations = null, ResponseError error = null) + /// A new instance for mocking. + public static HybridConnectivityOperationStatusResult HybridConnectivityOperationStatusResult(ResourceIdentifier id = null, ResourceIdentifier resourceId = null, string name = null, string status = null, float? percentComplete = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, IEnumerable operations = null, ResponseError error = null) { - operations ??= new List(); + operations ??= new List(); - return new OperationStatusResult( + return new HybridConnectivityOperationStatusResult( id, resourceId, name, @@ -162,7 +162,7 @@ public static SolutionTypeSettings SolutionTypeSettings(string solutionType = nu return new SolutionTypeSettings(solutionType, solutionSettings, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. @@ -170,12 +170,12 @@ public static SolutionTypeSettings SolutionTypeSettings(string solutionType = nu /// The tags. /// The location. /// The resource-specific properties for this resource. - /// A new instance for mocking. - public static PublicCloudConnectorData PublicCloudConnectorData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, PublicCloudConnectorProperties properties = null) + /// A new instance for mocking. + public static HybridConnectivityPublicCloudConnectorData HybridConnectivityPublicCloudConnectorData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, PublicCloudConnectorProperties properties = null) { tags ??= new Dictionary(); - return new PublicCloudConnectorData( + return new HybridConnectivityPublicCloudConnectorData( id, name, resourceType, @@ -197,16 +197,16 @@ public static PublicCloudConnectorProperties PublicCloudConnectorProperties(AwsC return new PublicCloudConnectorProperties(awsCloudProfile, hostType, provisioningState, connectorPrimaryIdentifier, 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 SolutionTypeResourceData SolutionTypeResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SolutionTypeProperties properties = null) + /// A new instance for mocking. + public static HybridConnectivitySolutionTypeData HybridConnectivitySolutionTypeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridConnectivitySolutionTypeProperties properties = null) { - return new SolutionTypeResourceData( + return new HybridConnectivitySolutionTypeData( id, name, resourceType, @@ -215,20 +215,20 @@ public static SolutionTypeResourceData SolutionTypeResourceData(ResourceIdentifi 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. /// Resource tags. - /// A new instance for mocking. - public static PublicCloudConnectorPatch PublicCloudConnectorPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable awsCloudExcludedAccounts = null, IDictionary tags = null) + /// A new instance for mocking. + public static HybridConnectivityPublicCloudConnectorPatch HybridConnectivityPublicCloudConnectorPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable awsCloudExcludedAccounts = null, IDictionary tags = null) { awsCloudExcludedAccounts ??= new List(); tags ??= new Dictionary(); - return new PublicCloudConnectorPatch( + return new HybridConnectivityPublicCloudConnectorPatch( id, name, resourceType, @@ -238,16 +238,16 @@ public static PublicCloudConnectorPatch PublicCloudConnectorPatch(ResourceIdenti serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// 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, HybridConnectivityEndpointProperties properties = null) + /// A new instance for mocking. + public static HybridConnectivityEndpointData HybridConnectivityEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridConnectivityEndpointProperties properties = null) { - return new EndpointResourceData( + return new HybridConnectivityEndpointData( id, name, resourceType, @@ -261,12 +261,12 @@ public static EndpointResourceData EndpointResourceData(ResourceIdentifier id = /// The resource Id of the connectivity endpoint (optional). /// The resource provisioning state. /// A new instance for mocking. - public static HybridConnectivityEndpointProperties HybridConnectivityEndpointProperties(EndpointType endpointType = default, ResourceIdentifier resourceId = null, string provisioningState = null) + public static HybridConnectivityEndpointProperties HybridConnectivityEndpointProperties(HybridConnectivityEndpointType endpointType = default, ResourceIdentifier resourceId = null, string provisioningState = null) { return new HybridConnectivityEndpointProperties(endpointType, resourceId, provisioningState, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. @@ -275,10 +275,10 @@ public static HybridConnectivityEndpointProperties HybridConnectivityEndpointPro /// The resource Id of the connectivity endpoint (optional). /// 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, HybridConnectivityServiceName? serviceName = null, ResourceIdentifier resourceId = null, long? port = null, HybridConnectivityProvisioningState? provisioningState = null) + /// A new instance for mocking. + public static HybridConnectivityServiceConfigurationData HybridConnectivityServiceConfigurationData(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( + return new HybridConnectivityServiceConfigurationData( id, name, resourceType, @@ -321,7 +321,7 @@ public static TargetResourceEndpointAccess TargetResourceEndpointAccess(string n /// The expiration of access key in unix time. /// The token to access the enabled service. /// A new instance for mocking. - public static IngressGatewayAsset IngressGatewayAsset(string hostname = null, ResourceIdentifier serverId = null, Guid? tenantId = null, string namespaceName = null, string namespaceNameSuffix = null, string hybridConnectionName = null, string accessKey = null, long? expiresOn = null, string serviceConfigurationToken = null) + public static IngressGatewayAsset IngressGatewayAsset(string hostname = null, Guid? serverId = null, Guid? tenantId = null, string namespaceName = null, string namespaceNameSuffix = null, string hybridConnectionName = null, string accessKey = null, long? expiresOn = null, string serviceConfigurationToken = null) { return new IngressGatewayAsset( hostname, diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResource.Serialization.cs deleted file mode 100644 index 6e2e9ba7e634f..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResource.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 EndpointResource : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - EndpointResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); - - EndpointResourceData 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/Extensions/HybridConnectivityExtensions.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/HybridConnectivityExtensions.cs index 9c931357f0824..6ad32f973a0c9 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/HybridConnectivityExtensions.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/HybridConnectivityExtensions.cs @@ -34,21 +34,21 @@ private static MockableHybridConnectivitySubscriptionResource GetMockableHybridC } /// - /// Gets a collection of SolutionConfigurationResources in the ArmClient. + /// Gets a collection of HybridConnectivitySolutionConfigurationResources in the ArmClient. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The scope that the resource will apply against. /// is null. - /// An object representing collection of SolutionConfigurationResources and their operations over a SolutionConfigurationResource. - public static SolutionConfigurationCollection GetSolutionConfigurations(this ArmClient client, ResourceIdentifier scope) + /// An object representing collection of HybridConnectivitySolutionConfigurationResources and their operations over a HybridConnectivitySolutionConfigurationResource. + public static HybridConnectivitySolutionConfigurationCollection GetHybridConnectivitySolutionConfigurations(this ArmClient client, ResourceIdentifier scope) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableHybridConnectivityArmClient(client).GetSolutionConfigurations(scope); + return GetMockableHybridConnectivityArmClient(client).GetHybridConnectivitySolutionConfigurations(scope); } /// @@ -68,12 +68,12 @@ public static SolutionConfigurationCollection GetSolutionConfigurations(this Arm /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -83,11 +83,11 @@ public static SolutionConfigurationCollection GetSolutionConfigurations(this Arm /// or is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static async Task> GetSolutionConfigurationAsync(this ArmClient client, ResourceIdentifier scope, string solutionConfiguration, CancellationToken cancellationToken = default) + public static async Task> GetHybridConnectivitySolutionConfigurationAsync(this ArmClient client, ResourceIdentifier scope, string solutionConfiguration, CancellationToken cancellationToken = default) { Argument.AssertNotNull(client, nameof(client)); - return await GetMockableHybridConnectivityArmClient(client).GetSolutionConfigurationAsync(scope, solutionConfiguration, cancellationToken).ConfigureAwait(false); + return await GetMockableHybridConnectivityArmClient(client).GetHybridConnectivitySolutionConfigurationAsync(scope, solutionConfiguration, cancellationToken).ConfigureAwait(false); } /// @@ -107,12 +107,12 @@ public static async Task> GetSolutionCon /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -122,29 +122,29 @@ public static async Task> GetSolutionCon /// or is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static Response GetSolutionConfiguration(this ArmClient client, ResourceIdentifier scope, string solutionConfiguration, CancellationToken cancellationToken = default) + public static Response GetHybridConnectivitySolutionConfiguration(this ArmClient client, ResourceIdentifier scope, string solutionConfiguration, CancellationToken cancellationToken = default) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableHybridConnectivityArmClient(client).GetSolutionConfiguration(scope, solutionConfiguration, cancellationToken); + return GetMockableHybridConnectivityArmClient(client).GetHybridConnectivitySolutionConfiguration(scope, solutionConfiguration, cancellationToken); } /// - /// Gets a collection of EndpointResources in the ArmClient. + /// Gets a collection of HybridConnectivityEndpointResources in the ArmClient. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The scope that the resource will apply against. /// is null. - /// An object representing collection of EndpointResources and their operations over a EndpointResource. - public static EndpointResourceCollection GetEndpointResources(this ArmClient client, ResourceIdentifier scope) + /// An object representing collection of HybridConnectivityEndpointResources and their operations over a HybridConnectivityEndpointResource. + public static HybridConnectivityEndpointCollection GetHybridConnectivityEndpoints(this ArmClient client, ResourceIdentifier scope) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableHybridConnectivityArmClient(client).GetEndpointResources(scope); + return GetMockableHybridConnectivityArmClient(client).GetHybridConnectivityEndpoints(scope); } /// @@ -164,12 +164,12 @@ public static EndpointResourceCollection GetEndpointResources(this ArmClient cli /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -178,11 +178,11 @@ public static EndpointResourceCollection GetEndpointResources(this ArmClient cli /// The cancellation token to use. /// or is null. [ForwardsClientCalls] - public static async Task> GetEndpointResourceAsync(this ArmClient client, ResourceIdentifier scope, string endpointName, CancellationToken cancellationToken = default) + public static async Task> GetHybridConnectivityEndpointAsync(this ArmClient client, ResourceIdentifier scope, string endpointName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(client, nameof(client)); - return await GetMockableHybridConnectivityArmClient(client).GetEndpointResourceAsync(scope, endpointName, cancellationToken).ConfigureAwait(false); + return await GetMockableHybridConnectivityArmClient(client).GetHybridConnectivityEndpointAsync(scope, endpointName, cancellationToken).ConfigureAwait(false); } /// @@ -202,12 +202,12 @@ public static async Task> GetEndpointResourceAsync(th /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -216,30 +216,30 @@ public static async Task> GetEndpointResourceAsync(th /// The cancellation token to use. /// or is null. [ForwardsClientCalls] - public static Response GetEndpointResource(this ArmClient client, ResourceIdentifier scope, string endpointName, CancellationToken cancellationToken = default) + public static Response GetHybridConnectivityEndpoint(this ArmClient client, ResourceIdentifier scope, string endpointName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableHybridConnectivityArmClient(client).GetEndpointResource(scope, endpointName, cancellationToken); + return GetMockableHybridConnectivityArmClient(client).GetHybridConnectivityEndpoint(scope, endpointName, cancellationToken); } /// - /// 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. + /// 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 SolutionConfigurationResource GetSolutionConfigurationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static HybridConnectivitySolutionConfigurationResource GetHybridConnectivitySolutionConfigurationResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableHybridConnectivityArmClient(client).GetSolutionConfigurationResource(id); + return GetMockableHybridConnectivityArmClient(client).GetHybridConnectivitySolutionConfigurationResource(id); } /// @@ -262,96 +262,96 @@ public static HybridConnectivityInventoryResource GetHybridConnectivityInventory } /// - /// 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. + /// 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 PublicCloudConnectorResource GetPublicCloudConnectorResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static HybridConnectivityPublicCloudConnectorResource GetHybridConnectivityPublicCloudConnectorResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableHybridConnectivityArmClient(client).GetPublicCloudConnectorResource(id); + return GetMockableHybridConnectivityArmClient(client).GetHybridConnectivityPublicCloudConnectorResource(id); } /// - /// 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. + /// 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 SolutionTypeResource GetSolutionTypeResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static HybridConnectivitySolutionTypeResource GetHybridConnectivitySolutionTypeResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableHybridConnectivityArmClient(client).GetSolutionTypeResource(id); + return GetMockableHybridConnectivityArmClient(client).GetHybridConnectivitySolutionTypeResource(id); } /// - /// 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 EndpointResource GetEndpointResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static HybridConnectivityEndpointResource GetHybridConnectivityEndpointResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableHybridConnectivityArmClient(client).GetEndpointResource(id); + return GetMockableHybridConnectivityArmClient(client).GetHybridConnectivityEndpointResource(id); } /// - /// 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. + /// 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 ServiceConfigurationResource GetServiceConfigurationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static HybridConnectivityServiceConfigurationResource GetHybridConnectivityServiceConfigurationResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableHybridConnectivityArmClient(client).GetServiceConfigurationResource(id); + return GetMockableHybridConnectivityArmClient(client).GetHybridConnectivityServiceConfigurationResource(id); } /// - /// Gets a collection of PublicCloudConnectorResources in the ResourceGroupResource. + /// Gets a collection of HybridConnectivityPublicCloudConnectorResources in the ResourceGroupResource. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// is null. - /// An object representing collection of PublicCloudConnectorResources and their operations over a PublicCloudConnectorResource. - public static PublicCloudConnectorCollection GetPublicCloudConnectors(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of HybridConnectivityPublicCloudConnectorResources and their operations over a HybridConnectivityPublicCloudConnectorResource. + public static HybridConnectivityPublicCloudConnectorCollection GetHybridConnectivityPublicCloudConnectors(this ResourceGroupResource resourceGroupResource) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableHybridConnectivityResourceGroupResource(resourceGroupResource).GetPublicCloudConnectors(); + return GetMockableHybridConnectivityResourceGroupResource(resourceGroupResource).GetHybridConnectivityPublicCloudConnectors(); } /// @@ -371,12 +371,12 @@ public static PublicCloudConnectorCollection GetPublicCloudConnectors(this Resou /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -385,11 +385,11 @@ public static PublicCloudConnectorCollection GetPublicCloudConnectors(this Resou /// or is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static async Task> GetPublicCloudConnectorAsync(this ResourceGroupResource resourceGroupResource, string publicCloudConnector, CancellationToken cancellationToken = default) + public static async Task> GetHybridConnectivityPublicCloudConnectorAsync(this ResourceGroupResource resourceGroupResource, string publicCloudConnector, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return await GetMockableHybridConnectivityResourceGroupResource(resourceGroupResource).GetPublicCloudConnectorAsync(publicCloudConnector, cancellationToken).ConfigureAwait(false); + return await GetMockableHybridConnectivityResourceGroupResource(resourceGroupResource).GetHybridConnectivityPublicCloudConnectorAsync(publicCloudConnector, cancellationToken).ConfigureAwait(false); } /// @@ -409,12 +409,12 @@ public static async Task> GetPublicCloudC /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -423,28 +423,28 @@ public static async Task> GetPublicCloudC /// or is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static Response GetPublicCloudConnector(this ResourceGroupResource resourceGroupResource, string publicCloudConnector, CancellationToken cancellationToken = default) + public static Response GetHybridConnectivityPublicCloudConnector(this ResourceGroupResource resourceGroupResource, string publicCloudConnector, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableHybridConnectivityResourceGroupResource(resourceGroupResource).GetPublicCloudConnector(publicCloudConnector, cancellationToken); + return GetMockableHybridConnectivityResourceGroupResource(resourceGroupResource).GetHybridConnectivityPublicCloudConnector(publicCloudConnector, cancellationToken); } /// - /// Gets a collection of SolutionTypeResources in the ResourceGroupResource. + /// Gets a collection of HybridConnectivitySolutionTypeResources in the ResourceGroupResource. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// is null. - /// An object representing collection of SolutionTypeResources and their operations over a SolutionTypeResource. - public static SolutionTypeResourceCollection GetSolutionTypeResources(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of HybridConnectivitySolutionTypeResources and their operations over a HybridConnectivitySolutionTypeResource. + public static HybridConnectivitySolutionTypeCollection GetHybridConnectivitySolutionTypes(this ResourceGroupResource resourceGroupResource) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableHybridConnectivityResourceGroupResource(resourceGroupResource).GetSolutionTypeResources(); + return GetMockableHybridConnectivityResourceGroupResource(resourceGroupResource).GetHybridConnectivitySolutionTypes(); } /// @@ -464,12 +464,12 @@ public static SolutionTypeResourceCollection GetSolutionTypeResources(this Resou /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -478,11 +478,11 @@ public static SolutionTypeResourceCollection GetSolutionTypeResources(this Resou /// or is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static async Task> GetSolutionTypeResourceAsync(this ResourceGroupResource resourceGroupResource, string solutionType, CancellationToken cancellationToken = default) + public static async Task> GetHybridConnectivitySolutionTypeAsync(this ResourceGroupResource resourceGroupResource, string solutionType, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return await GetMockableHybridConnectivityResourceGroupResource(resourceGroupResource).GetSolutionTypeResourceAsync(solutionType, cancellationToken).ConfigureAwait(false); + return await GetMockableHybridConnectivityResourceGroupResource(resourceGroupResource).GetHybridConnectivitySolutionTypeAsync(solutionType, cancellationToken).ConfigureAwait(false); } /// @@ -502,12 +502,12 @@ public static async Task> GetSolutionTypeResource /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -516,11 +516,11 @@ public static async Task> GetSolutionTypeResource /// or is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static Response GetSolutionTypeResource(this ResourceGroupResource resourceGroupResource, string solutionType, CancellationToken cancellationToken = default) + public static Response GetHybridConnectivitySolutionType(this ResourceGroupResource resourceGroupResource, string solutionType, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableHybridConnectivityResourceGroupResource(resourceGroupResource).GetSolutionTypeResource(solutionType, cancellationToken); + return GetMockableHybridConnectivityResourceGroupResource(resourceGroupResource).GetHybridConnectivitySolutionType(solutionType, cancellationToken); } /// @@ -604,23 +604,23 @@ public static Response PostGenerateAwsTemplate(this SubscriptionReso /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetPublicCloudConnectorsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetHybridConnectivityPublicCloudConnectorsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableHybridConnectivitySubscriptionResource(subscriptionResource).GetPublicCloudConnectorsAsync(cancellationToken); + return GetMockableHybridConnectivitySubscriptionResource(subscriptionResource).GetHybridConnectivityPublicCloudConnectorsAsync(cancellationToken); } /// @@ -640,23 +640,23 @@ public static AsyncPageable GetPublicCloudConnecto /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetPublicCloudConnectors(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetHybridConnectivityPublicCloudConnectors(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableHybridConnectivitySubscriptionResource(subscriptionResource).GetPublicCloudConnectors(cancellationToken); + return GetMockableHybridConnectivitySubscriptionResource(subscriptionResource).GetHybridConnectivityPublicCloudConnectors(cancellationToken); } /// @@ -676,23 +676,23 @@ public static Pageable GetPublicCloudConnectors(th /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetSolutionTypeResourcesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetHybridConnectivitySolutionTypesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableHybridConnectivitySubscriptionResource(subscriptionResource).GetSolutionTypeResourcesAsync(cancellationToken); + return GetMockableHybridConnectivitySubscriptionResource(subscriptionResource).GetHybridConnectivitySolutionTypesAsync(cancellationToken); } /// @@ -712,23 +712,23 @@ public static AsyncPageable GetSolutionTypeResourcesAsync( /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetSolutionTypeResources(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetHybridConnectivitySolutionTypes(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableHybridConnectivitySubscriptionResource(subscriptionResource).GetSolutionTypeResources(cancellationToken); + return GetMockableHybridConnectivitySubscriptionResource(subscriptionResource).GetHybridConnectivitySolutionTypes(cancellationToken); } } } 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 9f5987af8fffc..3053afafcc5cf 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivityArmClient.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivityArmClient.cs @@ -37,12 +37,12 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of SolutionConfigurationResources in the ArmClient. + /// Gets a collection of HybridConnectivitySolutionConfigurationResources in the ArmClient. /// The scope that the resource will apply against. - /// An object representing collection of SolutionConfigurationResources and their operations over a SolutionConfigurationResource. - public virtual SolutionConfigurationCollection GetSolutionConfigurations(ResourceIdentifier scope) + /// An object representing collection of HybridConnectivitySolutionConfigurationResources and their operations over a HybridConnectivitySolutionConfigurationResource. + public virtual HybridConnectivitySolutionConfigurationCollection GetHybridConnectivitySolutionConfigurations(ResourceIdentifier scope) { - return new SolutionConfigurationCollection(Client, scope); + return new HybridConnectivitySolutionConfigurationCollection(Client, scope); } /// @@ -62,7 +62,7 @@ public virtual SolutionConfigurationCollection GetSolutionConfigurations(Resourc /// /// /// Resource - /// + /// /// /// /// @@ -72,9 +72,9 @@ public virtual SolutionConfigurationCollection GetSolutionConfigurations(Resourc /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetSolutionConfigurationAsync(ResourceIdentifier scope, string solutionConfiguration, CancellationToken cancellationToken = default) + public virtual async Task> GetHybridConnectivitySolutionConfigurationAsync(ResourceIdentifier scope, string solutionConfiguration, CancellationToken cancellationToken = default) { - return await GetSolutionConfigurations(scope).GetAsync(solutionConfiguration, cancellationToken).ConfigureAwait(false); + return await GetHybridConnectivitySolutionConfigurations(scope).GetAsync(solutionConfiguration, cancellationToken).ConfigureAwait(false); } /// @@ -94,7 +94,7 @@ public virtual async Task> GetSolutionCo /// /// /// Resource - /// + /// /// /// /// @@ -104,17 +104,17 @@ public virtual async Task> GetSolutionCo /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetSolutionConfiguration(ResourceIdentifier scope, string solutionConfiguration, CancellationToken cancellationToken = default) + public virtual Response GetHybridConnectivitySolutionConfiguration(ResourceIdentifier scope, string solutionConfiguration, CancellationToken cancellationToken = default) { - return GetSolutionConfigurations(scope).Get(solutionConfiguration, cancellationToken); + return GetHybridConnectivitySolutionConfigurations(scope).Get(solutionConfiguration, cancellationToken); } - /// Gets a collection of EndpointResources in the ArmClient. + /// Gets a collection of HybridConnectivityEndpointResources in the ArmClient. /// The scope that the resource will apply against. - /// An object representing collection of EndpointResources and their operations over a EndpointResource. - public virtual EndpointResourceCollection GetEndpointResources(ResourceIdentifier scope) + /// An object representing collection of HybridConnectivityEndpointResources and their operations over a HybridConnectivityEndpointResource. + public virtual HybridConnectivityEndpointCollection GetHybridConnectivityEndpoints(ResourceIdentifier scope) { - return new EndpointResourceCollection(Client, scope); + return new HybridConnectivityEndpointCollection(Client, scope); } /// @@ -134,7 +134,7 @@ public virtual EndpointResourceCollection GetEndpointResources(ResourceIdentifie /// /// /// Resource - /// + /// /// /// /// @@ -143,9 +143,9 @@ public virtual EndpointResourceCollection GetEndpointResources(ResourceIdentifie /// The cancellation token to use. /// is null. [ForwardsClientCalls] - public virtual async Task> GetEndpointResourceAsync(ResourceIdentifier scope, string endpointName, CancellationToken cancellationToken = default) + public virtual async Task> GetHybridConnectivityEndpointAsync(ResourceIdentifier scope, string endpointName, CancellationToken cancellationToken = default) { - return await GetEndpointResources(scope).GetAsync(endpointName, cancellationToken).ConfigureAwait(false); + return await GetHybridConnectivityEndpoints(scope).GetAsync(endpointName, cancellationToken).ConfigureAwait(false); } /// @@ -165,7 +165,7 @@ public virtual async Task> GetEndpointResourceAsync(R /// /// /// Resource - /// + /// /// /// /// @@ -174,21 +174,21 @@ public virtual async Task> GetEndpointResourceAsync(R /// The cancellation token to use. /// is null. [ForwardsClientCalls] - public virtual Response GetEndpointResource(ResourceIdentifier scope, string endpointName, CancellationToken cancellationToken = default) + public virtual Response GetHybridConnectivityEndpoint(ResourceIdentifier scope, string endpointName, CancellationToken cancellationToken = default) { - return GetEndpointResources(scope).Get(endpointName, cancellationToken); + return GetHybridConnectivityEndpoints(scope).Get(endpointName, cancellationToken); } /// - /// 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. + /// 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 SolutionConfigurationResource GetSolutionConfigurationResource(ResourceIdentifier id) + /// Returns a object. + public virtual HybridConnectivitySolutionConfigurationResource GetHybridConnectivitySolutionConfigurationResource(ResourceIdentifier id) { - SolutionConfigurationResource.ValidateResourceId(id); - return new SolutionConfigurationResource(Client, id); + HybridConnectivitySolutionConfigurationResource.ValidateResourceId(id); + return new HybridConnectivitySolutionConfigurationResource(Client, id); } /// @@ -204,51 +204,51 @@ public virtual HybridConnectivityInventoryResource GetHybridConnectivityInventor } /// - /// 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. + /// 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 PublicCloudConnectorResource GetPublicCloudConnectorResource(ResourceIdentifier id) + /// Returns a object. + public virtual HybridConnectivityPublicCloudConnectorResource GetHybridConnectivityPublicCloudConnectorResource(ResourceIdentifier id) { - PublicCloudConnectorResource.ValidateResourceId(id); - return new PublicCloudConnectorResource(Client, id); + HybridConnectivityPublicCloudConnectorResource.ValidateResourceId(id); + return new HybridConnectivityPublicCloudConnectorResource(Client, id); } /// - /// 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. + /// 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 SolutionTypeResource GetSolutionTypeResource(ResourceIdentifier id) + /// Returns a object. + public virtual HybridConnectivitySolutionTypeResource GetHybridConnectivitySolutionTypeResource(ResourceIdentifier id) { - SolutionTypeResource.ValidateResourceId(id); - return new SolutionTypeResource(Client, id); + HybridConnectivitySolutionTypeResource.ValidateResourceId(id); + return new HybridConnectivitySolutionTypeResource(Client, id); } /// - /// 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 EndpointResource GetEndpointResource(ResourceIdentifier id) + /// Returns a object. + public virtual HybridConnectivityEndpointResource GetHybridConnectivityEndpointResource(ResourceIdentifier id) { - EndpointResource.ValidateResourceId(id); - return new EndpointResource(Client, id); + HybridConnectivityEndpointResource.ValidateResourceId(id); + return new HybridConnectivityEndpointResource(Client, id); } /// - /// 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. + /// 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 ServiceConfigurationResource GetServiceConfigurationResource(ResourceIdentifier id) + /// Returns a object. + public virtual HybridConnectivityServiceConfigurationResource GetHybridConnectivityServiceConfigurationResource(ResourceIdentifier id) { - ServiceConfigurationResource.ValidateResourceId(id); - return new ServiceConfigurationResource(Client, id); + HybridConnectivityServiceConfigurationResource.ValidateResourceId(id); + return new HybridConnectivityServiceConfigurationResource(Client, id); } } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivityResourceGroupResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivityResourceGroupResource.cs index c3f25222a604f..2dbb229b0a091 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivityResourceGroupResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivityResourceGroupResource.cs @@ -33,11 +33,11 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of PublicCloudConnectorResources in the ResourceGroupResource. - /// An object representing collection of PublicCloudConnectorResources and their operations over a PublicCloudConnectorResource. - public virtual PublicCloudConnectorCollection GetPublicCloudConnectors() + /// Gets a collection of HybridConnectivityPublicCloudConnectorResources in the ResourceGroupResource. + /// An object representing collection of HybridConnectivityPublicCloudConnectorResources and their operations over a HybridConnectivityPublicCloudConnectorResource. + public virtual HybridConnectivityPublicCloudConnectorCollection GetHybridConnectivityPublicCloudConnectors() { - return GetCachedClient(client => new PublicCloudConnectorCollection(client, Id)); + return GetCachedClient(client => new HybridConnectivityPublicCloudConnectorCollection(client, Id)); } /// @@ -57,7 +57,7 @@ public virtual PublicCloudConnectorCollection GetPublicCloudConnectors() /// /// /// Resource - /// + /// /// /// /// @@ -66,9 +66,9 @@ public virtual PublicCloudConnectorCollection GetPublicCloudConnectors() /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetPublicCloudConnectorAsync(string publicCloudConnector, CancellationToken cancellationToken = default) + public virtual async Task> GetHybridConnectivityPublicCloudConnectorAsync(string publicCloudConnector, CancellationToken cancellationToken = default) { - return await GetPublicCloudConnectors().GetAsync(publicCloudConnector, cancellationToken).ConfigureAwait(false); + return await GetHybridConnectivityPublicCloudConnectors().GetAsync(publicCloudConnector, cancellationToken).ConfigureAwait(false); } /// @@ -88,7 +88,7 @@ public virtual async Task> GetPublicCloud /// /// /// Resource - /// + /// /// /// /// @@ -97,16 +97,16 @@ public virtual async Task> GetPublicCloud /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetPublicCloudConnector(string publicCloudConnector, CancellationToken cancellationToken = default) + public virtual Response GetHybridConnectivityPublicCloudConnector(string publicCloudConnector, CancellationToken cancellationToken = default) { - return GetPublicCloudConnectors().Get(publicCloudConnector, cancellationToken); + return GetHybridConnectivityPublicCloudConnectors().Get(publicCloudConnector, cancellationToken); } - /// Gets a collection of SolutionTypeResources in the ResourceGroupResource. - /// An object representing collection of SolutionTypeResources and their operations over a SolutionTypeResource. - public virtual SolutionTypeResourceCollection GetSolutionTypeResources() + /// Gets a collection of HybridConnectivitySolutionTypeResources in the ResourceGroupResource. + /// An object representing collection of HybridConnectivitySolutionTypeResources and their operations over a HybridConnectivitySolutionTypeResource. + public virtual HybridConnectivitySolutionTypeCollection GetHybridConnectivitySolutionTypes() { - return GetCachedClient(client => new SolutionTypeResourceCollection(client, Id)); + return GetCachedClient(client => new HybridConnectivitySolutionTypeCollection(client, Id)); } /// @@ -126,7 +126,7 @@ public virtual SolutionTypeResourceCollection GetSolutionTypeResources() /// /// /// Resource - /// + /// /// /// /// @@ -135,9 +135,9 @@ public virtual SolutionTypeResourceCollection GetSolutionTypeResources() /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetSolutionTypeResourceAsync(string solutionType, CancellationToken cancellationToken = default) + public virtual async Task> GetHybridConnectivitySolutionTypeAsync(string solutionType, CancellationToken cancellationToken = default) { - return await GetSolutionTypeResources().GetAsync(solutionType, cancellationToken).ConfigureAwait(false); + return await GetHybridConnectivitySolutionTypes().GetAsync(solutionType, cancellationToken).ConfigureAwait(false); } /// @@ -157,7 +157,7 @@ public virtual async Task> GetSolutionTypeResourc /// /// /// Resource - /// + /// /// /// /// @@ -166,9 +166,9 @@ public virtual async Task> GetSolutionTypeResourc /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetSolutionTypeResource(string solutionType, CancellationToken cancellationToken = default) + public virtual Response GetHybridConnectivitySolutionType(string solutionType, CancellationToken cancellationToken = default) { - return GetSolutionTypeResources().Get(solutionType, cancellationToken); + return GetHybridConnectivitySolutionTypes().Get(solutionType, cancellationToken); } } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivitySubscriptionResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivitySubscriptionResource.cs index a3c4ac386b290..e256239a92de9 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivitySubscriptionResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Extensions/MockableHybridConnectivitySubscriptionResource.cs @@ -20,10 +20,10 @@ public partial class MockableHybridConnectivitySubscriptionResource : ArmResourc { private ClientDiagnostics _generateAwsTemplateClientDiagnostics; private GenerateAwsTemplateRestOperations _generateAwsTemplateRestClient; - private ClientDiagnostics _publicCloudConnectorClientDiagnostics; - private PublicCloudConnectorsRestOperations _publicCloudConnectorRestClient; - private ClientDiagnostics _solutionTypeResourceSolutionTypesClientDiagnostics; - private SolutionTypesRestOperations _solutionTypeResourceSolutionTypesRestClient; + private ClientDiagnostics _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics; + private PublicCloudConnectorsRestOperations _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient; + private ClientDiagnostics _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics; + private SolutionTypesRestOperations _hybridConnectivitySolutionTypeSolutionTypesRestClient; /// Initializes a new instance of the class for mocking. protected MockableHybridConnectivitySubscriptionResource() @@ -39,10 +39,10 @@ internal MockableHybridConnectivitySubscriptionResource(ArmClient client, Resour private ClientDiagnostics GenerateAwsTemplateClientDiagnostics => _generateAwsTemplateClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ProviderConstants.DefaultProviderNamespace, Diagnostics); private GenerateAwsTemplateRestOperations GenerateAwsTemplateRestClient => _generateAwsTemplateRestClient ??= new GenerateAwsTemplateRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics PublicCloudConnectorClientDiagnostics => _publicCloudConnectorClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", PublicCloudConnectorResource.ResourceType.Namespace, Diagnostics); - private PublicCloudConnectorsRestOperations PublicCloudConnectorRestClient => _publicCloudConnectorRestClient ??= new PublicCloudConnectorsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(PublicCloudConnectorResource.ResourceType)); - private ClientDiagnostics SolutionTypeResourceSolutionTypesClientDiagnostics => _solutionTypeResourceSolutionTypesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", SolutionTypeResource.ResourceType.Namespace, Diagnostics); - private SolutionTypesRestOperations SolutionTypeResourceSolutionTypesRestClient => _solutionTypeResourceSolutionTypesRestClient ??= new SolutionTypesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(SolutionTypeResource.ResourceType)); + private ClientDiagnostics HybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics => _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", HybridConnectivityPublicCloudConnectorResource.ResourceType.Namespace, Diagnostics); + private PublicCloudConnectorsRestOperations HybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient => _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient ??= new PublicCloudConnectorsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(HybridConnectivityPublicCloudConnectorResource.ResourceType)); + private ClientDiagnostics HybridConnectivitySolutionTypeSolutionTypesClientDiagnostics => _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", HybridConnectivitySolutionTypeResource.ResourceType.Namespace, Diagnostics); + private SolutionTypesRestOperations HybridConnectivitySolutionTypeSolutionTypesRestClient => _hybridConnectivitySolutionTypeSolutionTypesRestClient ??= new SolutionTypesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(HybridConnectivitySolutionTypeResource.ResourceType)); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -143,17 +143,17 @@ public virtual Response PostGenerateAwsTemplate(GenerateAwsTemplateC /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetPublicCloudConnectorsAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetHybridConnectivityPublicCloudConnectorsAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => PublicCloudConnectorRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => PublicCloudConnectorRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new PublicCloudConnectorResource(Client, PublicCloudConnectorData.DeserializePublicCloudConnectorData(e)), PublicCloudConnectorClientDiagnostics, Pipeline, "MockableHybridConnectivitySubscriptionResource.GetPublicCloudConnectors", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => HybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => HybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivityPublicCloudConnectorResource(Client, HybridConnectivityPublicCloudConnectorData.DeserializeHybridConnectivityPublicCloudConnectorData(e)), HybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics, Pipeline, "MockableHybridConnectivitySubscriptionResource.GetHybridConnectivityPublicCloudConnectors", "value", "nextLink", cancellationToken); } /// @@ -173,17 +173,17 @@ public virtual AsyncPageable GetPublicCloudConnect /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetPublicCloudConnectors(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetHybridConnectivityPublicCloudConnectors(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => PublicCloudConnectorRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => PublicCloudConnectorRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new PublicCloudConnectorResource(Client, PublicCloudConnectorData.DeserializePublicCloudConnectorData(e)), PublicCloudConnectorClientDiagnostics, Pipeline, "MockableHybridConnectivitySubscriptionResource.GetPublicCloudConnectors", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => HybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => HybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivityPublicCloudConnectorResource(Client, HybridConnectivityPublicCloudConnectorData.DeserializeHybridConnectivityPublicCloudConnectorData(e)), HybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics, Pipeline, "MockableHybridConnectivitySubscriptionResource.GetHybridConnectivityPublicCloudConnectors", "value", "nextLink", cancellationToken); } /// @@ -203,17 +203,17 @@ public virtual Pageable GetPublicCloudConnectors(C /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetSolutionTypeResourcesAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetHybridConnectivitySolutionTypesAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => SolutionTypeResourceSolutionTypesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => SolutionTypeResourceSolutionTypesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SolutionTypeResource(Client, SolutionTypeResourceData.DeserializeSolutionTypeResourceData(e)), SolutionTypeResourceSolutionTypesClientDiagnostics, Pipeline, "MockableHybridConnectivitySubscriptionResource.GetSolutionTypeResources", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => HybridConnectivitySolutionTypeSolutionTypesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => HybridConnectivitySolutionTypeSolutionTypesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivitySolutionTypeResource(Client, HybridConnectivitySolutionTypeData.DeserializeHybridConnectivitySolutionTypeData(e)), HybridConnectivitySolutionTypeSolutionTypesClientDiagnostics, Pipeline, "MockableHybridConnectivitySubscriptionResource.GetHybridConnectivitySolutionTypes", "value", "nextLink", cancellationToken); } /// @@ -233,17 +233,17 @@ public virtual AsyncPageable GetSolutionTypeResourcesAsync /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetSolutionTypeResources(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetHybridConnectivitySolutionTypes(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => SolutionTypeResourceSolutionTypesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => SolutionTypeResourceSolutionTypesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SolutionTypeResource(Client, SolutionTypeResourceData.DeserializeSolutionTypeResourceData(e)), SolutionTypeResourceSolutionTypesClientDiagnostics, Pipeline, "MockableHybridConnectivitySubscriptionResource.GetSolutionTypeResources", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => HybridConnectivitySolutionTypeSolutionTypesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => HybridConnectivitySolutionTypeSolutionTypesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivitySolutionTypeResource(Client, HybridConnectivitySolutionTypeData.DeserializeHybridConnectivitySolutionTypeData(e)), HybridConnectivitySolutionTypeSolutionTypesClientDiagnostics, Pipeline, "MockableHybridConnectivitySubscriptionResource.GetHybridConnectivitySolutionTypes", "value", "nextLink", cancellationToken); } } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointCollection.cs similarity index 63% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointCollection.cs index 79704cdaa998e..611693c2f36c2 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointCollection.cs @@ -17,28 +17,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 GetEndpointResources 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 GetHybridConnectivityEndpoints method from an instance of . /// - public partial class EndpointResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class HybridConnectivityEndpointCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _endpointResourceEndpointsClientDiagnostics; - private readonly EndpointsRestOperations _endpointResourceEndpointsRestClient; + private readonly ClientDiagnostics _hybridConnectivityEndpointEndpointsClientDiagnostics; + private readonly EndpointsRestOperations _hybridConnectivityEndpointEndpointsRestClient; - /// Initializes a new instance of the class for mocking. - protected EndpointResourceCollection() + /// Initializes a new instance of the class for mocking. + protected HybridConnectivityEndpointCollection() { } - /// 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 EndpointResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal HybridConnectivityEndpointCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _endpointResourceEndpointsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", EndpointResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(EndpointResource.ResourceType, out string endpointResourceEndpointsApiVersion); - _endpointResourceEndpointsRestClient = new EndpointsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, endpointResourceEndpointsApiVersion); + _hybridConnectivityEndpointEndpointsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", HybridConnectivityEndpointResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(HybridConnectivityEndpointResource.ResourceType, out string hybridConnectivityEndpointEndpointsApiVersion); + _hybridConnectivityEndpointEndpointsRestClient = new EndpointsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivityEndpointEndpointsApiVersion); } /// @@ -58,7 +58,7 @@ internal EndpointResourceCollection(ArmClient client, ResourceIdentifier id) : b /// /// /// Resource - /// + /// /// /// /// @@ -67,19 +67,19 @@ internal EndpointResourceCollection(ArmClient client, ResourceIdentifier id) : b /// Endpoint details. /// The cancellation token to use. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string endpointName, EndpointResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string endpointName, HybridConnectivityEndpointData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResourceCollection.CreateOrUpdate"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _endpointResourceEndpointsRestClient.CreateOrUpdateAsync(Id, endpointName, data, cancellationToken).ConfigureAwait(false); - var uri = _endpointResourceEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id, endpointName, data); + var response = await _hybridConnectivityEndpointEndpointsRestClient.CreateOrUpdateAsync(Id, endpointName, data, cancellationToken).ConfigureAwait(false); + var uri = _hybridConnectivityEndpointEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id, endpointName, data); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new HybridConnectivityArmOperation(Response.FromValue(new EndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); + var operation = new HybridConnectivityArmOperation(Response.FromValue(new HybridConnectivityEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -108,7 +108,7 @@ public virtual async Task> CreateOrUpdateAsync(Wa /// /// /// Resource - /// + /// /// /// /// @@ -117,19 +117,19 @@ public virtual async Task> CreateOrUpdateAsync(Wa /// Endpoint details. /// The cancellation token to use. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string endpointName, EndpointResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string endpointName, HybridConnectivityEndpointData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResourceCollection.CreateOrUpdate"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointCollection.CreateOrUpdate"); scope.Start(); try { - var response = _endpointResourceEndpointsRestClient.CreateOrUpdate(Id, endpointName, data, cancellationToken); - var uri = _endpointResourceEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id, endpointName, data); + var response = _hybridConnectivityEndpointEndpointsRestClient.CreateOrUpdate(Id, endpointName, data, cancellationToken); + var uri = _hybridConnectivityEndpointEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id, endpointName, data); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new HybridConnectivityArmOperation(Response.FromValue(new EndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); + var operation = new HybridConnectivityArmOperation(Response.FromValue(new HybridConnectivityEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -158,25 +158,25 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil /// /// /// Resource - /// + /// /// /// /// /// The endpoint name. /// The cancellation token to use. /// is null. - public virtual async Task> GetAsync(string endpointName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string endpointName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResourceCollection.Get"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointCollection.Get"); scope.Start(); try { - var response = await _endpointResourceEndpointsRestClient.GetAsync(Id, endpointName, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityEndpointEndpointsRestClient.GetAsync(Id, endpointName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EndpointResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityEndpointResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -202,25 +202,25 @@ public virtual async Task> GetAsync(string endpointNa /// /// /// Resource - /// + /// /// /// /// /// The endpoint name. /// The cancellation token to use. /// is null. - public virtual Response Get(string endpointName, CancellationToken cancellationToken = default) + public virtual Response Get(string endpointName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResourceCollection.Get"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointCollection.Get"); scope.Start(); try { - var response = _endpointResourceEndpointsRestClient.Get(Id, endpointName, cancellationToken); + var response = _hybridConnectivityEndpointEndpointsRestClient.Get(Id, endpointName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EndpointResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityEndpointResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,17 +246,17 @@ public virtual Response Get(string endpointName, 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) => _endpointResourceEndpointsRestClient.CreateListRequest(Id); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _endpointResourceEndpointsRestClient.CreateListNextPageRequest(nextLink, Id); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new EndpointResource(Client, EndpointResourceData.DeserializeEndpointResourceData(e)), _endpointResourceEndpointsClientDiagnostics, Pipeline, "EndpointResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivityEndpointEndpointsRestClient.CreateListRequest(Id); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivityEndpointEndpointsRestClient.CreateListNextPageRequest(nextLink, Id); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivityEndpointResource(Client, HybridConnectivityEndpointData.DeserializeHybridConnectivityEndpointData(e)), _hybridConnectivityEndpointEndpointsClientDiagnostics, Pipeline, "HybridConnectivityEndpointCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -276,17 +276,17 @@ public virtual AsyncPageable GetAllAsync(CancellationToken can /// /// /// 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) => _endpointResourceEndpointsRestClient.CreateListRequest(Id); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _endpointResourceEndpointsRestClient.CreateListNextPageRequest(nextLink, Id); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new EndpointResource(Client, EndpointResourceData.DeserializeEndpointResourceData(e)), _endpointResourceEndpointsClientDiagnostics, Pipeline, "EndpointResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivityEndpointEndpointsRestClient.CreateListRequest(Id); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivityEndpointEndpointsRestClient.CreateListNextPageRequest(nextLink, Id); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivityEndpointResource(Client, HybridConnectivityEndpointData.DeserializeHybridConnectivityEndpointData(e)), _hybridConnectivityEndpointEndpointsClientDiagnostics, Pipeline, "HybridConnectivityEndpointCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -306,7 +306,7 @@ public virtual Pageable GetAll(CancellationToken cancellationT /// /// /// Resource - /// + /// /// /// /// @@ -317,11 +317,11 @@ public virtual async Task> ExistsAsync(string endpointName, Cance { Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResourceCollection.Exists"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointCollection.Exists"); scope.Start(); try { - var response = await _endpointResourceEndpointsRestClient.GetAsync(Id, endpointName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityEndpointEndpointsRestClient.GetAsync(Id, endpointName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -348,7 +348,7 @@ public virtual async Task> ExistsAsync(string endpointName, Cance /// /// /// Resource - /// + /// /// /// /// @@ -359,11 +359,11 @@ public virtual Response Exists(string endpointName, CancellationToken canc { Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResourceCollection.Exists"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointCollection.Exists"); scope.Start(); try { - var response = _endpointResourceEndpointsRestClient.Get(Id, endpointName, cancellationToken: cancellationToken); + var response = _hybridConnectivityEndpointEndpointsRestClient.Get(Id, endpointName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -390,25 +390,25 @@ public virtual Response Exists(string endpointName, CancellationToken canc /// /// /// Resource - /// + /// /// /// /// /// The endpoint name. /// The cancellation token to use. /// is null. - public virtual async Task> GetIfExistsAsync(string endpointName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string endpointName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResourceCollection.GetIfExists"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointCollection.GetIfExists"); scope.Start(); try { - var response = await _endpointResourceEndpointsRestClient.GetAsync(Id, endpointName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityEndpointEndpointsRestClient.GetAsync(Id, endpointName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new EndpointResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityEndpointResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -434,25 +434,25 @@ public virtual async Task> GetIfExistsAsync(s /// /// /// Resource - /// + /// /// /// /// /// The endpoint name. /// The cancellation token to use. /// is null. - public virtual NullableResponse GetIfExists(string endpointName, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string endpointName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResourceCollection.GetIfExists"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointCollection.GetIfExists"); scope.Start(); try { - var response = _endpointResourceEndpointsRestClient.Get(Id, endpointName, cancellationToken: cancellationToken); + var response = _hybridConnectivityEndpointEndpointsRestClient.Get(Id, endpointName, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new EndpointResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityEndpointResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -461,7 +461,7 @@ public virtual NullableResponse GetIfExists(string endpointNam } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -471,7 +471,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/EndpointResourceData.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointData.Serialization.cs similarity index 68% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceData.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointData.Serialization.cs index e5548e146f342..85385b155ee1d 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceData.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointData.Serialization.cs @@ -15,11 +15,11 @@ namespace Azure.ResourceManager.HybridConnectivity { - public partial class EndpointResourceData : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivityEndpointData : 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, ModelReaderWr /// 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(EndpointResourceData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityEndpointData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -44,19 +44,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - EndpointResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivityEndpointData 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(EndpointResourceData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityEndpointData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeEndpointResourceData(document.RootElement, options); + return DeserializeHybridConnectivityEndpointData(document.RootElement, options); } - internal static EndpointResourceData DeserializeEndpointResourceData(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivityEndpointData DeserializeHybridConnectivityEndpointData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -112,7 +112,7 @@ internal static EndpointResourceData DeserializeEndpointResourceData(JsonElement } } serializedAdditionalRawData = rawDataDictionary; - return new EndpointResourceData( + return new HybridConnectivityEndpointData( id, name, type, @@ -121,35 +121,35 @@ internal static EndpointResourceData DeserializeEndpointResourceData(JsonElement 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(EndpointResourceData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityEndpointData)} does not support writing '{options.Format}' format."); } } - EndpointResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivityEndpointData 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 DeserializeEndpointResourceData(document.RootElement, options); + return DeserializeHybridConnectivityEndpointData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(EndpointResourceData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityEndpointData)} 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/EndpointResourceData.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointData.cs similarity index 78% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceData.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointData.cs index 6ceb2070954dd..9c1494e10ef79 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceData.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointData.cs @@ -14,10 +14,10 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A class representing the EndpointResource data model. + /// A class representing the HybridConnectivityEndpoint data model. /// The endpoint for the target resource. /// - public partial class EndpointResourceData : ResourceData + public partial class HybridConnectivityEndpointData : ResourceData { /// /// Keeps track of any properties unknown to the library. @@ -51,19 +51,19 @@ public partial class EndpointResourceData : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public EndpointResourceData() + /// Initializes a new instance of . + public HybridConnectivityEndpointData() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The endpoint properties. /// Keeps track of any properties unknown to the library. - internal EndpointResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, HybridConnectivityEndpointProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal HybridConnectivityEndpointData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, HybridConnectivityEndpointProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointResource.Serialization.cs new file mode 100644 index 0000000000000..f57fab3820880 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointResource.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 HybridConnectivityEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + HybridConnectivityEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + HybridConnectivityEndpointData 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/EndpointResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointResource.cs similarity index 70% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResource.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointResource.cs index 63d3759860ada..a4c0caaa84d7a 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityEndpointResource.cs @@ -16,51 +16,51 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A Class representing an EndpointResource 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 GetEndpointResource method. - /// Otherwise you can get one from its parent resource using the GetEndpointResource method. + /// A Class representing a HybridConnectivityEndpoint 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 GetHybridConnectivityEndpointResource method. + /// Otherwise you can get one from its parent resource using the GetHybridConnectivityEndpoint method. /// - public partial class EndpointResource : ArmResource + public partial class HybridConnectivityEndpointResource : ArmResource { - /// Generate the resource identifier of a instance. - /// The scope. + /// Generate the resource identifier of a instance. + /// The resourceUri. /// The endpointName. - public static ResourceIdentifier CreateResourceIdentifier(string scope, string endpointName) + public static ResourceIdentifier CreateResourceIdentifier(string resourceUri, string endpointName) { - var resourceId = $"{scope}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}"; + var resourceId = $"{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _endpointResourceEndpointsClientDiagnostics; - private readonly EndpointsRestOperations _endpointResourceEndpointsRestClient; - private readonly EndpointResourceData _data; + private readonly ClientDiagnostics _hybridConnectivityEndpointEndpointsClientDiagnostics; + private readonly EndpointsRestOperations _hybridConnectivityEndpointEndpointsRestClient; + private readonly HybridConnectivityEndpointData _data; /// Gets the resource type for the operations. public static readonly ResourceType ResourceType = "Microsoft.HybridConnectivity/endpoints"; - /// Initializes a new instance of the class for mocking. - protected EndpointResource() + /// Initializes a new instance of the class for mocking. + protected HybridConnectivityEndpointResource() { } - /// 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 EndpointResource(ArmClient client, EndpointResourceData data) : this(client, data.Id) + internal HybridConnectivityEndpointResource(ArmClient client, HybridConnectivityEndpointData 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 EndpointResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal HybridConnectivityEndpointResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _endpointResourceEndpointsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string endpointResourceEndpointsApiVersion); - _endpointResourceEndpointsRestClient = new EndpointsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, endpointResourceEndpointsApiVersion); + _hybridConnectivityEndpointEndpointsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string hybridConnectivityEndpointEndpointsApiVersion); + _hybridConnectivityEndpointEndpointsRestClient = new EndpointsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivityEndpointEndpointsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal EndpointResource(ArmClient client, ResourceIdentifier id) : base(client /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual EndpointResourceData Data + public virtual HybridConnectivityEndpointData Data { get { @@ -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 ServiceConfigurationResources in the EndpointResource. - /// An object representing collection of ServiceConfigurationResources and their operations over a ServiceConfigurationResource. - public virtual ServiceConfigurationResourceCollection GetServiceConfigurationResources() + /// Gets a collection of HybridConnectivityServiceConfigurationResources in the HybridConnectivityEndpoint. + /// An object representing collection of HybridConnectivityServiceConfigurationResources and their operations over a HybridConnectivityServiceConfigurationResource. + public virtual HybridConnectivityServiceConfigurationCollection GetHybridConnectivityServiceConfigurations() { - return GetCachedClient(client => new ServiceConfigurationResourceCollection(client, Id)); + return GetCachedClient(client => new HybridConnectivityServiceConfigurationCollection(client, Id)); } /// @@ -111,7 +111,7 @@ public virtual ServiceConfigurationResourceCollection GetServiceConfigurationRes /// /// /// Resource - /// + /// /// /// /// @@ -119,9 +119,9 @@ public virtual ServiceConfigurationResourceCollection GetServiceConfigurationRes /// The cancellation token to use. /// is null. [ForwardsClientCalls] - public virtual async Task> GetServiceConfigurationResourceAsync(string serviceConfigurationName, CancellationToken cancellationToken = default) + public virtual async Task> GetHybridConnectivityServiceConfigurationAsync(string serviceConfigurationName, CancellationToken cancellationToken = default) { - return await GetServiceConfigurationResources().GetAsync(serviceConfigurationName, cancellationToken).ConfigureAwait(false); + return await GetHybridConnectivityServiceConfigurations().GetAsync(serviceConfigurationName, cancellationToken).ConfigureAwait(false); } /// @@ -141,7 +141,7 @@ public virtual async Task> GetServiceConf /// /// /// Resource - /// + /// /// /// /// @@ -149,9 +149,9 @@ public virtual async Task> GetServiceConf /// The cancellation token to use. /// is null. [ForwardsClientCalls] - public virtual Response GetServiceConfigurationResource(string serviceConfigurationName, CancellationToken cancellationToken = default) + public virtual Response GetHybridConnectivityServiceConfiguration(string serviceConfigurationName, CancellationToken cancellationToken = default) { - return GetServiceConfigurationResources().Get(serviceConfigurationName, cancellationToken); + return GetHybridConnectivityServiceConfigurations().Get(serviceConfigurationName, cancellationToken); } /// @@ -171,21 +171,21 @@ public virtual Response GetServiceConfigurationRes /// /// /// 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 = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.Get"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointResource.Get"); scope.Start(); try { - var response = await _endpointResourceEndpointsRestClient.GetAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityEndpointEndpointsRestClient.GetAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EndpointResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityEndpointResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -211,21 +211,21 @@ public virtual async Task> GetAsync(CancellationToken /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.Get"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointResource.Get"); scope.Start(); try { - var response = _endpointResourceEndpointsRestClient.Get(Id.Parent, Id.Name, cancellationToken); + var response = _hybridConnectivityEndpointEndpointsRestClient.Get(Id.Parent, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EndpointResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityEndpointResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -251,7 +251,7 @@ public virtual Response Get(CancellationToken cancellationToke /// /// /// Resource - /// + /// /// /// /// @@ -259,12 +259,12 @@ public virtual Response Get(CancellationToken cancellationToke /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.Delete"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointResource.Delete"); scope.Start(); try { - var response = await _endpointResourceEndpointsRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var uri = _endpointResourceEndpointsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var response = await _hybridConnectivityEndpointEndpointsRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); + var uri = _hybridConnectivityEndpointEndpointsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new HybridConnectivityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -295,7 +295,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Resource - /// + /// /// /// /// @@ -303,12 +303,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.Delete"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointResource.Delete"); scope.Start(); try { - var response = _endpointResourceEndpointsRestClient.Delete(Id.Parent, Id.Name, cancellationToken); - var uri = _endpointResourceEndpointsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var response = _hybridConnectivityEndpointEndpointsRestClient.Delete(Id.Parent, Id.Name, cancellationToken); + var uri = _hybridConnectivityEndpointEndpointsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new HybridConnectivityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -339,23 +339,23 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Resource - /// + /// /// /// /// /// Endpoint details. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(EndpointResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(HybridConnectivityEndpointData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.Update"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointResource.Update"); scope.Start(); try { - var response = await _endpointResourceEndpointsRestClient.UpdateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new EndpointResource(Client, response.Value), response.GetRawResponse()); + var response = await _hybridConnectivityEndpointEndpointsRestClient.UpdateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new HybridConnectivityEndpointResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -381,23 +381,23 @@ public virtual async Task> UpdateAsync(EndpointResour /// /// /// Resource - /// + /// /// /// /// /// Endpoint details. /// The cancellation token to use. /// is null. - public virtual Response Update(EndpointResourceData data, CancellationToken cancellationToken = default) + public virtual Response Update(HybridConnectivityEndpointData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.Update"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointResource.Update"); scope.Start(); try { - var response = _endpointResourceEndpointsRestClient.Update(Id.Parent, Id.Name, data, cancellationToken); - return Response.FromValue(new EndpointResource(Client, response.Value), response.GetRawResponse()); + var response = _hybridConnectivityEndpointEndpointsRestClient.Update(Id.Parent, Id.Name, data, cancellationToken); + return Response.FromValue(new HybridConnectivityEndpointResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -423,7 +423,7 @@ public virtual Response Update(EndpointResourceData data, Canc /// /// /// Resource - /// + /// /// /// /// @@ -432,11 +432,11 @@ public virtual Response Update(EndpointResourceData data, Canc /// The cancellation token to use. public virtual async Task> GetCredentialsAsync(ListCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default) { - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.GetCredentials"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointResource.GetCredentials"); scope.Start(); try { - var response = await _endpointResourceEndpointsRestClient.ListCredentialsAsync(Id.Parent, Id.Name, content, expiresin, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityEndpointEndpointsRestClient.ListCredentialsAsync(Id.Parent, Id.Name, content, expiresin, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -463,7 +463,7 @@ public virtual async Task> GetCredentials /// /// /// Resource - /// + /// /// /// /// @@ -472,11 +472,11 @@ public virtual async Task> GetCredentials /// The cancellation token to use. public virtual Response GetCredentials(ListCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default) { - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.GetCredentials"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointResource.GetCredentials"); scope.Start(); try { - var response = _endpointResourceEndpointsRestClient.ListCredentials(Id.Parent, Id.Name, content, expiresin, cancellationToken); + var response = _hybridConnectivityEndpointEndpointsRestClient.ListCredentials(Id.Parent, Id.Name, content, expiresin, cancellationToken); return response; } catch (Exception e) @@ -503,7 +503,7 @@ public virtual Response GetCredentials(ListCredent /// /// /// Resource - /// + /// /// /// /// @@ -512,11 +512,11 @@ public virtual Response GetCredentials(ListCredent /// The cancellation token to use. public virtual async Task> GetIngressGatewayCredentialsAsync(ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default) { - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.GetIngressGatewayCredentials"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointResource.GetIngressGatewayCredentials"); scope.Start(); try { - var response = await _endpointResourceEndpointsRestClient.ListIngressGatewayCredentialsAsync(Id.Parent, Id.Name, content, expiresin, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityEndpointEndpointsRestClient.ListIngressGatewayCredentialsAsync(Id.Parent, Id.Name, content, expiresin, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -543,7 +543,7 @@ public virtual async Task> GetIngressGatewayCreden /// /// /// Resource - /// + /// /// /// /// @@ -552,11 +552,11 @@ public virtual async Task> GetIngressGatewayCreden /// The cancellation token to use. public virtual Response GetIngressGatewayCredentials(ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default) { - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.GetIngressGatewayCredentials"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointResource.GetIngressGatewayCredentials"); scope.Start(); try { - var response = _endpointResourceEndpointsRestClient.ListIngressGatewayCredentials(Id.Parent, Id.Name, content, expiresin, cancellationToken); + var response = _hybridConnectivityEndpointEndpointsRestClient.ListIngressGatewayCredentials(Id.Parent, Id.Name, content, expiresin, cancellationToken); return response; } catch (Exception e) @@ -583,7 +583,7 @@ public virtual Response GetIngressGatewayCredentials(ListIn /// /// /// Resource - /// + /// /// /// /// @@ -594,11 +594,11 @@ public virtual async Task> GetManagedProxyDetailsAsy { Argument.AssertNotNull(content, nameof(content)); - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.GetManagedProxyDetails"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointResource.GetManagedProxyDetails"); scope.Start(); try { - var response = await _endpointResourceEndpointsRestClient.ListManagedProxyDetailsAsync(Id.Parent, Id.Name, content, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityEndpointEndpointsRestClient.ListManagedProxyDetailsAsync(Id.Parent, Id.Name, content, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -625,7 +625,7 @@ public virtual async Task> GetManagedProxyDetailsAsy /// /// /// Resource - /// + /// /// /// /// @@ -636,11 +636,11 @@ public virtual Response GetManagedProxyDetails(ManagedProxyCo { Argument.AssertNotNull(content, nameof(content)); - using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.GetManagedProxyDetails"); + using var scope = _hybridConnectivityEndpointEndpointsClientDiagnostics.CreateScope("HybridConnectivityEndpointResource.GetManagedProxyDetails"); scope.Start(); try { - var response = _endpointResourceEndpointsRestClient.ListManagedProxyDetails(Id.Parent, Id.Name, content, cancellationToken); + var response = _hybridConnectivityEndpointEndpointsRestClient.ListManagedProxyDetails(Id.Parent, Id.Name, content, cancellationToken); return response; } catch (Exception e) diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryCollection.cs similarity index 78% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryCollection.cs index 0e814cd53fc37..22a1c5122b9ca 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryCollection.cs @@ -19,27 +19,27 @@ 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 a instance call the GetHybridConnectivityInventoryResources method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetHybridConnectivityInventories method from an instance of . /// - public partial class HybridConnectivityInventoryResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class HybridConnectivityInventoryCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _hybridConnectivityInventoryResourceInventoryClientDiagnostics; - private readonly InventoryRestOperations _hybridConnectivityInventoryResourceInventoryRestClient; + private readonly ClientDiagnostics _hybridConnectivityInventoryInventoryClientDiagnostics; + private readonly InventoryRestOperations _hybridConnectivityInventoryInventoryRestClient; - /// Initializes a new instance of the class for mocking. - protected HybridConnectivityInventoryResourceCollection() + /// Initializes a new instance of the class for mocking. + protected HybridConnectivityInventoryCollection() { } - /// 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 HybridConnectivityInventoryResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal HybridConnectivityInventoryCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _hybridConnectivityInventoryResourceInventoryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", HybridConnectivityInventoryResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(HybridConnectivityInventoryResource.ResourceType, out string hybridConnectivityInventoryResourceInventoryApiVersion); - _hybridConnectivityInventoryResourceInventoryRestClient = new InventoryRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivityInventoryResourceInventoryApiVersion); + _hybridConnectivityInventoryInventoryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", HybridConnectivityInventoryResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(HybridConnectivityInventoryResource.ResourceType, out string hybridConnectivityInventoryInventoryApiVersion); + _hybridConnectivityInventoryInventoryRestClient = new InventoryRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivityInventoryInventoryApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -47,8 +47,8 @@ internal HybridConnectivityInventoryResourceCollection(ArmClient client, Resourc internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != SolutionConfigurationResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, SolutionConfigurationResource.ResourceType), nameof(id)); + if (id.ResourceType != HybridConnectivitySolutionConfigurationResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, HybridConnectivitySolutionConfigurationResource.ResourceType), nameof(id)); } /// @@ -80,11 +80,11 @@ public virtual async Task> GetAsyn { Argument.AssertNotNullOrEmpty(inventoryId, nameof(inventoryId)); - using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResourceCollection.Get"); + using var scope = _hybridConnectivityInventoryInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryCollection.Get"); scope.Start(); try { - var response = await _hybridConnectivityInventoryResourceInventoryRestClient.GetAsync(Id.Parent, Id.Name, inventoryId, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityInventoryInventoryRestClient.GetAsync(Id.Parent, Id.Name, inventoryId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new HybridConnectivityInventoryResource(Client, response.Value), response.GetRawResponse()); @@ -125,11 +125,11 @@ public virtual Response Get(string inventor { Argument.AssertNotNullOrEmpty(inventoryId, nameof(inventoryId)); - using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResourceCollection.Get"); + using var scope = _hybridConnectivityInventoryInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryCollection.Get"); scope.Start(); try { - var response = _hybridConnectivityInventoryResourceInventoryRestClient.Get(Id.Parent, Id.Name, inventoryId, cancellationToken); + var response = _hybridConnectivityInventoryInventoryRestClient.Get(Id.Parent, Id.Name, inventoryId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new HybridConnectivityInventoryResource(Client, response.Value), response.GetRawResponse()); @@ -166,9 +166,9 @@ public virtual Response Get(string inventor /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - 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); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivityInventoryInventoryRestClient.CreateListBySolutionConfigurationRequest(Id.Parent, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivityInventoryInventoryRestClient.CreateListBySolutionConfigurationNextPageRequest(nextLink, Id.Parent, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivityInventoryResource(Client, HybridConnectivityInventoryData.DeserializeHybridConnectivityInventoryData(e)), _hybridConnectivityInventoryInventoryClientDiagnostics, Pipeline, "HybridConnectivityInventoryCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -196,9 +196,9 @@ public virtual AsyncPageable GetAllAsync(Ca /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - 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); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivityInventoryInventoryRestClient.CreateListBySolutionConfigurationRequest(Id.Parent, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivityInventoryInventoryRestClient.CreateListBySolutionConfigurationNextPageRequest(nextLink, Id.Parent, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivityInventoryResource(Client, HybridConnectivityInventoryData.DeserializeHybridConnectivityInventoryData(e)), _hybridConnectivityInventoryInventoryClientDiagnostics, Pipeline, "HybridConnectivityInventoryCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -230,11 +230,11 @@ public virtual async Task> ExistsAsync(string inventoryId, Cancel { Argument.AssertNotNullOrEmpty(inventoryId, nameof(inventoryId)); - using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResourceCollection.Exists"); + using var scope = _hybridConnectivityInventoryInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryCollection.Exists"); scope.Start(); try { - var response = await _hybridConnectivityInventoryResourceInventoryRestClient.GetAsync(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityInventoryInventoryRestClient.GetAsync(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -273,11 +273,11 @@ public virtual Response Exists(string inventoryId, CancellationToken cance { Argument.AssertNotNullOrEmpty(inventoryId, nameof(inventoryId)); - using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResourceCollection.Exists"); + using var scope = _hybridConnectivityInventoryInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryCollection.Exists"); scope.Start(); try { - var response = _hybridConnectivityInventoryResourceInventoryRestClient.Get(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken); + var response = _hybridConnectivityInventoryInventoryRestClient.Get(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,11 +316,11 @@ public virtual async Task> { Argument.AssertNotNullOrEmpty(inventoryId, nameof(inventoryId)); - using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResourceCollection.GetIfExists"); + using var scope = _hybridConnectivityInventoryInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryCollection.GetIfExists"); scope.Start(); try { - var response = await _hybridConnectivityInventoryResourceInventoryRestClient.GetAsync(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityInventoryInventoryRestClient.GetAsync(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new HybridConnectivityInventoryResource(Client, response.Value), response.GetRawResponse()); @@ -361,11 +361,11 @@ public virtual NullableResponse GetIfExists { Argument.AssertNotNullOrEmpty(inventoryId, nameof(inventoryId)); - using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResourceCollection.GetIfExists"); + using var scope = _hybridConnectivityInventoryInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryCollection.GetIfExists"); scope.Start(); try { - var response = _hybridConnectivityInventoryResourceInventoryRestClient.Get(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken); + var response = _hybridConnectivityInventoryInventoryRestClient.Get(Id.Parent, Id.Name, inventoryId, cancellationToken: cancellationToken); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new HybridConnectivityInventoryResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceData.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryData.Serialization.cs similarity index 70% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceData.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryData.Serialization.cs index 6daa93428bd8a..cbe684a9c2d92 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceData.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryData.Serialization.cs @@ -15,11 +15,11 @@ namespace Azure.ResourceManager.HybridConnectivity { - public partial class HybridConnectivityInventoryResourceData : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivityInventoryData : 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 wr /// 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(HybridConnectivityInventoryResourceData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityInventoryData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -44,19 +44,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - HybridConnectivityInventoryResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivityInventoryData 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(HybridConnectivityInventoryResourceData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityInventoryData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeHybridConnectivityInventoryResourceData(document.RootElement, options); + return DeserializeHybridConnectivityInventoryData(document.RootElement, options); } - internal static HybridConnectivityInventoryResourceData DeserializeHybridConnectivityInventoryResourceData(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivityInventoryData DeserializeHybridConnectivityInventoryData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -112,7 +112,7 @@ internal static HybridConnectivityInventoryResourceData DeserializeHybridConnect } } serializedAdditionalRawData = rawDataDictionary; - return new HybridConnectivityInventoryResourceData( + return new HybridConnectivityInventoryData( id, name, type, @@ -121,35 +121,35 @@ internal static HybridConnectivityInventoryResourceData DeserializeHybridConnect 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(HybridConnectivityInventoryResourceData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityInventoryData)} does not support writing '{options.Format}' format."); } } - HybridConnectivityInventoryResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivityInventoryData 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 DeserializeHybridConnectivityInventoryResourceData(document.RootElement, options); + return DeserializeHybridConnectivityInventoryData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(HybridConnectivityInventoryResourceData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityInventoryData)} 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/HybridConnectivityInventoryResourceData.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryData.cs similarity index 81% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceData.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryData.cs index 9f462a08eed1d..9cb9150fc748f 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResourceData.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryData.cs @@ -14,10 +14,10 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A class representing the HybridConnectivityInventoryResource data model. + /// A class representing the HybridConnectivityInventory data model. /// Concrete proxy resource types can be created by aliasing this type using a specific property type. /// - public partial class HybridConnectivityInventoryResourceData : ResourceData + public partial class HybridConnectivityInventoryData : ResourceData { /// /// Keeps track of any properties unknown to the library. @@ -51,19 +51,19 @@ public partial class HybridConnectivityInventoryResourceData : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public HybridConnectivityInventoryResourceData() + /// Initializes a new instance of . + public HybridConnectivityInventoryData() { } - /// 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 HybridConnectivityInventoryResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, HybridConnectivityInventoryProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal HybridConnectivityInventoryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, HybridConnectivityInventoryProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.Serialization.cs index 3a5740a26a375..96bf61102e182 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.Serialization.cs @@ -11,16 +11,16 @@ namespace Azure.ResourceManager.HybridConnectivity { - public partial class HybridConnectivityInventoryResource : IJsonModel + public partial class HybridConnectivityInventoryResource : IJsonModel { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + 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); + HybridConnectivityInventoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); - HybridConnectivityInventoryResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + HybridConnectivityInventoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.cs index a03a3cd2957f2..d3f6d2213c49f 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityInventoryResource.cs @@ -15,10 +15,10 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A Class representing a HybridConnectivityInventoryResource along with the instance operations that can be performed on it. + /// A Class representing a HybridConnectivityInventory 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. + /// Otherwise you can get one from its parent resource using the GetHybridConnectivityInventory method. /// public partial class HybridConnectivityInventoryResource : ArmResource { @@ -32,9 +32,9 @@ public static ResourceIdentifier CreateResourceIdentifier(string resourceUri, st return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _hybridConnectivityInventoryResourceInventoryClientDiagnostics; - private readonly InventoryRestOperations _hybridConnectivityInventoryResourceInventoryRestClient; - private readonly HybridConnectivityInventoryResourceData _data; + private readonly ClientDiagnostics _hybridConnectivityInventoryInventoryClientDiagnostics; + private readonly InventoryRestOperations _hybridConnectivityInventoryInventoryRestClient; + private readonly HybridConnectivityInventoryData _data; /// Gets the resource type for the operations. public static readonly ResourceType ResourceType = "Microsoft.HybridConnectivity/solutionConfigurations/inventory"; @@ -47,7 +47,7 @@ protected HybridConnectivityInventoryResource() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal HybridConnectivityInventoryResource(ArmClient client, HybridConnectivityInventoryResourceData data) : this(client, data.Id) + internal HybridConnectivityInventoryResource(ArmClient client, HybridConnectivityInventoryData data) : this(client, data.Id) { HasData = true; _data = data; @@ -58,9 +58,9 @@ internal HybridConnectivityInventoryResource(ArmClient client, HybridConnectivit /// The identifier of the resource that is the target of operations. internal HybridConnectivityInventoryResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _hybridConnectivityInventoryResourceInventoryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string hybridConnectivityInventoryResourceInventoryApiVersion); - _hybridConnectivityInventoryResourceInventoryRestClient = new InventoryRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivityInventoryResourceInventoryApiVersion); + _hybridConnectivityInventoryInventoryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string hybridConnectivityInventoryInventoryApiVersion); + _hybridConnectivityInventoryInventoryRestClient = new InventoryRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivityInventoryInventoryApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal HybridConnectivityInventoryResource(ArmClient client, ResourceIdentifie /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual HybridConnectivityInventoryResourceData Data + public virtual HybridConnectivityInventoryData Data { get { @@ -111,11 +111,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResource.Get"); + using var scope = _hybridConnectivityInventoryInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResource.Get"); scope.Start(); try { - var response = await _hybridConnectivityInventoryResourceInventoryRestClient.GetAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityInventoryInventoryRestClient.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 HybridConnectivityInventoryResource(Client, response.Value), response.GetRawResponse()); @@ -151,11 +151,11 @@ public virtual async Task> GetAsyn /// The cancellation token to use. public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _hybridConnectivityInventoryResourceInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResource.Get"); + using var scope = _hybridConnectivityInventoryInventoryClientDiagnostics.CreateScope("HybridConnectivityInventoryResource.Get"); scope.Start(); try { - var response = _hybridConnectivityInventoryResourceInventoryRestClient.Get(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken); + var response = _hybridConnectivityInventoryInventoryRestClient.Get(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new HybridConnectivityInventoryResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/PublicCloudConnectorCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorCollection.cs similarity index 61% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/PublicCloudConnectorCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorCollection.cs index 847fc0c425a84..1cf07bd60f040 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/PublicCloudConnectorCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorCollection.cs @@ -19,28 +19,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 a instance call the GetPublicCloudConnectors 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 GetHybridConnectivityPublicCloudConnectors method from an instance of . /// - public partial class PublicCloudConnectorCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class HybridConnectivityPublicCloudConnectorCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _publicCloudConnectorClientDiagnostics; - private readonly PublicCloudConnectorsRestOperations _publicCloudConnectorRestClient; + private readonly ClientDiagnostics _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics; + private readonly PublicCloudConnectorsRestOperations _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient; - /// Initializes a new instance of the class for mocking. - protected PublicCloudConnectorCollection() + /// Initializes a new instance of the class for mocking. + protected HybridConnectivityPublicCloudConnectorCollection() { } - /// 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 PublicCloudConnectorCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal HybridConnectivityPublicCloudConnectorCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _publicCloudConnectorClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", PublicCloudConnectorResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(PublicCloudConnectorResource.ResourceType, out string publicCloudConnectorApiVersion); - _publicCloudConnectorRestClient = new PublicCloudConnectorsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, publicCloudConnectorApiVersion); + _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", HybridConnectivityPublicCloudConnectorResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(HybridConnectivityPublicCloudConnectorResource.ResourceType, out string hybridConnectivityPublicCloudConnectorPublicCloudConnectorsApiVersion); + _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient = new PublicCloudConnectorsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivityPublicCloudConnectorPublicCloudConnectorsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -69,7 +69,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Resource - /// + /// /// /// /// @@ -79,17 +79,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string publicCloudConnector, PublicCloudConnectorData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string publicCloudConnector, HybridConnectivityPublicCloudConnectorData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(publicCloudConnector, nameof(publicCloudConnector)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorCollection.CreateOrUpdate"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _publicCloudConnectorRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, data, cancellationToken).ConfigureAwait(false); - var operation = new HybridConnectivityArmOperation(new PublicCloudConnectorOperationSource(Client), _publicCloudConnectorClientDiagnostics, Pipeline, _publicCloudConnectorRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + var response = await _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, data, cancellationToken).ConfigureAwait(false); + var operation = new HybridConnectivityArmOperation(new HybridConnectivityPublicCloudConnectorOperationSource(Client), _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics, Pipeline, _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -118,7 +118,7 @@ public virtual async Task> CreateOrUp /// /// /// Resource - /// + /// /// /// /// @@ -128,17 +128,17 @@ public virtual async Task> CreateOrUp /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string publicCloudConnector, PublicCloudConnectorData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string publicCloudConnector, HybridConnectivityPublicCloudConnectorData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(publicCloudConnector, nameof(publicCloudConnector)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorCollection.CreateOrUpdate"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorCollection.CreateOrUpdate"); scope.Start(); try { - var response = _publicCloudConnectorRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, data, cancellationToken); - var operation = new HybridConnectivityArmOperation(new PublicCloudConnectorOperationSource(Client), _publicCloudConnectorClientDiagnostics, Pipeline, _publicCloudConnectorRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + var response = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, data, cancellationToken); + var operation = new HybridConnectivityArmOperation(new HybridConnectivityPublicCloudConnectorOperationSource(Client), _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics, Pipeline, _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Resource - /// + /// /// /// /// @@ -175,18 +175,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string publicCloudConnector, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string publicCloudConnector, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(publicCloudConnector, nameof(publicCloudConnector)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorCollection.Get"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorCollection.Get"); scope.Start(); try { - var response = await _publicCloudConnectorRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new PublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityPublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(strin /// /// /// Resource - /// + /// /// /// /// @@ -220,18 +220,18 @@ public virtual async Task> GetAsync(strin /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string publicCloudConnector, CancellationToken cancellationToken = default) + public virtual Response Get(string publicCloudConnector, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(publicCloudConnector, nameof(publicCloudConnector)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorCollection.Get"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorCollection.Get"); scope.Start(); try { - var response = _publicCloudConnectorRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, cancellationToken); + var response = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new PublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityPublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -257,17 +257,17 @@ public virtual Response Get(string publicCloudConn /// /// /// 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) => _publicCloudConnectorRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _publicCloudConnectorRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new PublicCloudConnectorResource(Client, PublicCloudConnectorData.DeserializePublicCloudConnectorData(e)), _publicCloudConnectorClientDiagnostics, Pipeline, "PublicCloudConnectorCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivityPublicCloudConnectorResource(Client, HybridConnectivityPublicCloudConnectorData.DeserializeHybridConnectivityPublicCloudConnectorData(e)), _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics, Pipeline, "HybridConnectivityPublicCloudConnectorCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -287,17 +287,17 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// 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) => _publicCloudConnectorRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _publicCloudConnectorRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new PublicCloudConnectorResource(Client, PublicCloudConnectorData.DeserializePublicCloudConnectorData(e)), _publicCloudConnectorClientDiagnostics, Pipeline, "PublicCloudConnectorCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivityPublicCloudConnectorResource(Client, HybridConnectivityPublicCloudConnectorData.DeserializeHybridConnectivityPublicCloudConnectorData(e)), _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics, Pipeline, "HybridConnectivityPublicCloudConnectorCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Resource - /// + /// /// /// /// @@ -329,11 +329,11 @@ public virtual async Task> ExistsAsync(string publicCloudConnecto { Argument.AssertNotNullOrEmpty(publicCloudConnector, nameof(publicCloudConnector)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorCollection.Exists"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorCollection.Exists"); scope.Start(); try { - var response = await _publicCloudConnectorRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string publicCloudConnecto /// /// /// Resource - /// + /// /// /// /// @@ -372,11 +372,11 @@ public virtual Response Exists(string publicCloudConnector, CancellationTo { Argument.AssertNotNullOrEmpty(publicCloudConnector, nameof(publicCloudConnector)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorCollection.Exists"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorCollection.Exists"); scope.Start(); try { - var response = _publicCloudConnectorRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, cancellationToken: cancellationToken); + var response = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -403,7 +403,7 @@ public virtual Response Exists(string publicCloudConnector, CancellationTo /// /// /// Resource - /// + /// /// /// /// @@ -411,18 +411,18 @@ public virtual Response Exists(string publicCloudConnector, CancellationTo /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string publicCloudConnector, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string publicCloudConnector, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(publicCloudConnector, nameof(publicCloudConnector)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorCollection.GetIfExists"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorCollection.GetIfExists"); scope.Start(); try { - var response = await _publicCloudConnectorRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new PublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityPublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -448,7 +448,7 @@ public virtual async Task> GetIfE /// /// /// Resource - /// + /// /// /// /// @@ -456,18 +456,18 @@ public virtual async Task> GetIfE /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string publicCloudConnector, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string publicCloudConnector, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(publicCloudConnector, nameof(publicCloudConnector)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorCollection.GetIfExists"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorCollection.GetIfExists"); scope.Start(); try { - var response = _publicCloudConnectorRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, cancellationToken: cancellationToken); + var response = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, publicCloudConnector, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new PublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityPublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -476,7 +476,7 @@ public virtual NullableResponse GetIfExists(string } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -486,7 +486,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/PublicCloudConnectorData.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorData.Serialization.cs similarity index 70% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/PublicCloudConnectorData.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorData.Serialization.cs index 75c7a2b7dad68..0425acd585a90 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/PublicCloudConnectorData.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorData.Serialization.cs @@ -15,11 +15,11 @@ namespace Azure.ResourceManager.HybridConnectivity { - public partial class PublicCloudConnectorData : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivityPublicCloudConnectorData : 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, ModelRead /// 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(PublicCloudConnectorData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityPublicCloudConnectorData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -44,19 +44,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - PublicCloudConnectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivityPublicCloudConnectorData 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(PublicCloudConnectorData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityPublicCloudConnectorData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializePublicCloudConnectorData(document.RootElement, options); + return DeserializeHybridConnectivityPublicCloudConnectorData(document.RootElement, options); } - internal static PublicCloudConnectorData DeserializePublicCloudConnectorData(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivityPublicCloudConnectorData DeserializeHybridConnectivityPublicCloudConnectorData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -133,7 +133,7 @@ internal static PublicCloudConnectorData DeserializePublicCloudConnectorData(Jso } } serializedAdditionalRawData = rawDataDictionary; - return new PublicCloudConnectorData( + return new HybridConnectivityPublicCloudConnectorData( id, name, type, @@ -144,35 +144,35 @@ internal static PublicCloudConnectorData DeserializePublicCloudConnectorData(Jso 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(PublicCloudConnectorData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityPublicCloudConnectorData)} does not support writing '{options.Format}' format."); } } - PublicCloudConnectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivityPublicCloudConnectorData 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 DeserializePublicCloudConnectorData(document.RootElement, options); + return DeserializeHybridConnectivityPublicCloudConnectorData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(PublicCloudConnectorData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityPublicCloudConnectorData)} 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/PublicCloudConnectorData.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorData.cs similarity index 71% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/PublicCloudConnectorData.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorData.cs index 81a1e382548ed..1f322a57f6a0d 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/PublicCloudConnectorData.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorData.cs @@ -14,10 +14,10 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A class representing the PublicCloudConnector data model. + /// A class representing the HybridConnectivityPublicCloudConnector data model. /// Public Cloud Connector /// - public partial class PublicCloudConnectorData : TrackedResourceData + public partial class HybridConnectivityPublicCloudConnectorData : TrackedResourceData { /// /// Keeps track of any properties unknown to the library. @@ -51,13 +51,13 @@ public partial class PublicCloudConnectorData : TrackedResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The location. - public PublicCloudConnectorData(AzureLocation location) : base(location) + public HybridConnectivityPublicCloudConnectorData(AzureLocation location) : base(location) { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. @@ -66,14 +66,14 @@ public PublicCloudConnectorData(AzureLocation location) : base(location) /// The location. /// The resource-specific properties for this resource. /// Keeps track of any properties unknown to the library. - internal PublicCloudConnectorData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, PublicCloudConnectorProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal HybridConnectivityPublicCloudConnectorData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, PublicCloudConnectorProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal PublicCloudConnectorData() + /// Initializes a new instance of for deserialization. + internal HybridConnectivityPublicCloudConnectorData() { } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorResource.Serialization.cs new file mode 100644 index 0000000000000..58ab75e645bc2 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorResource.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 HybridConnectivityPublicCloudConnectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + HybridConnectivityPublicCloudConnectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + HybridConnectivityPublicCloudConnectorData 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/PublicCloudConnectorResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorResource.cs similarity index 68% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/PublicCloudConnectorResource.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorResource.cs index 909bac2b9f245..569ea86c2e023 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/PublicCloudConnectorResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityPublicCloudConnectorResource.cs @@ -18,14 +18,14 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A Class representing a PublicCloudConnector 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 GetPublicCloudConnectorResource method. - /// Otherwise you can get one from its parent resource using the GetPublicCloudConnector method. + /// A Class representing a HybridConnectivityPublicCloudConnector 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 GetHybridConnectivityPublicCloudConnectorResource method. + /// Otherwise you can get one from its parent resource using the GetHybridConnectivityPublicCloudConnector method. /// - public partial class PublicCloudConnectorResource : ArmResource + public partial class HybridConnectivityPublicCloudConnectorResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. /// The subscriptionId. /// The resourceGroupName. /// The publicCloudConnector. @@ -35,35 +35,35 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _publicCloudConnectorClientDiagnostics; - private readonly PublicCloudConnectorsRestOperations _publicCloudConnectorRestClient; - private readonly PublicCloudConnectorData _data; + private readonly ClientDiagnostics _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics; + private readonly PublicCloudConnectorsRestOperations _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient; + private readonly HybridConnectivityPublicCloudConnectorData _data; /// Gets the resource type for the operations. public static readonly ResourceType ResourceType = "Microsoft.HybridConnectivity/publicCloudConnectors"; - /// Initializes a new instance of the class for mocking. - protected PublicCloudConnectorResource() + /// Initializes a new instance of the class for mocking. + protected HybridConnectivityPublicCloudConnectorResource() { } - /// 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 PublicCloudConnectorResource(ArmClient client, PublicCloudConnectorData data) : this(client, data.Id) + internal HybridConnectivityPublicCloudConnectorResource(ArmClient client, HybridConnectivityPublicCloudConnectorData 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 PublicCloudConnectorResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal HybridConnectivityPublicCloudConnectorResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _publicCloudConnectorClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string publicCloudConnectorApiVersion); - _publicCloudConnectorRestClient = new PublicCloudConnectorsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, publicCloudConnectorApiVersion); + _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string hybridConnectivityPublicCloudConnectorPublicCloudConnectorsApiVersion); + _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient = new PublicCloudConnectorsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivityPublicCloudConnectorPublicCloudConnectorsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -74,7 +74,7 @@ internal PublicCloudConnectorResource(ArmClient client, ResourceIdentifier id) : /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual PublicCloudConnectorData Data + public virtual HybridConnectivityPublicCloudConnectorData Data { get { @@ -107,21 +107,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 = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.Get"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.Get"); scope.Start(); try { - var response = await _publicCloudConnectorRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new PublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityPublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -147,21 +147,21 @@ public virtual async Task> GetAsync(Cance /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.Get"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.Get"); scope.Start(); try { - var response = _publicCloudConnectorRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var response = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new PublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityPublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -187,7 +187,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Resource - /// + /// /// /// /// @@ -195,12 +195,12 @@ public virtual Response Get(CancellationToken canc /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.Delete"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.Delete"); scope.Start(); try { - var response = await _publicCloudConnectorRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var uri = _publicCloudConnectorRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var response = await _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var uri = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new HybridConnectivityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -231,7 +231,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Resource - /// + /// /// /// /// @@ -239,12 +239,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.Delete"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.Delete"); scope.Start(); try { - var response = _publicCloudConnectorRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var uri = _publicCloudConnectorRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var response = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var uri = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new HybridConnectivityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -275,23 +275,23 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Resource - /// + /// /// /// /// /// The resource properties to be updated. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(PublicCloudConnectorPatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(HybridConnectivityPublicCloudConnectorPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.Update"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.Update"); scope.Start(); try { - var response = await _publicCloudConnectorRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new PublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); + var response = await _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new HybridConnectivityPublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -317,23 +317,23 @@ public virtual async Task> UpdateAsync(Pu /// /// /// Resource - /// + /// /// /// /// /// The resource properties to be updated. /// The cancellation token to use. /// is null. - public virtual Response Update(PublicCloudConnectorPatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(HybridConnectivityPublicCloudConnectorPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.Update"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.Update"); scope.Start(); try { - var response = _publicCloudConnectorRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); - return Response.FromValue(new PublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); + var response = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); + return Response.FromValue(new HybridConnectivityPublicCloudConnectorResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -359,20 +359,20 @@ public virtual Response Update(PublicCloudConnecto /// /// /// Resource - /// + /// /// /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task> TestPermissionsAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> TestPermissionsAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.TestPermissions"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.TestPermissions"); scope.Start(); try { - var response = await _publicCloudConnectorRestClient.TestPermissionsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new HybridConnectivityArmOperation(new OperationStatusResultOperationSource(), _publicCloudConnectorClientDiagnostics, Pipeline, _publicCloudConnectorRestClient.CreateTestPermissionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.TestPermissionsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new HybridConnectivityArmOperation(new HybridConnectivityOperationStatusResultOperationSource(), _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics, Pipeline, _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateTestPermissionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -401,20 +401,20 @@ public virtual async Task> TestPermissionsAs /// /// /// Resource - /// + /// /// /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation TestPermissions(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation TestPermissions(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.TestPermissions"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.TestPermissions"); scope.Start(); try { - var response = _publicCloudConnectorRestClient.TestPermissions(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new HybridConnectivityArmOperation(new OperationStatusResultOperationSource(), _publicCloudConnectorClientDiagnostics, Pipeline, _publicCloudConnectorRestClient.CreateTestPermissionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.TestPermissions(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new HybridConnectivityArmOperation(new HybridConnectivityOperationStatusResultOperationSource(), _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics, Pipeline, _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.CreateTestPermissionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -443,7 +443,7 @@ public virtual ArmOperation TestPermissions(WaitUntil wai /// /// /// Resource - /// + /// /// /// /// @@ -451,12 +451,12 @@ public virtual ArmOperation TestPermissions(WaitUntil wai /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.AddTag"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.AddTag"); scope.Start(); try { @@ -465,13 +465,13 @@ public virtual async Task> AddTagAsync(st var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _publicCloudConnectorRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new PublicCloudConnectorResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new HybridConnectivityPublicCloudConnectorResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new PublicCloudConnectorPatch(); + var patch = new HybridConnectivityPublicCloudConnectorPatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -505,7 +505,7 @@ public virtual async Task> AddTagAsync(st /// /// /// Resource - /// + /// /// /// /// @@ -513,12 +513,12 @@ public virtual async Task> AddTagAsync(st /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.AddTag"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.AddTag"); scope.Start(); try { @@ -527,13 +527,13 @@ public virtual Response AddTag(string key, string var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _publicCloudConnectorRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new PublicCloudConnectorResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new HybridConnectivityPublicCloudConnectorResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new PublicCloudConnectorPatch(); + var patch = new HybridConnectivityPublicCloudConnectorPatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -567,18 +567,18 @@ public virtual Response AddTag(string key, string /// /// /// Resource - /// + /// /// /// /// /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.SetTags"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.SetTags"); scope.Start(); try { @@ -588,13 +588,13 @@ public virtual async Task> SetTagsAsync(I var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _publicCloudConnectorRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new PublicCloudConnectorResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new HybridConnectivityPublicCloudConnectorResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new PublicCloudConnectorPatch(); + var patch = new HybridConnectivityPublicCloudConnectorPatch(); patch.Tags.ReplaceWith(tags); var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); return result; @@ -624,18 +624,18 @@ public virtual async Task> SetTagsAsync(I /// /// /// Resource - /// + /// /// /// /// /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.SetTags"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.SetTags"); scope.Start(); try { @@ -645,13 +645,13 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary /// /// Resource - /// + /// /// /// /// /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.RemoveTag"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.RemoveTag"); scope.Start(); try { @@ -701,13 +701,13 @@ public virtual async Task> RemoveTagAsync var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _publicCloudConnectorRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new PublicCloudConnectorResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new HybridConnectivityPublicCloudConnectorResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new PublicCloudConnectorPatch(); + var patch = new HybridConnectivityPublicCloudConnectorPatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -741,18 +741,18 @@ public virtual async Task> RemoveTagAsync /// /// /// Resource - /// + /// /// /// /// /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _publicCloudConnectorClientDiagnostics.CreateScope("PublicCloudConnectorResource.RemoveTag"); + using var scope = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsClientDiagnostics.CreateScope("HybridConnectivityPublicCloudConnectorResource.RemoveTag"); scope.Start(); try { @@ -761,13 +761,13 @@ public virtual Response RemoveTag(string key, Canc var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _publicCloudConnectorRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new PublicCloudConnectorResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _hybridConnectivityPublicCloudConnectorPublicCloudConnectorsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new HybridConnectivityPublicCloudConnectorResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new PublicCloudConnectorPatch(); + var patch = new HybridConnectivityPublicCloudConnectorPatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationCollection.cs similarity index 60% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationCollection.cs index 97c227bf29902..753c5672e0416 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationCollection.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 a instance call the GetServiceConfigurationResources 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 GetHybridConnectivityServiceConfigurations method from an instance of . /// - public partial class ServiceConfigurationResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class HybridConnectivityServiceConfigurationCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _serviceConfigurationResourceServiceConfigurationsClientDiagnostics; - private readonly ServiceConfigurationsRestOperations _serviceConfigurationResourceServiceConfigurationsRestClient; + private readonly ClientDiagnostics _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics; + private readonly ServiceConfigurationsRestOperations _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient; - /// Initializes a new instance of the class for mocking. - protected ServiceConfigurationResourceCollection() + /// Initializes a new instance of the class for mocking. + protected HybridConnectivityServiceConfigurationCollection() { } - /// 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 ServiceConfigurationResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal HybridConnectivityServiceConfigurationCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _serviceConfigurationResourceServiceConfigurationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ServiceConfigurationResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ServiceConfigurationResource.ResourceType, out string serviceConfigurationResourceServiceConfigurationsApiVersion); - _serviceConfigurationResourceServiceConfigurationsRestClient = new ServiceConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, serviceConfigurationResourceServiceConfigurationsApiVersion); + _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", HybridConnectivityServiceConfigurationResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(HybridConnectivityServiceConfigurationResource.ResourceType, out string hybridConnectivityServiceConfigurationServiceConfigurationsApiVersion); + _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient = new ServiceConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivityServiceConfigurationServiceConfigurationsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -47,8 +47,8 @@ internal ServiceConfigurationResourceCollection(ArmClient client, ResourceIdenti internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != EndpointResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, EndpointResource.ResourceType), nameof(id)); + if (id.ResourceType != HybridConnectivityEndpointResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, HybridConnectivityEndpointResource.ResourceType), nameof(id)); } /// @@ -68,7 +68,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Resource - /// + /// /// /// /// @@ -77,19 +77,19 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Service details. /// The cancellation token to use. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string serviceConfigurationName, ServiceConfigurationResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string serviceConfigurationName, HybridConnectivityServiceConfigurationData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResourceCollection.CreateOrUpdate"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _serviceConfigurationResourceServiceConfigurationsRestClient.CreateOrupdateAsync(Id.Parent, Id.Name, serviceConfigurationName, data, cancellationToken).ConfigureAwait(false); - var uri = _serviceConfigurationResourceServiceConfigurationsRestClient.CreateCreateOrupdateRequestUri(Id.Parent, Id.Name, serviceConfigurationName, data); + var response = await _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.CreateOrupdateAsync(Id.Parent, Id.Name, serviceConfigurationName, data, cancellationToken).ConfigureAwait(false); + var uri = _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.CreateCreateOrupdateRequestUri(Id.Parent, Id.Name, serviceConfigurationName, data); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new HybridConnectivityArmOperation(Response.FromValue(new ServiceConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); + var operation = new HybridConnectivityArmOperation(Response.FromValue(new HybridConnectivityServiceConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -118,7 +118,7 @@ public virtual async Task> CreateOrUp /// /// /// Resource - /// + /// /// /// /// @@ -127,19 +127,19 @@ public virtual async Task> CreateOrUp /// Service details. /// The cancellation token to use. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string serviceConfigurationName, ServiceConfigurationResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string serviceConfigurationName, HybridConnectivityServiceConfigurationData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResourceCollection.CreateOrUpdate"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationCollection.CreateOrUpdate"); scope.Start(); try { - var response = _serviceConfigurationResourceServiceConfigurationsRestClient.CreateOrupdate(Id.Parent, Id.Name, serviceConfigurationName, data, cancellationToken); - var uri = _serviceConfigurationResourceServiceConfigurationsRestClient.CreateCreateOrupdateRequestUri(Id.Parent, Id.Name, serviceConfigurationName, data); + var response = _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.CreateOrupdate(Id.Parent, Id.Name, serviceConfigurationName, data, cancellationToken); + var uri = _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.CreateCreateOrupdateRequestUri(Id.Parent, Id.Name, serviceConfigurationName, data); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new HybridConnectivityArmOperation(Response.FromValue(new ServiceConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); + var operation = new HybridConnectivityArmOperation(Response.FromValue(new HybridConnectivityServiceConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -168,25 +168,25 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Resource - /// + /// /// /// /// /// The service name. /// The cancellation token to use. /// is null. - public virtual async Task> GetAsync(string serviceConfigurationName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string serviceConfigurationName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); - using var scope = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResourceCollection.Get"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationCollection.Get"); scope.Start(); try { - var response = await _serviceConfigurationResourceServiceConfigurationsRestClient.GetAsync(Id.Parent, Id.Name, serviceConfigurationName, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.GetAsync(Id.Parent, Id.Name, serviceConfigurationName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -212,25 +212,25 @@ public virtual async Task> GetAsync(strin /// /// /// Resource - /// + /// /// /// /// /// The service name. /// The cancellation token to use. /// is null. - public virtual Response Get(string serviceConfigurationName, CancellationToken cancellationToken = default) + public virtual Response Get(string serviceConfigurationName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); - using var scope = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResourceCollection.Get"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationCollection.Get"); scope.Start(); try { - var response = _serviceConfigurationResourceServiceConfigurationsRestClient.Get(Id.Parent, Id.Name, serviceConfigurationName, cancellationToken); + var response = _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.Get(Id.Parent, Id.Name, serviceConfigurationName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -256,17 +256,17 @@ public virtual Response Get(string serviceConfigur /// /// /// 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) => _serviceConfigurationResourceServiceConfigurationsRestClient.CreateListByEndpointResourceRequest(Id.Parent, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _serviceConfigurationResourceServiceConfigurationsRestClient.CreateListByEndpointResourceNextPageRequest(nextLink, Id.Parent, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ServiceConfigurationResource(Client, ServiceConfigurationResourceData.DeserializeServiceConfigurationResourceData(e)), _serviceConfigurationResourceServiceConfigurationsClientDiagnostics, Pipeline, "ServiceConfigurationResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.CreateListByEndpointResourceRequest(Id.Parent, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.CreateListByEndpointResourceNextPageRequest(nextLink, Id.Parent, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivityServiceConfigurationResource(Client, HybridConnectivityServiceConfigurationData.DeserializeHybridConnectivityServiceConfigurationData(e)), _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics, Pipeline, "HybridConnectivityServiceConfigurationCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -286,17 +286,17 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// 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) => _serviceConfigurationResourceServiceConfigurationsRestClient.CreateListByEndpointResourceRequest(Id.Parent, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _serviceConfigurationResourceServiceConfigurationsRestClient.CreateListByEndpointResourceNextPageRequest(nextLink, Id.Parent, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ServiceConfigurationResource(Client, ServiceConfigurationResourceData.DeserializeServiceConfigurationResourceData(e)), _serviceConfigurationResourceServiceConfigurationsClientDiagnostics, Pipeline, "ServiceConfigurationResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.CreateListByEndpointResourceRequest(Id.Parent, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.CreateListByEndpointResourceNextPageRequest(nextLink, Id.Parent, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivityServiceConfigurationResource(Client, HybridConnectivityServiceConfigurationData.DeserializeHybridConnectivityServiceConfigurationData(e)), _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics, Pipeline, "HybridConnectivityServiceConfigurationCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Resource - /// + /// /// /// /// @@ -327,11 +327,11 @@ public virtual async Task> ExistsAsync(string serviceConfiguratio { Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); - using var scope = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResourceCollection.Exists"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationCollection.Exists"); scope.Start(); try { - var response = await _serviceConfigurationResourceServiceConfigurationsRestClient.GetAsync(Id.Parent, Id.Name, serviceConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.GetAsync(Id.Parent, Id.Name, serviceConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -358,7 +358,7 @@ public virtual async Task> ExistsAsync(string serviceConfiguratio /// /// /// Resource - /// + /// /// /// /// @@ -369,11 +369,11 @@ public virtual Response Exists(string serviceConfigurationName, Cancellati { Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); - using var scope = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResourceCollection.Exists"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationCollection.Exists"); scope.Start(); try { - var response = _serviceConfigurationResourceServiceConfigurationsRestClient.Get(Id.Parent, Id.Name, serviceConfigurationName, cancellationToken: cancellationToken); + var response = _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.Get(Id.Parent, Id.Name, serviceConfigurationName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -400,25 +400,25 @@ public virtual Response Exists(string serviceConfigurationName, Cancellati /// /// /// Resource - /// + /// /// /// /// /// The service name. /// The cancellation token to use. /// is null. - public virtual async Task> GetIfExistsAsync(string serviceConfigurationName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string serviceConfigurationName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); - using var scope = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResourceCollection.GetIfExists"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationCollection.GetIfExists"); scope.Start(); try { - var response = await _serviceConfigurationResourceServiceConfigurationsRestClient.GetAsync(Id.Parent, Id.Name, serviceConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.GetAsync(Id.Parent, Id.Name, serviceConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new ServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -444,25 +444,25 @@ public virtual async Task> GetIfE /// /// /// Resource - /// + /// /// /// /// /// The service name. /// The cancellation token to use. /// is null. - public virtual NullableResponse GetIfExists(string serviceConfigurationName, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string serviceConfigurationName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); - using var scope = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResourceCollection.GetIfExists"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationCollection.GetIfExists"); scope.Start(); try { - var response = _serviceConfigurationResourceServiceConfigurationsRestClient.Get(Id.Parent, Id.Name, serviceConfigurationName, cancellationToken: cancellationToken); + var response = _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.Get(Id.Parent, Id.Name, serviceConfigurationName, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new ServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -471,7 +471,7 @@ public virtual NullableResponse GetIfExists(string } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -481,7 +481,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/ServiceConfigurationResourceData.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationData.Serialization.cs similarity index 75% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceData.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationData.Serialization.cs index d087ab9a7bc9f..83ea8187f3712 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceData.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationData.Serialization.cs @@ -15,11 +15,11 @@ namespace Azure.ResourceManager.HybridConnectivity { - public partial class ServiceConfigurationResourceData : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivityServiceConfigurationData : 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, M /// 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(ServiceConfigurationResourceData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityServiceConfigurationData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -62,19 +62,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WriteEndObject(); } - ServiceConfigurationResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivityServiceConfigurationData 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(ServiceConfigurationResourceData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityServiceConfigurationData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeServiceConfigurationResourceData(document.RootElement, options); + return DeserializeHybridConnectivityServiceConfigurationData(document.RootElement, options); } - internal static ServiceConfigurationResourceData DeserializeServiceConfigurationResourceData(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivityServiceConfigurationData DeserializeHybridConnectivityServiceConfigurationData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -172,7 +172,7 @@ internal static ServiceConfigurationResourceData DeserializeServiceConfiguration } } serializedAdditionalRawData = rawDataDictionary; - return new ServiceConfigurationResourceData( + return new HybridConnectivityServiceConfigurationData( id, name, type, @@ -184,35 +184,35 @@ internal static ServiceConfigurationResourceData DeserializeServiceConfiguration 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(ServiceConfigurationResourceData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityServiceConfigurationData)} does not support writing '{options.Format}' format."); } } - ServiceConfigurationResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivityServiceConfigurationData 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 DeserializeServiceConfigurationResourceData(document.RootElement, options); + return DeserializeHybridConnectivityServiceConfigurationData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ServiceConfigurationResourceData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityServiceConfigurationData)} 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/ServiceConfigurationResourceData.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationData.cs similarity index 79% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceData.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationData.cs index f8f37c3e01a83..b087580055079 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResourceData.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationData.cs @@ -14,10 +14,10 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A class representing the ServiceConfigurationResource data model. + /// A class representing the HybridConnectivityServiceConfiguration data model. /// The service configuration details associated with the target resource. /// - public partial class ServiceConfigurationResourceData : ResourceData + public partial class HybridConnectivityServiceConfigurationData : ResourceData { /// /// Keeps track of any properties unknown to the library. @@ -51,12 +51,12 @@ public partial class ServiceConfigurationResourceData : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public ServiceConfigurationResourceData() + /// Initializes a new instance of . + public HybridConnectivityServiceConfigurationData() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. @@ -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, HybridConnectivityServiceName? serviceName, ResourceIdentifier resourceId, long? port, HybridConnectivityProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal HybridConnectivityServiceConfigurationData(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; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationResource.Serialization.cs new file mode 100644 index 0000000000000..4582518735e17 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationResource.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 HybridConnectivityServiceConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + HybridConnectivityServiceConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + HybridConnectivityServiceConfigurationData 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/ServiceConfigurationResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationResource.cs similarity index 64% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResource.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationResource.cs index ffe2df2957c13..60beb228d68a1 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivityServiceConfigurationResource.cs @@ -16,52 +16,52 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A Class representing a ServiceConfigurationResource 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 GetServiceConfigurationResource method. - /// Otherwise you can get one from its parent resource using the GetServiceConfigurationResource method. + /// A Class representing a HybridConnectivityServiceConfiguration 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 GetHybridConnectivityServiceConfigurationResource method. + /// Otherwise you can get one from its parent resource using the GetHybridConnectivityServiceConfiguration method. /// - public partial class ServiceConfigurationResource : ArmResource + public partial class HybridConnectivityServiceConfigurationResource : ArmResource { - /// Generate the resource identifier of a instance. - /// The scope. + /// Generate the resource identifier of a instance. + /// The resourceUri. /// The endpointName. /// The serviceConfigurationName. - public static ResourceIdentifier CreateResourceIdentifier(string scope, string endpointName, string serviceConfigurationName) + public static ResourceIdentifier CreateResourceIdentifier(string resourceUri, string endpointName, string serviceConfigurationName) { - var resourceId = $"{scope}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/serviceConfigurations/{serviceConfigurationName}"; + var resourceId = $"{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/serviceConfigurations/{serviceConfigurationName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _serviceConfigurationResourceServiceConfigurationsClientDiagnostics; - private readonly ServiceConfigurationsRestOperations _serviceConfigurationResourceServiceConfigurationsRestClient; - private readonly ServiceConfigurationResourceData _data; + private readonly ClientDiagnostics _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics; + private readonly ServiceConfigurationsRestOperations _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient; + private readonly HybridConnectivityServiceConfigurationData _data; /// Gets the resource type for the operations. public static readonly ResourceType ResourceType = "Microsoft.HybridConnectivity/endpoints/serviceConfigurations"; - /// Initializes a new instance of the class for mocking. - protected ServiceConfigurationResource() + /// Initializes a new instance of the class for mocking. + protected HybridConnectivityServiceConfigurationResource() { } - /// 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 ServiceConfigurationResource(ArmClient client, ServiceConfigurationResourceData data) : this(client, data.Id) + internal HybridConnectivityServiceConfigurationResource(ArmClient client, HybridConnectivityServiceConfigurationData 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 ServiceConfigurationResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal HybridConnectivityServiceConfigurationResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _serviceConfigurationResourceServiceConfigurationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string serviceConfigurationResourceServiceConfigurationsApiVersion); - _serviceConfigurationResourceServiceConfigurationsRestClient = new ServiceConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, serviceConfigurationResourceServiceConfigurationsApiVersion); + _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string hybridConnectivityServiceConfigurationServiceConfigurationsApiVersion); + _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient = new ServiceConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivityServiceConfigurationServiceConfigurationsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,7 +72,7 @@ internal ServiceConfigurationResource(ArmClient client, ResourceIdentifier id) : /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ServiceConfigurationResourceData Data + public virtual HybridConnectivityServiceConfigurationData Data { get { @@ -105,21 +105,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 = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResource.Get"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationResource.Get"); scope.Start(); try { - var response = await _serviceConfigurationResourceServiceConfigurationsRestClient.GetAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.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 ServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -145,21 +145,21 @@ public virtual async Task> GetAsync(Cance /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResource.Get"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationResource.Get"); scope.Start(); try { - var response = _serviceConfigurationResourceServiceConfigurationsRestClient.Get(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken); + var response = _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.Get(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivityServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,7 +185,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Resource - /// + /// /// /// /// @@ -193,12 +193,12 @@ public virtual Response Get(CancellationToken canc /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResource.Delete"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationResource.Delete"); scope.Start(); try { - var response = await _serviceConfigurationResourceServiceConfigurationsRestClient.DeleteAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var uri = _serviceConfigurationResourceServiceConfigurationsRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name); + var response = await _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.DeleteAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var uri = _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new HybridConnectivityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -229,7 +229,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Resource - /// + /// /// /// /// @@ -237,12 +237,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResource.Delete"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationResource.Delete"); scope.Start(); try { - var response = _serviceConfigurationResourceServiceConfigurationsRestClient.Delete(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken); - var uri = _serviceConfigurationResourceServiceConfigurationsRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name); + var response = _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.Delete(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken); + var uri = _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new HybridConnectivityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -273,23 +273,23 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Resource - /// + /// /// /// /// /// Service details. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(ServiceConfigurationResourcePatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(HybridConnectivityServiceConfigurationPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResource.Update"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationResource.Update"); scope.Start(); try { - var response = await _serviceConfigurationResourceServiceConfigurationsRestClient.UpdateAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); + var response = await _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.UpdateAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new HybridConnectivityServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -315,23 +315,23 @@ public virtual async Task> UpdateAsync(Se /// /// /// Resource - /// + /// /// /// /// /// Service details. /// The cancellation token to use. /// is null. - public virtual Response Update(ServiceConfigurationResourcePatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(HybridConnectivityServiceConfigurationPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _serviceConfigurationResourceServiceConfigurationsClientDiagnostics.CreateScope("ServiceConfigurationResource.Update"); + using var scope = _hybridConnectivityServiceConfigurationServiceConfigurationsClientDiagnostics.CreateScope("HybridConnectivityServiceConfigurationResource.Update"); scope.Start(); try { - var response = _serviceConfigurationResourceServiceConfigurationsRestClient.Update(Id.Parent.Parent, Id.Parent.Name, Id.Name, patch, cancellationToken); - return Response.FromValue(new ServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); + var response = _hybridConnectivityServiceConfigurationServiceConfigurationsRestClient.Update(Id.Parent.Parent, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new HybridConnectivityServiceConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationCollection.cs similarity index 62% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationCollection.cs index 87102d9f86d70..e7520453000be 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationCollection.cs @@ -17,28 +17,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 a instance call the GetSolutionConfigurations 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 GetHybridConnectivitySolutionConfigurations method from an instance of . /// - public partial class SolutionConfigurationCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class HybridConnectivitySolutionConfigurationCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _solutionConfigurationClientDiagnostics; - private readonly SolutionConfigurationsRestOperations _solutionConfigurationRestClient; + private readonly ClientDiagnostics _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics; + private readonly SolutionConfigurationsRestOperations _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient; - /// Initializes a new instance of the class for mocking. - protected SolutionConfigurationCollection() + /// Initializes a new instance of the class for mocking. + protected HybridConnectivitySolutionConfigurationCollection() { } - /// 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 SolutionConfigurationCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal HybridConnectivitySolutionConfigurationCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _solutionConfigurationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", SolutionConfigurationResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(SolutionConfigurationResource.ResourceType, out string solutionConfigurationApiVersion); - _solutionConfigurationRestClient = new SolutionConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, solutionConfigurationApiVersion); + _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", HybridConnectivitySolutionConfigurationResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(HybridConnectivitySolutionConfigurationResource.ResourceType, out string hybridConnectivitySolutionConfigurationSolutionConfigurationsApiVersion); + _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient = new SolutionConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivitySolutionConfigurationSolutionConfigurationsApiVersion); } /// @@ -58,7 +58,7 @@ internal SolutionConfigurationCollection(ArmClient client, ResourceIdentifier id /// /// /// Resource - /// + /// /// /// /// @@ -68,19 +68,19 @@ internal SolutionConfigurationCollection(ArmClient client, ResourceIdentifier id /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string solutionConfiguration, SolutionConfigurationData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string solutionConfiguration, HybridConnectivitySolutionConfigurationData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationCollection.CreateOrUpdate"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _solutionConfigurationRestClient.CreateOrUpdateAsync(Id, solutionConfiguration, data, cancellationToken).ConfigureAwait(false); - var uri = _solutionConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id, solutionConfiguration, data); + var response = await _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.CreateOrUpdateAsync(Id, solutionConfiguration, data, cancellationToken).ConfigureAwait(false); + var uri = _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id, solutionConfiguration, data); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new HybridConnectivityArmOperation(Response.FromValue(new SolutionConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); + var operation = new HybridConnectivityArmOperation(Response.FromValue(new HybridConnectivitySolutionConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -109,7 +109,7 @@ public virtual async Task> CreateOrU /// /// /// Resource - /// + /// /// /// /// @@ -119,19 +119,19 @@ public virtual async Task> CreateOrU /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string solutionConfiguration, SolutionConfigurationData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string solutionConfiguration, HybridConnectivitySolutionConfigurationData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationCollection.CreateOrUpdate"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationCollection.CreateOrUpdate"); scope.Start(); try { - var response = _solutionConfigurationRestClient.CreateOrUpdate(Id, solutionConfiguration, data, cancellationToken); - var uri = _solutionConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id, solutionConfiguration, data); + var response = _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.CreateOrUpdate(Id, solutionConfiguration, data, cancellationToken); + var uri = _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id, solutionConfiguration, data); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new HybridConnectivityArmOperation(Response.FromValue(new SolutionConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); + var operation = new HybridConnectivityArmOperation(Response.FromValue(new HybridConnectivitySolutionConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -160,7 +160,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Resource - /// + /// /// /// /// @@ -168,18 +168,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string solutionConfiguration, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string solutionConfiguration, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationCollection.Get"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationCollection.Get"); scope.Start(); try { - var response = await _solutionConfigurationRestClient.GetAsync(Id, solutionConfiguration, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.GetAsync(Id, solutionConfiguration, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivitySolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -205,7 +205,7 @@ public virtual async Task> GetAsync(stri /// /// /// Resource - /// + /// /// /// /// @@ -213,18 +213,18 @@ public virtual async Task> GetAsync(stri /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string solutionConfiguration, CancellationToken cancellationToken = default) + public virtual Response Get(string solutionConfiguration, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationCollection.Get"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationCollection.Get"); scope.Start(); try { - var response = _solutionConfigurationRestClient.Get(Id, solutionConfiguration, cancellationToken); + var response = _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.Get(Id, solutionConfiguration, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivitySolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -250,17 +250,17 @@ public virtual Response Get(string solutionConfig /// /// /// 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) => _solutionConfigurationRestClient.CreateListRequest(Id); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _solutionConfigurationRestClient.CreateListNextPageRequest(nextLink, Id); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SolutionConfigurationResource(Client, SolutionConfigurationData.DeserializeSolutionConfigurationData(e)), _solutionConfigurationClientDiagnostics, Pipeline, "SolutionConfigurationCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.CreateListRequest(Id); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.CreateListNextPageRequest(nextLink, Id); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivitySolutionConfigurationResource(Client, HybridConnectivitySolutionConfigurationData.DeserializeHybridConnectivitySolutionConfigurationData(e)), _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics, Pipeline, "HybridConnectivitySolutionConfigurationCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -280,17 +280,17 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// 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) => _solutionConfigurationRestClient.CreateListRequest(Id); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _solutionConfigurationRestClient.CreateListNextPageRequest(nextLink, Id); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SolutionConfigurationResource(Client, SolutionConfigurationData.DeserializeSolutionConfigurationData(e)), _solutionConfigurationClientDiagnostics, Pipeline, "SolutionConfigurationCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.CreateListRequest(Id); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.CreateListNextPageRequest(nextLink, Id); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivitySolutionConfigurationResource(Client, HybridConnectivitySolutionConfigurationData.DeserializeHybridConnectivitySolutionConfigurationData(e)), _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics, Pipeline, "HybridConnectivitySolutionConfigurationCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -310,7 +310,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Resource - /// + /// /// /// /// @@ -322,11 +322,11 @@ public virtual async Task> ExistsAsync(string solutionConfigurati { Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationCollection.Exists"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationCollection.Exists"); scope.Start(); try { - var response = await _solutionConfigurationRestClient.GetAsync(Id, solutionConfiguration, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.GetAsync(Id, solutionConfiguration, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -353,7 +353,7 @@ public virtual async Task> ExistsAsync(string solutionConfigurati /// /// /// Resource - /// + /// /// /// /// @@ -365,11 +365,11 @@ public virtual Response Exists(string solutionConfiguration, CancellationT { Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationCollection.Exists"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationCollection.Exists"); scope.Start(); try { - var response = _solutionConfigurationRestClient.Get(Id, solutionConfiguration, cancellationToken: cancellationToken); + var response = _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.Get(Id, solutionConfiguration, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -396,7 +396,7 @@ public virtual Response Exists(string solutionConfiguration, CancellationT /// /// /// Resource - /// + /// /// /// /// @@ -404,18 +404,18 @@ public virtual Response Exists(string solutionConfiguration, CancellationT /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string solutionConfiguration, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string solutionConfiguration, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationCollection.GetIfExists"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationCollection.GetIfExists"); scope.Start(); try { - var response = await _solutionConfigurationRestClient.GetAsync(Id, solutionConfiguration, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.GetAsync(Id, solutionConfiguration, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new SolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new HybridConnectivitySolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -441,7 +441,7 @@ public virtual async Task> GetIf /// /// /// Resource - /// + /// /// /// /// @@ -449,18 +449,18 @@ public virtual async Task> GetIf /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string solutionConfiguration, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string solutionConfiguration, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationCollection.GetIfExists"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationCollection.GetIfExists"); scope.Start(); try { - var response = _solutionConfigurationRestClient.Get(Id, solutionConfiguration, cancellationToken: cancellationToken); + var response = _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.Get(Id, solutionConfiguration, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new SolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new HybridConnectivitySolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -469,7 +469,7 @@ public virtual NullableResponse GetIfExists(strin } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -479,7 +479,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/SolutionConfigurationData.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationData.Serialization.cs similarity index 65% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationData.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationData.Serialization.cs index 195e3264d9332..0dbb088992769 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationData.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationData.Serialization.cs @@ -15,11 +15,11 @@ namespace Azure.ResourceManager.HybridConnectivity { - public partial class SolutionConfigurationData : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivitySolutionConfigurationData : 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, ModelRea /// 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(SolutionConfigurationData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionConfigurationData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -44,19 +44,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - SolutionConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivitySolutionConfigurationData 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(SolutionConfigurationData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionConfigurationData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeSolutionConfigurationData(document.RootElement, options); + return DeserializeHybridConnectivitySolutionConfigurationData(document.RootElement, options); } - internal static SolutionConfigurationData DeserializeSolutionConfigurationData(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivitySolutionConfigurationData DeserializeHybridConnectivitySolutionConfigurationData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -112,7 +112,7 @@ internal static SolutionConfigurationData DeserializeSolutionConfigurationData(J } } serializedAdditionalRawData = rawDataDictionary; - return new SolutionConfigurationData( + return new HybridConnectivitySolutionConfigurationData( id, name, type, @@ -121,35 +121,35 @@ internal static SolutionConfigurationData DeserializeSolutionConfigurationData(J 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(SolutionConfigurationData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionConfigurationData)} does not support writing '{options.Format}' format."); } } - SolutionConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivitySolutionConfigurationData 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 DeserializeSolutionConfigurationData(document.RootElement, options); + return DeserializeHybridConnectivitySolutionConfigurationData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(SolutionConfigurationData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionConfigurationData)} 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/SolutionConfigurationData.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationData.cs similarity index 76% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationData.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationData.cs index ade9a60f10f9b..5fc723ce2b4e2 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationData.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationData.cs @@ -14,10 +14,10 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A class representing the SolutionConfiguration data model. + /// A class representing the HybridConnectivitySolutionConfiguration data model. /// Solution Configuration /// - public partial class SolutionConfigurationData : ResourceData + public partial class HybridConnectivitySolutionConfigurationData : ResourceData { /// /// Keeps track of any properties unknown to the library. @@ -51,19 +51,19 @@ public partial class SolutionConfigurationData : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public SolutionConfigurationData() + /// Initializes a new instance of . + public HybridConnectivitySolutionConfigurationData() { } - /// 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 SolutionConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SolutionConfigurationProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal HybridConnectivitySolutionConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SolutionConfigurationProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationResource.Serialization.cs new file mode 100644 index 0000000000000..acd639346d26c --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationResource.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 HybridConnectivitySolutionConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + HybridConnectivitySolutionConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + HybridConnectivitySolutionConfigurationData 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/SolutionConfigurationResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationResource.cs similarity index 67% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationResource.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationResource.cs index 76c2c4071ad35..2deaa2af1f110 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionConfigurationResource.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A Class representing a SolutionConfiguration 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 GetSolutionConfigurationResource method. - /// Otherwise you can get one from its parent resource using the GetSolutionConfiguration method. + /// A Class representing a HybridConnectivitySolutionConfiguration 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 GetHybridConnectivitySolutionConfigurationResource method. + /// Otherwise you can get one from its parent resource using the GetHybridConnectivitySolutionConfiguration method. /// - public partial class SolutionConfigurationResource : ArmResource + public partial class HybridConnectivitySolutionConfigurationResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. /// The resourceUri. /// The solutionConfiguration. public static ResourceIdentifier CreateResourceIdentifier(string resourceUri, string solutionConfiguration) @@ -32,35 +32,35 @@ public static ResourceIdentifier CreateResourceIdentifier(string resourceUri, st return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _solutionConfigurationClientDiagnostics; - private readonly SolutionConfigurationsRestOperations _solutionConfigurationRestClient; - private readonly SolutionConfigurationData _data; + private readonly ClientDiagnostics _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics; + private readonly SolutionConfigurationsRestOperations _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient; + private readonly HybridConnectivitySolutionConfigurationData _data; /// Gets the resource type for the operations. public static readonly ResourceType ResourceType = "Microsoft.HybridConnectivity/solutionConfigurations"; - /// Initializes a new instance of the class for mocking. - protected SolutionConfigurationResource() + /// Initializes a new instance of the class for mocking. + protected HybridConnectivitySolutionConfigurationResource() { } - /// 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 SolutionConfigurationResource(ArmClient client, SolutionConfigurationData data) : this(client, data.Id) + internal HybridConnectivitySolutionConfigurationResource(ArmClient client, HybridConnectivitySolutionConfigurationData 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 SolutionConfigurationResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal HybridConnectivitySolutionConfigurationResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _solutionConfigurationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string solutionConfigurationApiVersion); - _solutionConfigurationRestClient = new SolutionConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, solutionConfigurationApiVersion); + _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string hybridConnectivitySolutionConfigurationSolutionConfigurationsApiVersion); + _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient = new SolutionConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivitySolutionConfigurationSolutionConfigurationsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal SolutionConfigurationResource(ArmClient client, ResourceIdentifier id) /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual SolutionConfigurationData Data + public virtual HybridConnectivitySolutionConfigurationData Data { get { @@ -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 HybridConnectivityInventoryResources in the SolutionConfiguration. + /// Gets a collection of HybridConnectivityInventoryResources in the HybridConnectivitySolutionConfiguration. /// An object representing collection of HybridConnectivityInventoryResources and their operations over a HybridConnectivityInventoryResource. - public virtual HybridConnectivityInventoryResourceCollection GetHybridConnectivityInventoryResources() + public virtual HybridConnectivityInventoryCollection GetHybridConnectivityInventories() { - return GetCachedClient(client => new HybridConnectivityInventoryResourceCollection(client, Id)); + return GetCachedClient(client => new HybridConnectivityInventoryCollection(client, Id)); } /// @@ -120,9 +120,9 @@ public virtual HybridConnectivityInventoryResourceCollection GetHybridConnectivi /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetHybridConnectivityInventoryResourceAsync(string inventoryId, CancellationToken cancellationToken = default) + public virtual async Task> GetHybridConnectivityInventoryAsync(string inventoryId, CancellationToken cancellationToken = default) { - return await GetHybridConnectivityInventoryResources().GetAsync(inventoryId, cancellationToken).ConfigureAwait(false); + return await GetHybridConnectivityInventories().GetAsync(inventoryId, cancellationToken).ConfigureAwait(false); } /// @@ -151,9 +151,9 @@ public virtual async Task> GetHybr /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetHybridConnectivityInventoryResource(string inventoryId, CancellationToken cancellationToken = default) + public virtual Response GetHybridConnectivityInventory(string inventoryId, CancellationToken cancellationToken = default) { - return GetHybridConnectivityInventoryResources().Get(inventoryId, cancellationToken); + return GetHybridConnectivityInventories().Get(inventoryId, cancellationToken); } /// @@ -173,21 +173,21 @@ public virtual Response GetHybridConnectivi /// /// /// 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 = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationResource.Get"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationResource.Get"); scope.Start(); try { - var response = await _solutionConfigurationRestClient.GetAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.GetAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivitySolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -213,21 +213,21 @@ public virtual async Task> GetAsync(Canc /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationResource.Get"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationResource.Get"); scope.Start(); try { - var response = _solutionConfigurationRestClient.Get(Id.Parent, Id.Name, cancellationToken); + var response = _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.Get(Id.Parent, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivitySolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -253,7 +253,7 @@ public virtual Response Get(CancellationToken can /// /// /// Resource - /// + /// /// /// /// @@ -261,12 +261,12 @@ public virtual Response Get(CancellationToken can /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationResource.Delete"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationResource.Delete"); scope.Start(); try { - var response = await _solutionConfigurationRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var uri = _solutionConfigurationRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var response = await _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); + var uri = _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new HybridConnectivityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -297,7 +297,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Resource - /// + /// /// /// /// @@ -305,12 +305,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationResource.Delete"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationResource.Delete"); scope.Start(); try { - var response = _solutionConfigurationRestClient.Delete(Id.Parent, Id.Name, cancellationToken); - var uri = _solutionConfigurationRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var response = _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.Delete(Id.Parent, Id.Name, cancellationToken); + var uri = _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new HybridConnectivityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -341,23 +341,23 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Resource - /// + /// /// /// /// /// The resource properties to be updated. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(SolutionConfigurationPatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(HybridConnectivitySolutionConfigurationPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationResource.Update"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationResource.Update"); scope.Start(); try { - var response = await _solutionConfigurationRestClient.UpdateAsync(Id.Parent, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new SolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); + var response = await _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.UpdateAsync(Id.Parent, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new HybridConnectivitySolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -383,23 +383,23 @@ public virtual async Task> UpdateAsync(S /// /// /// Resource - /// + /// /// /// /// /// The resource properties to be updated. /// The cancellation token to use. /// is null. - public virtual Response Update(SolutionConfigurationPatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(HybridConnectivitySolutionConfigurationPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationResource.Update"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationResource.Update"); scope.Start(); try { - var response = _solutionConfigurationRestClient.Update(Id.Parent, Id.Name, patch, cancellationToken); - return Response.FromValue(new SolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); + var response = _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.Update(Id.Parent, Id.Name, patch, cancellationToken); + return Response.FromValue(new HybridConnectivitySolutionConfigurationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -425,20 +425,20 @@ public virtual Response Update(SolutionConfigurat /// /// /// Resource - /// + /// /// /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task> SyncNowAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> SyncNowAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationResource.SyncNow"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationResource.SyncNow"); scope.Start(); try { - var response = await _solutionConfigurationRestClient.SyncNowAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new HybridConnectivityArmOperation(new OperationStatusResultOperationSource(), _solutionConfigurationClientDiagnostics, Pipeline, _solutionConfigurationRestClient.CreateSyncNowRequest(Id.Parent, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.SyncNowAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new HybridConnectivityArmOperation(new HybridConnectivityOperationStatusResultOperationSource(), _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics, Pipeline, _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.CreateSyncNowRequest(Id.Parent, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -467,20 +467,20 @@ public virtual async Task> SyncNowAsync(Wait /// /// /// Resource - /// + /// /// /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation SyncNow(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation SyncNow(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _solutionConfigurationClientDiagnostics.CreateScope("SolutionConfigurationResource.SyncNow"); + using var scope = _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics.CreateScope("HybridConnectivitySolutionConfigurationResource.SyncNow"); scope.Start(); try { - var response = _solutionConfigurationRestClient.SyncNow(Id.Parent, Id.Name, cancellationToken); - var operation = new HybridConnectivityArmOperation(new OperationStatusResultOperationSource(), _solutionConfigurationClientDiagnostics, Pipeline, _solutionConfigurationRestClient.CreateSyncNowRequest(Id.Parent, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.SyncNow(Id.Parent, Id.Name, cancellationToken); + var operation = new HybridConnectivityArmOperation(new HybridConnectivityOperationStatusResultOperationSource(), _hybridConnectivitySolutionConfigurationSolutionConfigurationsClientDiagnostics, Pipeline, _hybridConnectivitySolutionConfigurationSolutionConfigurationsRestClient.CreateSyncNowRequest(Id.Parent, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionTypeResourceCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeCollection.cs similarity index 61% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionTypeResourceCollection.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeCollection.cs index 7d3003ed9ebc0..7196d3fe923d3 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionTypeResourceCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeCollection.cs @@ -19,28 +19,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 a instance call the GetSolutionTypeResources 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 GetHybridConnectivitySolutionTypes method from an instance of . /// - public partial class SolutionTypeResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class HybridConnectivitySolutionTypeCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _solutionTypeResourceSolutionTypesClientDiagnostics; - private readonly SolutionTypesRestOperations _solutionTypeResourceSolutionTypesRestClient; + private readonly ClientDiagnostics _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics; + private readonly SolutionTypesRestOperations _hybridConnectivitySolutionTypeSolutionTypesRestClient; - /// Initializes a new instance of the class for mocking. - protected SolutionTypeResourceCollection() + /// Initializes a new instance of the class for mocking. + protected HybridConnectivitySolutionTypeCollection() { } - /// 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 SolutionTypeResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal HybridConnectivitySolutionTypeCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _solutionTypeResourceSolutionTypesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", SolutionTypeResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(SolutionTypeResource.ResourceType, out string solutionTypeResourceSolutionTypesApiVersion); - _solutionTypeResourceSolutionTypesRestClient = new SolutionTypesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, solutionTypeResourceSolutionTypesApiVersion); + _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", HybridConnectivitySolutionTypeResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(HybridConnectivitySolutionTypeResource.ResourceType, out string hybridConnectivitySolutionTypeSolutionTypesApiVersion); + _hybridConnectivitySolutionTypeSolutionTypesRestClient = new SolutionTypesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivitySolutionTypeSolutionTypesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -69,7 +69,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Resource - /// + /// /// /// /// @@ -77,18 +77,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 solutionType, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string solutionType, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(solutionType, nameof(solutionType)); - using var scope = _solutionTypeResourceSolutionTypesClientDiagnostics.CreateScope("SolutionTypeResourceCollection.Get"); + using var scope = _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics.CreateScope("HybridConnectivitySolutionTypeCollection.Get"); scope.Start(); try { - var response = await _solutionTypeResourceSolutionTypesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, solutionType, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivitySolutionTypeSolutionTypesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, solutionType, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SolutionTypeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivitySolutionTypeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -114,7 +114,7 @@ public virtual async Task> GetAsync(string soluti /// /// /// Resource - /// + /// /// /// /// @@ -122,18 +122,18 @@ public virtual async Task> GetAsync(string soluti /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string solutionType, CancellationToken cancellationToken = default) + public virtual Response Get(string solutionType, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(solutionType, nameof(solutionType)); - using var scope = _solutionTypeResourceSolutionTypesClientDiagnostics.CreateScope("SolutionTypeResourceCollection.Get"); + using var scope = _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics.CreateScope("HybridConnectivitySolutionTypeCollection.Get"); scope.Start(); try { - var response = _solutionTypeResourceSolutionTypesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, solutionType, cancellationToken); + var response = _hybridConnectivitySolutionTypeSolutionTypesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, solutionType, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SolutionTypeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivitySolutionTypeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -159,17 +159,17 @@ public virtual Response Get(string solutionType, Cancellat /// /// /// 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) => _solutionTypeResourceSolutionTypesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _solutionTypeResourceSolutionTypesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SolutionTypeResource(Client, SolutionTypeResourceData.DeserializeSolutionTypeResourceData(e)), _solutionTypeResourceSolutionTypesClientDiagnostics, Pipeline, "SolutionTypeResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivitySolutionTypeSolutionTypesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivitySolutionTypeSolutionTypesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivitySolutionTypeResource(Client, HybridConnectivitySolutionTypeData.DeserializeHybridConnectivitySolutionTypeData(e)), _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics, Pipeline, "HybridConnectivitySolutionTypeCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -189,17 +189,17 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// 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) => _solutionTypeResourceSolutionTypesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _solutionTypeResourceSolutionTypesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SolutionTypeResource(Client, SolutionTypeResourceData.DeserializeSolutionTypeResourceData(e)), _solutionTypeResourceSolutionTypesClientDiagnostics, Pipeline, "SolutionTypeResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridConnectivitySolutionTypeSolutionTypesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridConnectivitySolutionTypeSolutionTypesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HybridConnectivitySolutionTypeResource(Client, HybridConnectivitySolutionTypeData.DeserializeHybridConnectivitySolutionTypeData(e)), _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics, Pipeline, "HybridConnectivitySolutionTypeCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -219,7 +219,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Resource - /// + /// /// /// /// @@ -231,11 +231,11 @@ public virtual async Task> ExistsAsync(string solutionType, Cance { Argument.AssertNotNullOrEmpty(solutionType, nameof(solutionType)); - using var scope = _solutionTypeResourceSolutionTypesClientDiagnostics.CreateScope("SolutionTypeResourceCollection.Exists"); + using var scope = _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics.CreateScope("HybridConnectivitySolutionTypeCollection.Exists"); scope.Start(); try { - var response = await _solutionTypeResourceSolutionTypesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, solutionType, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivitySolutionTypeSolutionTypesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, solutionType, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -262,7 +262,7 @@ public virtual async Task> ExistsAsync(string solutionType, Cance /// /// /// Resource - /// + /// /// /// /// @@ -274,11 +274,11 @@ public virtual Response Exists(string solutionType, CancellationToken canc { Argument.AssertNotNullOrEmpty(solutionType, nameof(solutionType)); - using var scope = _solutionTypeResourceSolutionTypesClientDiagnostics.CreateScope("SolutionTypeResourceCollection.Exists"); + using var scope = _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics.CreateScope("HybridConnectivitySolutionTypeCollection.Exists"); scope.Start(); try { - var response = _solutionTypeResourceSolutionTypesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, solutionType, cancellationToken: cancellationToken); + var response = _hybridConnectivitySolutionTypeSolutionTypesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, solutionType, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -305,7 +305,7 @@ public virtual Response Exists(string solutionType, CancellationToken canc /// /// /// Resource - /// + /// /// /// /// @@ -313,18 +313,18 @@ public virtual Response Exists(string solutionType, CancellationToken canc /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string solutionType, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string solutionType, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(solutionType, nameof(solutionType)); - using var scope = _solutionTypeResourceSolutionTypesClientDiagnostics.CreateScope("SolutionTypeResourceCollection.GetIfExists"); + using var scope = _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics.CreateScope("HybridConnectivitySolutionTypeCollection.GetIfExists"); scope.Start(); try { - var response = await _solutionTypeResourceSolutionTypesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, solutionType, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivitySolutionTypeSolutionTypesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, solutionType, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new SolutionTypeResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new HybridConnectivitySolutionTypeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -350,7 +350,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Resource - /// + /// /// /// /// @@ -358,18 +358,18 @@ public virtual async Task> GetIfExistsAsy /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string solutionType, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string solutionType, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(solutionType, nameof(solutionType)); - using var scope = _solutionTypeResourceSolutionTypesClientDiagnostics.CreateScope("SolutionTypeResourceCollection.GetIfExists"); + using var scope = _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics.CreateScope("HybridConnectivitySolutionTypeCollection.GetIfExists"); scope.Start(); try { - var response = _solutionTypeResourceSolutionTypesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, solutionType, cancellationToken: cancellationToken); + var response = _hybridConnectivitySolutionTypeSolutionTypesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, solutionType, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new SolutionTypeResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new HybridConnectivitySolutionTypeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -378,7 +378,7 @@ public virtual NullableResponse GetIfExists(string solutio } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -388,7 +388,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/SolutionTypeResourceData.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeData.Serialization.cs similarity index 64% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionTypeResourceData.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeData.Serialization.cs index 1d9efc8d3384a..cfb56c8801737 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionTypeResourceData.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeData.Serialization.cs @@ -15,11 +15,11 @@ namespace Azure.ResourceManager.HybridConnectivity { - public partial class SolutionTypeResourceData : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivitySolutionTypeData : 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, ModelRead /// 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(SolutionTypeResourceData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionTypeData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -44,19 +44,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - SolutionTypeResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivitySolutionTypeData 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(SolutionTypeResourceData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionTypeData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeSolutionTypeResourceData(document.RootElement, options); + return DeserializeHybridConnectivitySolutionTypeData(document.RootElement, options); } - internal static SolutionTypeResourceData DeserializeSolutionTypeResourceData(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivitySolutionTypeData DeserializeHybridConnectivitySolutionTypeData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -64,7 +64,7 @@ internal static SolutionTypeResourceData DeserializeSolutionTypeResourceData(Jso { return null; } - SolutionTypeProperties properties = default; + HybridConnectivitySolutionTypeProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -79,7 +79,7 @@ internal static SolutionTypeResourceData DeserializeSolutionTypeResourceData(Jso { continue; } - properties = SolutionTypeProperties.DeserializeSolutionTypeProperties(property.Value, options); + properties = HybridConnectivitySolutionTypeProperties.DeserializeHybridConnectivitySolutionTypeProperties(property.Value, options); continue; } if (property.NameEquals("id"u8)) @@ -112,7 +112,7 @@ internal static SolutionTypeResourceData DeserializeSolutionTypeResourceData(Jso } } serializedAdditionalRawData = rawDataDictionary; - return new SolutionTypeResourceData( + return new HybridConnectivitySolutionTypeData( id, name, type, @@ -121,35 +121,35 @@ internal static SolutionTypeResourceData DeserializeSolutionTypeResourceData(Jso 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(SolutionTypeResourceData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionTypeData)} does not support writing '{options.Format}' format."); } } - SolutionTypeResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivitySolutionTypeData 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 DeserializeSolutionTypeResourceData(document.RootElement, options); + return DeserializeHybridConnectivitySolutionTypeData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(SolutionTypeResourceData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionTypeData)} 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/SolutionTypeResourceData.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeData.cs similarity index 76% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionTypeResourceData.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeData.cs index 5318ae08d4dad..9f67bc2a90f7e 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionTypeResourceData.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeData.cs @@ -14,10 +14,10 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A class representing the SolutionTypeResource data model. + /// A class representing the HybridConnectivitySolutionType data model. /// Concrete proxy resource types can be created by aliasing this type using a specific property type. /// - public partial class SolutionTypeResourceData : ResourceData + public partial class HybridConnectivitySolutionTypeData : ResourceData { /// /// Keeps track of any properties unknown to the library. @@ -51,25 +51,25 @@ public partial class SolutionTypeResourceData : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public SolutionTypeResourceData() + /// Initializes a new instance of . + public HybridConnectivitySolutionTypeData() { } - /// 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 SolutionTypeResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SolutionTypeProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal HybridConnectivitySolutionTypeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, HybridConnectivitySolutionTypeProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; } /// The resource-specific properties for this resource. - public SolutionTypeProperties Properties { get; set; } + public HybridConnectivitySolutionTypeProperties Properties { get; set; } } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeResource.Serialization.cs new file mode 100644 index 0000000000000..f1d714daefc73 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeResource.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 HybridConnectivitySolutionTypeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + HybridConnectivitySolutionTypeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + HybridConnectivitySolutionTypeData 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/SolutionTypeResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeResource.cs similarity index 62% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionTypeResource.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeResource.cs index 9c458c5c7528f..3e3b126229b84 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionTypeResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/HybridConnectivitySolutionTypeResource.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.HybridConnectivity { /// - /// A Class representing a SolutionTypeResource 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 GetSolutionTypeResource method. - /// Otherwise you can get one from its parent resource using the GetSolutionTypeResource method. + /// A Class representing a HybridConnectivitySolutionType 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 GetHybridConnectivitySolutionTypeResource method. + /// Otherwise you can get one from its parent resource using the GetHybridConnectivitySolutionType method. /// - public partial class SolutionTypeResource : ArmResource + public partial class HybridConnectivitySolutionTypeResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. /// The subscriptionId. /// The resourceGroupName. /// The solutionType. @@ -33,35 +33,35 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _solutionTypeResourceSolutionTypesClientDiagnostics; - private readonly SolutionTypesRestOperations _solutionTypeResourceSolutionTypesRestClient; - private readonly SolutionTypeResourceData _data; + private readonly ClientDiagnostics _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics; + private readonly SolutionTypesRestOperations _hybridConnectivitySolutionTypeSolutionTypesRestClient; + private readonly HybridConnectivitySolutionTypeData _data; /// Gets the resource type for the operations. public static readonly ResourceType ResourceType = "Microsoft.HybridConnectivity/solutionTypes"; - /// Initializes a new instance of the class for mocking. - protected SolutionTypeResource() + /// Initializes a new instance of the class for mocking. + protected HybridConnectivitySolutionTypeResource() { } - /// 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 SolutionTypeResource(ArmClient client, SolutionTypeResourceData data) : this(client, data.Id) + internal HybridConnectivitySolutionTypeResource(ArmClient client, HybridConnectivitySolutionTypeData 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 SolutionTypeResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal HybridConnectivitySolutionTypeResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _solutionTypeResourceSolutionTypesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string solutionTypeResourceSolutionTypesApiVersion); - _solutionTypeResourceSolutionTypesRestClient = new SolutionTypesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, solutionTypeResourceSolutionTypesApiVersion); + _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridConnectivity", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string hybridConnectivitySolutionTypeSolutionTypesApiVersion); + _hybridConnectivitySolutionTypeSolutionTypesRestClient = new SolutionTypesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridConnectivitySolutionTypeSolutionTypesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,7 +72,7 @@ internal SolutionTypeResource(ArmClient client, ResourceIdentifier id) : base(cl /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual SolutionTypeResourceData Data + public virtual HybridConnectivitySolutionTypeData Data { get { @@ -105,21 +105,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 = _solutionTypeResourceSolutionTypesClientDiagnostics.CreateScope("SolutionTypeResource.Get"); + using var scope = _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics.CreateScope("HybridConnectivitySolutionTypeResource.Get"); scope.Start(); try { - var response = await _solutionTypeResourceSolutionTypesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _hybridConnectivitySolutionTypeSolutionTypesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SolutionTypeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivitySolutionTypeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -145,21 +145,21 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _solutionTypeResourceSolutionTypesClientDiagnostics.CreateScope("SolutionTypeResource.Get"); + using var scope = _hybridConnectivitySolutionTypeSolutionTypesClientDiagnostics.CreateScope("HybridConnectivitySolutionTypeResource.Get"); scope.Start(); try { - var response = _solutionTypeResourceSolutionTypesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var response = _hybridConnectivitySolutionTypeSolutionTypesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SolutionTypeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new HybridConnectivitySolutionTypeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityOperationStatusResultOperationSource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityOperationStatusResultOperationSource.cs new file mode 100644 index 0000000000000..50cc72b8a2377 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityOperationStatusResultOperationSource.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.ResourceManager.HybridConnectivity.Models; + +namespace Azure.ResourceManager.HybridConnectivity +{ + internal class HybridConnectivityOperationStatusResultOperationSource : IOperationSource + { + HybridConnectivityOperationStatusResult IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return HybridConnectivityOperationStatusResult.DeserializeHybridConnectivityOperationStatusResult(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return HybridConnectivityOperationStatusResult.DeserializeHybridConnectivityOperationStatusResult(document.RootElement); + } + } +} diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityPublicCloudConnectorOperationSource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityPublicCloudConnectorOperationSource.cs new file mode 100644 index 0000000000000..f545fb3a61228 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityPublicCloudConnectorOperationSource.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; + +namespace Azure.ResourceManager.HybridConnectivity +{ + internal class HybridConnectivityPublicCloudConnectorOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal HybridConnectivityPublicCloudConnectorOperationSource(ArmClient client) + { + _client = client; + } + + HybridConnectivityPublicCloudConnectorResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = HybridConnectivityPublicCloudConnectorData.DeserializeHybridConnectivityPublicCloudConnectorData(document.RootElement); + return new HybridConnectivityPublicCloudConnectorResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = HybridConnectivityPublicCloudConnectorData.DeserializeHybridConnectivityPublicCloudConnectorData(document.RootElement); + return new HybridConnectivityPublicCloudConnectorResource(_client, data); + } + } +} diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/OperationStatusResultOperationSource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/OperationStatusResultOperationSource.cs deleted file mode 100644 index 27345abe2bee5..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/OperationStatusResultOperationSource.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.ResourceManager.HybridConnectivity.Models; - -namespace Azure.ResourceManager.HybridConnectivity -{ - internal class OperationStatusResultOperationSource : IOperationSource - { - OperationStatusResult IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - return OperationStatusResult.DeserializeOperationStatusResult(document.RootElement); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - return OperationStatusResult.DeserializeOperationStatusResult(document.RootElement); - } - } -} diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/PublicCloudConnectorOperationSource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/PublicCloudConnectorOperationSource.cs deleted file mode 100644 index 4cc6921659312..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/PublicCloudConnectorOperationSource.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; - -namespace Azure.ResourceManager.HybridConnectivity -{ - internal class PublicCloudConnectorOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal PublicCloudConnectorOperationSource(ArmClient client) - { - _client = client; - } - - PublicCloudConnectorResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = PublicCloudConnectorData.DeserializePublicCloudConnectorData(document.RootElement); - return new PublicCloudConnectorResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = PublicCloudConnectorData.DeserializePublicCloudConnectorData(document.RootElement); - return new PublicCloudConnectorResource(_client, data); - } - } -} diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointType.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointType.cs deleted file mode 100644 index edc8cf98feda8..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointType.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 -{ - /// The type of endpoint. - public readonly partial struct EndpointType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public EndpointType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string DefaultValue = "default"; - private const string CustomValue = "custom"; - - /// default. - public static EndpointType Default { get; } = new EndpointType(DefaultValue); - /// custom. - public static EndpointType Custom { get; } = new EndpointType(CustomValue); - /// Determines if two values are the same. - public static bool operator ==(EndpointType left, EndpointType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(EndpointType left, EndpointType right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator EndpointType(string value) => new EndpointType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is EndpointType other && Equals(other); - /// - public bool Equals(EndpointType 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/EndpointsList.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointsList.Serialization.cs index 307404faed6db..29358303372b6 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointsList.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointsList.Serialization.cs @@ -87,7 +87,7 @@ internal static EndpointsList DeserializeEndpointsList(JsonElement element, Mode return null; } string nextLink = default; - IReadOnlyList value = default; + IReadOnlyList value = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -103,10 +103,10 @@ internal static EndpointsList DeserializeEndpointsList(JsonElement element, Mode { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(EndpointResourceData.DeserializeEndpointResourceData(item, options)); + array.Add(HybridConnectivityEndpointData.DeserializeHybridConnectivityEndpointData(item, options)); } value = array; continue; @@ -117,7 +117,7 @@ internal static EndpointsList DeserializeEndpointsList(JsonElement element, Mode } } serializedAdditionalRawData = rawDataDictionary; - return new EndpointsList(nextLink, value ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new EndpointsList(nextLink, value ?? new ChangeTrackingList(), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointsList.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointsList.cs index 4f30d4c0eb0d2..11191beb2d2aa 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointsList.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointsList.cs @@ -48,14 +48,14 @@ internal partial class EndpointsList /// Initializes a new instance of . internal EndpointsList() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of . /// The link used to get the next page of endpoints list. /// The list of endpoint. /// Keeps track of any properties unknown to the library. - internal EndpointsList(string nextLink, IReadOnlyList value, IDictionary serializedAdditionalRawData) + internal EndpointsList(string nextLink, IReadOnlyList value, IDictionary serializedAdditionalRawData) { NextLink = nextLink; Value = value; @@ -65,6 +65,6 @@ internal EndpointsList(string nextLink, IReadOnlyList valu /// The link used to get the next page of endpoints list. public string NextLink { get; } /// The list of endpoint. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.Serialization.cs index e3e5433fa9822..f7dc5eb3647b8 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.Serialization.cs @@ -83,7 +83,7 @@ internal static HybridConnectivityEndpointProperties DeserializeHybridConnectivi { return null; } - EndpointType type = default; + HybridConnectivityEndpointType type = default; ResourceIdentifier resourceId = default; string provisioningState = default; IDictionary serializedAdditionalRawData = default; @@ -92,7 +92,7 @@ internal static HybridConnectivityEndpointProperties DeserializeHybridConnectivi { if (property.NameEquals("type"u8)) { - type = new EndpointType(property.Value.GetString()); + type = new HybridConnectivityEndpointType(property.Value.GetString()); continue; } if (property.NameEquals("resourceId"u8)) diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.cs index 961a7274b5602..24ac4cfe7b5b1 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointProperties.cs @@ -48,7 +48,7 @@ public partial class HybridConnectivityEndpointProperties /// Initializes a new instance of . /// The type of endpoint. - public HybridConnectivityEndpointProperties(EndpointType endpointType) + public HybridConnectivityEndpointProperties(HybridConnectivityEndpointType endpointType) { EndpointType = endpointType; } @@ -58,7 +58,7 @@ public HybridConnectivityEndpointProperties(EndpointType endpointType) /// The resource Id of the connectivity endpoint (optional). /// The resource provisioning state. /// Keeps track of any properties unknown to the library. - internal HybridConnectivityEndpointProperties(EndpointType endpointType, ResourceIdentifier resourceId, string provisioningState, IDictionary serializedAdditionalRawData) + internal HybridConnectivityEndpointProperties(HybridConnectivityEndpointType endpointType, ResourceIdentifier resourceId, string provisioningState, IDictionary serializedAdditionalRawData) { EndpointType = endpointType; ResourceId = resourceId; @@ -72,7 +72,7 @@ internal HybridConnectivityEndpointProperties() } /// The type of endpoint. - public EndpointType EndpointType { get; set; } + public HybridConnectivityEndpointType EndpointType { get; set; } /// The resource Id of the connectivity endpoint (optional). public ResourceIdentifier ResourceId { get; set; } /// The resource provisioning state. diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointType.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointType.cs new file mode 100644 index 0000000000000..9461f43defb15 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityEndpointType.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 +{ + /// The type of endpoint. + public readonly partial struct HybridConnectivityEndpointType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public HybridConnectivityEndpointType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DefaultValue = "default"; + private const string CustomValue = "custom"; + + /// default. + public static HybridConnectivityEndpointType Default { get; } = new HybridConnectivityEndpointType(DefaultValue); + /// custom. + public static HybridConnectivityEndpointType Custom { get; } = new HybridConnectivityEndpointType(CustomValue); + /// Determines if two values are the same. + public static bool operator ==(HybridConnectivityEndpointType left, HybridConnectivityEndpointType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(HybridConnectivityEndpointType left, HybridConnectivityEndpointType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator HybridConnectivityEndpointType(string value) => new HybridConnectivityEndpointType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HybridConnectivityEndpointType other && Equals(other); + /// + public bool Equals(HybridConnectivityEndpointType 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/OperationStatusResult.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityOperationStatusResult.Serialization.cs similarity index 75% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/OperationStatusResult.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityOperationStatusResult.Serialization.cs index fd684fa9500ea..312f1480e6284 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/OperationStatusResult.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityOperationStatusResult.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { - public partial class OperationStatusResult : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivityOperationStatusResult : 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, ModelReaderW /// 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(OperationStatusResult)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityOperationStatusResult)} does not support writing '{format}' format."); } if (Optional.IsDefined(Id)) @@ -98,19 +98,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - OperationStatusResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivityOperationStatusResult 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(OperationStatusResult)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityOperationStatusResult)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeOperationStatusResult(document.RootElement, options); + return DeserializeHybridConnectivityOperationStatusResult(document.RootElement, options); } - internal static OperationStatusResult DeserializeOperationStatusResult(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivityOperationStatusResult DeserializeHybridConnectivityOperationStatusResult(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -125,7 +125,7 @@ internal static OperationStatusResult DeserializeOperationStatusResult(JsonEleme float? percentComplete = default; DateTimeOffset? startTime = default; DateTimeOffset? endTime = default; - IReadOnlyList operations = default; + IReadOnlyList operations = default; ResponseError error = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -192,10 +192,10 @@ internal static OperationStatusResult DeserializeOperationStatusResult(JsonEleme { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(DeserializeOperationStatusResult(item, options)); + array.Add(DeserializeHybridConnectivityOperationStatusResult(item, options)); } operations = array; continue; @@ -215,7 +215,7 @@ internal static OperationStatusResult DeserializeOperationStatusResult(JsonEleme } } serializedAdditionalRawData = rawDataDictionary; - return new OperationStatusResult( + return new HybridConnectivityOperationStatusResult( id, resourceId, name, @@ -223,40 +223,40 @@ internal static OperationStatusResult DeserializeOperationStatusResult(JsonEleme percentComplete, startTime, endTime, - operations ?? new ChangeTrackingList(), + operations ?? new ChangeTrackingList(), error, 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(OperationStatusResult)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityOperationStatusResult)} does not support writing '{options.Format}' format."); } } - OperationStatusResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivityOperationStatusResult 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 DeserializeOperationStatusResult(document.RootElement, options); + return DeserializeHybridConnectivityOperationStatusResult(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(OperationStatusResult)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityOperationStatusResult)} 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/OperationStatusResult.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityOperationStatusResult.cs similarity index 79% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/OperationStatusResult.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityOperationStatusResult.cs index 9b129e1242e78..849155e12e103 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/OperationStatusResult.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityOperationStatusResult.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { /// The current status of an async operation. - public partial class OperationStatusResult + public partial class HybridConnectivityOperationStatusResult { /// /// Keeps track of any properties unknown to the library. @@ -46,18 +46,18 @@ public partial class OperationStatusResult /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// Operation status. /// is null. - internal OperationStatusResult(string status) + internal HybridConnectivityOperationStatusResult(string status) { Argument.AssertNotNull(status, nameof(status)); Status = status; - Operations = new ChangeTrackingList(); + Operations = new ChangeTrackingList(); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Fully qualified ID for the async operation. /// Fully qualified ID of the resource against which the original async operation was started. /// Name of the async operation. @@ -68,7 +68,7 @@ internal OperationStatusResult(string status) /// The operations list. /// If present, details of the operation error. /// Keeps track of any properties unknown to the library. - internal OperationStatusResult(ResourceIdentifier id, ResourceIdentifier resourceId, string name, string status, float? percentComplete, DateTimeOffset? startOn, DateTimeOffset? endOn, IReadOnlyList operations, ResponseError error, IDictionary serializedAdditionalRawData) + internal HybridConnectivityOperationStatusResult(ResourceIdentifier id, ResourceIdentifier resourceId, string name, string status, float? percentComplete, DateTimeOffset? startOn, DateTimeOffset? endOn, IReadOnlyList operations, ResponseError error, IDictionary serializedAdditionalRawData) { Id = id; ResourceId = resourceId; @@ -82,8 +82,8 @@ internal OperationStatusResult(ResourceIdentifier id, ResourceIdentifier resourc _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal OperationStatusResult() + /// Initializes a new instance of for deserialization. + internal HybridConnectivityOperationStatusResult() { } @@ -102,7 +102,7 @@ internal OperationStatusResult() /// The end time of the operation. public DateTimeOffset? EndOn { get; } /// The operations list. - public IReadOnlyList Operations { get; } + public IReadOnlyList Operations { get; } /// If present, details of the operation error. public ResponseError Error { get; } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorPatch.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityPublicCloudConnectorPatch.Serialization.cs similarity index 70% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorPatch.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityPublicCloudConnectorPatch.Serialization.cs index 25f45dc723f1e..3e763817ed94e 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorPatch.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityPublicCloudConnectorPatch.Serialization.cs @@ -14,11 +14,11 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { - public partial class PublicCloudConnectorPatch : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivityPublicCloudConnectorPatch : 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); @@ -29,10 +29,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRea /// 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(PublicCloudConnectorPatch)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityPublicCloudConnectorPatch)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -54,19 +54,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - PublicCloudConnectorPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivityPublicCloudConnectorPatch 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(PublicCloudConnectorPatch)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityPublicCloudConnectorPatch)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializePublicCloudConnectorPatch(document.RootElement, options); + return DeserializeHybridConnectivityPublicCloudConnectorPatch(document.RootElement, options); } - internal static PublicCloudConnectorPatch DeserializePublicCloudConnectorPatch(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivityPublicCloudConnectorPatch DeserializeHybridConnectivityPublicCloudConnectorPatch(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -137,7 +137,7 @@ internal static PublicCloudConnectorPatch DeserializePublicCloudConnectorPatch(J } } serializedAdditionalRawData = rawDataDictionary; - return new PublicCloudConnectorPatch( + return new HybridConnectivityPublicCloudConnectorPatch( id, name, type, @@ -147,35 +147,35 @@ internal static PublicCloudConnectorPatch DeserializePublicCloudConnectorPatch(J 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(PublicCloudConnectorPatch)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityPublicCloudConnectorPatch)} does not support writing '{options.Format}' format."); } } - PublicCloudConnectorPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivityPublicCloudConnectorPatch 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 DeserializePublicCloudConnectorPatch(document.RootElement, options); + return DeserializeHybridConnectivityPublicCloudConnectorPatch(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(PublicCloudConnectorPatch)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityPublicCloudConnectorPatch)} 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/PublicCloudConnectorPatch.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityPublicCloudConnectorPatch.cs similarity index 81% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorPatch.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityPublicCloudConnectorPatch.cs index 03f0267e037a8..0b1b6313571de 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorPatch.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityPublicCloudConnectorPatch.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { /// Public Cloud Connector. - public partial class PublicCloudConnectorPatch : ResourceData + public partial class HybridConnectivityPublicCloudConnectorPatch : ResourceData { /// /// Keeps track of any properties unknown to the library. @@ -47,13 +47,13 @@ public partial class PublicCloudConnectorPatch : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public PublicCloudConnectorPatch() + /// Initializes a new instance of . + public HybridConnectivityPublicCloudConnectorPatch() { Tags = new ChangeTrackingDictionary(); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. @@ -61,7 +61,7 @@ public PublicCloudConnectorPatch() /// The resource-specific properties for this resource. /// Resource tags. /// Keeps track of any properties unknown to the library. - internal PublicCloudConnectorPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, PublicCloudConnectorPropertiesUpdate properties, IDictionary tags, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal HybridConnectivityPublicCloudConnectorPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, PublicCloudConnectorPropertiesUpdate properties, IDictionary tags, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Properties = properties; Tags = tags; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceConfigurationResourcePatch.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityServiceConfigurationPatch.Serialization.cs similarity index 63% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceConfigurationResourcePatch.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityServiceConfigurationPatch.Serialization.cs index b4a0fa98e8741..d3123df90387f 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceConfigurationResourcePatch.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityServiceConfigurationPatch.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { - public partial class ServiceConfigurationResourcePatch : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivityServiceConfigurationPatch : 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, /// 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(ServiceConfigurationResourcePatch)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityServiceConfigurationPatch)} does not support writing '{format}' format."); } writer.WritePropertyName("properties"u8); @@ -59,19 +59,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ServiceConfigurationResourcePatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivityServiceConfigurationPatch 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(ServiceConfigurationResourcePatch)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityServiceConfigurationPatch)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeServiceConfigurationResourcePatch(document.RootElement, options); + return DeserializeHybridConnectivityServiceConfigurationPatch(document.RootElement, options); } - internal static ServiceConfigurationResourcePatch DeserializeServiceConfigurationResourcePatch(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivityServiceConfigurationPatch DeserializeHybridConnectivityServiceConfigurationPatch(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -111,38 +111,38 @@ internal static ServiceConfigurationResourcePatch DeserializeServiceConfiguratio } } serializedAdditionalRawData = rawDataDictionary; - return new ServiceConfigurationResourcePatch(port, serializedAdditionalRawData); + return new HybridConnectivityServiceConfigurationPatch(port, 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(ServiceConfigurationResourcePatch)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityServiceConfigurationPatch)} does not support writing '{options.Format}' format."); } } - ServiceConfigurationResourcePatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivityServiceConfigurationPatch 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 DeserializeServiceConfigurationResourcePatch(document.RootElement, options); + return DeserializeHybridConnectivityServiceConfigurationPatch(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ServiceConfigurationResourcePatch)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivityServiceConfigurationPatch)} 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/ServiceConfigurationResourcePatch.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityServiceConfigurationPatch.cs similarity index 81% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceConfigurationResourcePatch.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityServiceConfigurationPatch.cs index 4456b7913291b..21f403510321d 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceConfigurationResourcePatch.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivityServiceConfigurationPatch.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { /// The service details under service configuration for the target endpoint resource. - public partial class ServiceConfigurationResourcePatch + public partial class HybridConnectivityServiceConfigurationPatch { /// /// Keeps track of any properties unknown to the library. @@ -45,15 +45,15 @@ public partial class ServiceConfigurationResourcePatch /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public ServiceConfigurationResourcePatch() + /// Initializes a new instance of . + public HybridConnectivityServiceConfigurationPatch() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The port on which service is enabled. /// Keeps track of any properties unknown to the library. - internal ServiceConfigurationResourcePatch(long? port, IDictionary serializedAdditionalRawData) + internal HybridConnectivityServiceConfigurationPatch(long? port, IDictionary serializedAdditionalRawData) { Port = port; _serializedAdditionalRawData = serializedAdditionalRawData; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationPatch.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivitySolutionConfigurationPatch.Serialization.cs similarity index 65% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationPatch.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivitySolutionConfigurationPatch.Serialization.cs index c44e3632d7c5b..3958a70010ddc 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationPatch.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivitySolutionConfigurationPatch.Serialization.cs @@ -14,11 +14,11 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { - public partial class SolutionConfigurationPatch : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivitySolutionConfigurationPatch : 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); @@ -29,10 +29,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRe /// 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(SolutionConfigurationPatch)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionConfigurationPatch)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -43,19 +43,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - SolutionConfigurationPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivitySolutionConfigurationPatch 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(SolutionConfigurationPatch)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionConfigurationPatch)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeSolutionConfigurationPatch(document.RootElement, options); + return DeserializeHybridConnectivitySolutionConfigurationPatch(document.RootElement, options); } - internal static SolutionConfigurationPatch DeserializeSolutionConfigurationPatch(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivitySolutionConfigurationPatch DeserializeHybridConnectivitySolutionConfigurationPatch(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -111,7 +111,7 @@ internal static SolutionConfigurationPatch DeserializeSolutionConfigurationPatch } } serializedAdditionalRawData = rawDataDictionary; - return new SolutionConfigurationPatch( + return new HybridConnectivitySolutionConfigurationPatch( id, name, type, @@ -120,35 +120,35 @@ internal static SolutionConfigurationPatch DeserializeSolutionConfigurationPatch 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(SolutionConfigurationPatch)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionConfigurationPatch)} does not support writing '{options.Format}' format."); } } - SolutionConfigurationPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivitySolutionConfigurationPatch 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 DeserializeSolutionConfigurationPatch(document.RootElement, options); + return DeserializeHybridConnectivitySolutionConfigurationPatch(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(SolutionConfigurationPatch)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionConfigurationPatch)} 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/SolutionConfigurationPatch.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivitySolutionConfigurationPatch.cs similarity index 78% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationPatch.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivitySolutionConfigurationPatch.cs index a6f93517368da..d0fe59052e6a1 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationPatch.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivitySolutionConfigurationPatch.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { /// Solution Configuration. - public partial class SolutionConfigurationPatch : ResourceData + public partial class HybridConnectivitySolutionConfigurationPatch : ResourceData { /// /// Keeps track of any properties unknown to the library. @@ -47,19 +47,19 @@ public partial class SolutionConfigurationPatch : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public SolutionConfigurationPatch() + /// Initializes a new instance of . + public HybridConnectivitySolutionConfigurationPatch() { } - /// 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 SolutionConfigurationPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SolutionConfigurationPropertiesUpdate properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal HybridConnectivitySolutionConfigurationPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SolutionConfigurationPropertiesUpdate properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionTypeProperties.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivitySolutionTypeProperties.Serialization.cs similarity index 70% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionTypeProperties.Serialization.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivitySolutionTypeProperties.Serialization.cs index eb6b48e035381..977de90b54d3e 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionTypeProperties.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivitySolutionTypeProperties.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { - public partial class SolutionTypeProperties : IUtf8JsonSerializable, IJsonModel + public partial class HybridConnectivitySolutionTypeProperties : 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, ModelReader /// 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(SolutionTypeProperties)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionTypeProperties)} does not support writing '{format}' format."); } if (Optional.IsDefined(SolutionType)) @@ -81,19 +81,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - SolutionTypeProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + HybridConnectivitySolutionTypeProperties 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(SolutionTypeProperties)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionTypeProperties)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeSolutionTypeProperties(document.RootElement, options); + return DeserializeHybridConnectivitySolutionTypeProperties(document.RootElement, options); } - internal static SolutionTypeProperties DeserializeSolutionTypeProperties(JsonElement element, ModelReaderWriterOptions options = null) + internal static HybridConnectivitySolutionTypeProperties DeserializeHybridConnectivitySolutionTypeProperties(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -153,38 +153,38 @@ internal static SolutionTypeProperties DeserializeSolutionTypeProperties(JsonEle } } serializedAdditionalRawData = rawDataDictionary; - return new SolutionTypeProperties(solutionType, description, supportedAzureRegions ?? new ChangeTrackingList(), solutionSettings ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new HybridConnectivitySolutionTypeProperties(solutionType, description, supportedAzureRegions ?? new ChangeTrackingList(), solutionSettings ?? new ChangeTrackingList(), 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(SolutionTypeProperties)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionTypeProperties)} does not support writing '{options.Format}' format."); } } - SolutionTypeProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + HybridConnectivitySolutionTypeProperties 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 DeserializeSolutionTypeProperties(document.RootElement, options); + return DeserializeHybridConnectivitySolutionTypeProperties(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(SolutionTypeProperties)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(HybridConnectivitySolutionTypeProperties)} 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/SolutionTypeProperties.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivitySolutionTypeProperties.cs similarity index 83% rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionTypeProperties.cs rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivitySolutionTypeProperties.cs index 0d1b6588e4702..499383e6809f3 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionTypeProperties.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/HybridConnectivitySolutionTypeProperties.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Models { /// Definition of Solution type resource. - public partial class SolutionTypeProperties + public partial class HybridConnectivitySolutionTypeProperties { /// /// Keeps track of any properties unknown to the library. @@ -45,20 +45,20 @@ public partial class SolutionTypeProperties /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public SolutionTypeProperties() + /// Initializes a new instance of . + public HybridConnectivitySolutionTypeProperties() { SupportedAzureRegions = new ChangeTrackingList(); SolutionSettings = new ChangeTrackingList(); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The name of the solution type. /// Short description of solution type. /// The locations this solution is supported in. /// Array of solution settings and its description. /// Keeps track of any properties unknown to the library. - internal SolutionTypeProperties(string solutionType, string description, IList supportedAzureRegions, IList solutionSettings, IDictionary serializedAdditionalRawData) + internal HybridConnectivitySolutionTypeProperties(string solutionType, string description, IList supportedAzureRegions, IList solutionSettings, IDictionary serializedAdditionalRawData) { SolutionType = solutionType; Description = description; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.Serialization.cs index da77768334731..fcf01513fb2ca 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.Serialization.cs @@ -46,7 +46,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit if (Optional.IsDefined(ServerId)) { writer.WritePropertyName("serverId"u8); - writer.WriteStringValue(ServerId); + writer.WriteStringValue(ServerId.Value); } if (Optional.IsDefined(TenantId)) { @@ -126,7 +126,7 @@ internal static IngressGatewayAsset DeserializeIngressGatewayAsset(JsonElement e return null; } string hostname = default; - ResourceIdentifier serverId = default; + Guid? serverId = default; Guid? tenantId = default; string namespaceName = default; string namespaceNameSuffix = default; @@ -167,7 +167,7 @@ internal static IngressGatewayAsset DeserializeIngressGatewayAsset(JsonElement e { continue; } - serverId = new ResourceIdentifier(property1.Value.GetString()); + serverId = property1.Value.GetGuid(); continue; } if (property1.NameEquals("tenantId"u8)) diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.cs index 92b029b525c63..04fc289523ca5 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.ResourceManager.HybridConnectivity.Models { @@ -62,7 +61,7 @@ internal IngressGatewayAsset() /// The expiration of access key in unix time. /// The token to access the enabled service. /// Keeps track of any properties unknown to the library. - internal IngressGatewayAsset(string hostname, ResourceIdentifier serverId, Guid? tenantId, string namespaceName, string namespaceNameSuffix, string hybridConnectionName, string accessKey, long? expiresOn, string serviceConfigurationToken, IDictionary serializedAdditionalRawData) + internal IngressGatewayAsset(string hostname, Guid? serverId, Guid? tenantId, string namespaceName, string namespaceNameSuffix, string hybridConnectionName, string accessKey, long? expiresOn, string serviceConfigurationToken, IDictionary serializedAdditionalRawData) { Hostname = hostname; ServerId = serverId; @@ -79,7 +78,7 @@ internal IngressGatewayAsset(string hostname, ResourceIdentifier serverId, Guid? /// The ingress hostname. public string Hostname { get; } /// The arc ingress gateway server app id. - public ResourceIdentifier ServerId { get; } + public Guid? ServerId { get; } /// The target resource home tenant id. public Guid? TenantId { get; } /// The namespace name. 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 45e4a8de24c49..478a5e4d8f776 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(HybridConnectivityInventoryResourceData.DeserializeHybridConnectivityInventoryResourceData(item, options)); + array.Add(HybridConnectivityInventoryData.DeserializeHybridConnectivityInventoryData(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 837f05c7fc8ff..662d770455b10 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 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/PublicCloudConnectorListResult.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorListResult.Serialization.cs index da8c26834b0bd..78ba2cc28dcaa 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorListResult.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorListResult.Serialization.cs @@ -83,7 +83,7 @@ internal static PublicCloudConnectorListResult DeserializePublicCloudConnectorLi { return null; } - IReadOnlyList value = default; + IReadOnlyList value = default; Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -91,10 +91,10 @@ internal static PublicCloudConnectorListResult DeserializePublicCloudConnectorLi { if (property.NameEquals("value"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(PublicCloudConnectorData.DeserializePublicCloudConnectorData(item, options)); + array.Add(HybridConnectivityPublicCloudConnectorData.DeserializeHybridConnectivityPublicCloudConnectorData(item, options)); } value = array; continue; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorListResult.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorListResult.cs index 4702336687491..072374769512f 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorListResult.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/PublicCloudConnectorListResult.cs @@ -49,7 +49,7 @@ internal partial class PublicCloudConnectorListResult /// Initializes a new instance of . /// The PublicCloudConnector items on this page. /// is null. - internal PublicCloudConnectorListResult(IEnumerable value) + internal PublicCloudConnectorListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); @@ -60,7 +60,7 @@ internal PublicCloudConnectorListResult(IEnumerable va /// The PublicCloudConnector items on this page. /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal PublicCloudConnectorListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) + internal PublicCloudConnectorListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; @@ -73,7 +73,7 @@ internal PublicCloudConnectorListResult() } /// The PublicCloudConnector 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/ServiceConfigurationList.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceConfigurationList.Serialization.cs index be1876f939bff..a9486327fddbd 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceConfigurationList.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceConfigurationList.Serialization.cs @@ -86,7 +86,7 @@ internal static ServiceConfigurationList DeserializeServiceConfigurationList(Jso { return null; } - IReadOnlyList value = default; + IReadOnlyList value = default; string nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -98,10 +98,10 @@ internal static ServiceConfigurationList DeserializeServiceConfigurationList(Jso { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ServiceConfigurationResourceData.DeserializeServiceConfigurationResourceData(item, options)); + array.Add(HybridConnectivityServiceConfigurationData.DeserializeHybridConnectivityServiceConfigurationData(item, options)); } value = array; continue; @@ -117,7 +117,7 @@ internal static ServiceConfigurationList DeserializeServiceConfigurationList(Jso } } serializedAdditionalRawData = rawDataDictionary; - return new ServiceConfigurationList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new ServiceConfigurationList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceConfigurationList.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceConfigurationList.cs index ac7fa853b9e46..4c05a71d25962 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceConfigurationList.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ServiceConfigurationList.cs @@ -48,14 +48,14 @@ internal partial class ServiceConfigurationList /// Initializes a new instance of . internal ServiceConfigurationList() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of . /// The list of service configuration. /// The link to fetch the next page of connected cluster. /// Keeps track of any properties unknown to the library. - internal ServiceConfigurationList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal ServiceConfigurationList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; @@ -63,7 +63,7 @@ internal ServiceConfigurationList(IReadOnlyList The list of service configuration. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The link to fetch the next page of connected cluster. public string NextLink { get; } } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationListResult.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationListResult.Serialization.cs index 96ad933380afc..7c30ec615405f 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationListResult.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationListResult.Serialization.cs @@ -83,7 +83,7 @@ internal static SolutionConfigurationListResult DeserializeSolutionConfiguration { return null; } - IReadOnlyList value = default; + IReadOnlyList value = default; Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -91,10 +91,10 @@ internal static SolutionConfigurationListResult DeserializeSolutionConfiguration { if (property.NameEquals("value"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(SolutionConfigurationData.DeserializeSolutionConfigurationData(item, options)); + array.Add(HybridConnectivitySolutionConfigurationData.DeserializeHybridConnectivitySolutionConfigurationData(item, options)); } value = array; continue; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationListResult.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationListResult.cs index 4b86d7a296a1b..dd983b4821e27 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationListResult.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionConfigurationListResult.cs @@ -49,7 +49,7 @@ internal partial class SolutionConfigurationListResult /// Initializes a new instance of . /// The SolutionConfiguration items on this page. /// is null. - internal SolutionConfigurationListResult(IEnumerable value) + internal SolutionConfigurationListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); @@ -60,7 +60,7 @@ internal SolutionConfigurationListResult(IEnumerable /// The SolutionConfiguration items on this page. /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal SolutionConfigurationListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) + internal SolutionConfigurationListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; @@ -73,7 +73,7 @@ internal SolutionConfigurationListResult() } /// The SolutionConfiguration 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/SolutionTypeResourceListResult.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionTypeResourceListResult.Serialization.cs index 0a31c1503b840..3b5c791c11e0b 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionTypeResourceListResult.Serialization.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionTypeResourceListResult.Serialization.cs @@ -83,7 +83,7 @@ internal static SolutionTypeResourceListResult DeserializeSolutionTypeResourceLi { return null; } - IReadOnlyList value = default; + IReadOnlyList value = default; Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -91,10 +91,10 @@ internal static SolutionTypeResourceListResult DeserializeSolutionTypeResourceLi { if (property.NameEquals("value"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(SolutionTypeResourceData.DeserializeSolutionTypeResourceData(item, options)); + array.Add(HybridConnectivitySolutionTypeData.DeserializeHybridConnectivitySolutionTypeData(item, options)); } value = array; continue; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionTypeResourceListResult.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionTypeResourceListResult.cs index 9f13c5fe866f2..cea4f8ab32bf8 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionTypeResourceListResult.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/SolutionTypeResourceListResult.cs @@ -49,7 +49,7 @@ internal partial class SolutionTypeResourceListResult /// Initializes a new instance of . /// The SolutionTypeResource items on this page. /// is null. - internal SolutionTypeResourceListResult(IEnumerable value) + internal SolutionTypeResourceListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); @@ -60,7 +60,7 @@ internal SolutionTypeResourceListResult(IEnumerable va /// The SolutionTypeResource items on this page. /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal SolutionTypeResourceListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) + internal SolutionTypeResourceListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; @@ -73,7 +73,7 @@ internal SolutionTypeResourceListResult() } /// The SolutionTypeResource 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/PublicCloudConnectorResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/PublicCloudConnectorResource.Serialization.cs deleted file mode 100644 index d83b87210bb2b..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/PublicCloudConnectorResource.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 PublicCloudConnectorResource : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - PublicCloudConnectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); - - PublicCloudConnectorData 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/RestOperations/EndpointsRestOperations.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/EndpointsRestOperations.cs index 1a93a8c445bc9..9a03495869b7a 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/EndpointsRestOperations.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/EndpointsRestOperations.cs @@ -36,18 +36,18 @@ public EndpointsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListRequestUri(string scope) + internal RequestUriBuilder CreateListRequestUri(string resourceUri) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListRequest(string scope) + internal HttpMessage CreateListRequest(string resourceUri) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -55,7 +55,7 @@ internal HttpMessage CreateListRequest(string scope) var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; @@ -65,14 +65,14 @@ internal HttpMessage CreateListRequest(string scope) } /// List of endpoints to the target resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The cancellation token to use. - /// is null. - public async Task> ListAsync(string scope, CancellationToken cancellationToken = default) + /// is null. + public async Task> ListAsync(string resourceUri, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); - using var message = CreateListRequest(scope); + using var message = CreateListRequest(resourceUri); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -89,14 +89,14 @@ public async Task> ListAsync(string scope, CancellationT } /// List of endpoints to the target resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The cancellation token to use. - /// is null. - public Response List(string scope, CancellationToken cancellationToken = default) + /// is null. + public Response List(string resourceUri, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); - using var message = CreateListRequest(scope); + using var message = CreateListRequest(resourceUri); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -112,19 +112,19 @@ public Response List(string scope, CancellationToken cancellation } } - internal RequestUriBuilder CreateGetRequestUri(string scope, string endpointName) + internal RequestUriBuilder CreateGetRequestUri(string resourceUri, string endpointName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetRequest(string scope, string endpointName) + internal HttpMessage CreateGetRequest(string resourceUri, string endpointName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -132,7 +132,7 @@ internal HttpMessage CreateGetRequest(string scope, string endpointName) var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendQuery("api-version", _apiVersion, true); @@ -143,74 +143,74 @@ internal HttpMessage CreateGetRequest(string scope, string endpointName) } /// Gets the endpoint to the resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The cancellation token to use. - /// or is null. - public async Task> GetAsync(string scope, string endpointName, CancellationToken cancellationToken = default) + /// or is null. + public async Task> GetAsync(string resourceUri, string endpointName, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var message = CreateGetRequest(scope, endpointName); + using var message = CreateGetRequest(resourceUri, endpointName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - EndpointResourceData value = default; + HybridConnectivityEndpointData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = EndpointResourceData.DeserializeEndpointResourceData(document.RootElement); + value = HybridConnectivityEndpointData.DeserializeHybridConnectivityEndpointData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((EndpointResourceData)null, message.Response); + return Response.FromValue((HybridConnectivityEndpointData)null, message.Response); default: throw new RequestFailedException(message.Response); } } /// Gets the endpoint to the resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The cancellation token to use. - /// or is null. - public Response Get(string scope, string endpointName, CancellationToken cancellationToken = default) + /// or is null. + public Response Get(string resourceUri, string endpointName, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var message = CreateGetRequest(scope, endpointName); + using var message = CreateGetRequest(resourceUri, endpointName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - EndpointResourceData value = default; + HybridConnectivityEndpointData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = EndpointResourceData.DeserializeEndpointResourceData(document.RootElement); + value = HybridConnectivityEndpointData.DeserializeHybridConnectivityEndpointData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((EndpointResourceData)null, message.Response); + return Response.FromValue((HybridConnectivityEndpointData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string scope, string endpointName, EndpointResourceData data) + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceUri, string endpointName, HybridConnectivityEndpointData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCreateOrUpdateRequest(string scope, string endpointName, EndpointResourceData data) + internal HttpMessage CreateCreateOrUpdateRequest(string resourceUri, string endpointName, HybridConnectivityEndpointData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -218,7 +218,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string scope, string endpointNa var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendQuery("api-version", _apiVersion, true); @@ -233,26 +233,26 @@ internal HttpMessage CreateCreateOrUpdateRequest(string scope, string endpointNa } /// Create or update the endpoint to the target resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// Endpoint details. /// The cancellation token to use. - /// , or is null. - public async Task> CreateOrUpdateAsync(string scope, string endpointName, EndpointResourceData data, CancellationToken cancellationToken = default) + /// , or is null. + public async Task> CreateOrUpdateAsync(string resourceUri, string endpointName, HybridConnectivityEndpointData data, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateOrUpdateRequest(scope, endpointName, data); + using var message = CreateCreateOrUpdateRequest(resourceUri, endpointName, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - EndpointResourceData value = default; + HybridConnectivityEndpointData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = EndpointResourceData.DeserializeEndpointResourceData(document.RootElement); + value = HybridConnectivityEndpointData.DeserializeHybridConnectivityEndpointData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -261,26 +261,26 @@ public async Task> CreateOrUpdateAsync(string sco } /// Create or update the endpoint to the target resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// Endpoint details. /// The cancellation token to use. - /// , or is null. - public Response CreateOrUpdate(string scope, string endpointName, EndpointResourceData data, CancellationToken cancellationToken = default) + /// , or is null. + public Response CreateOrUpdate(string resourceUri, string endpointName, HybridConnectivityEndpointData data, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateOrUpdateRequest(scope, endpointName, data); + using var message = CreateCreateOrUpdateRequest(resourceUri, endpointName, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - EndpointResourceData value = default; + HybridConnectivityEndpointData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = EndpointResourceData.DeserializeEndpointResourceData(document.RootElement); + value = HybridConnectivityEndpointData.DeserializeHybridConnectivityEndpointData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -288,19 +288,19 @@ public Response CreateOrUpdate(string scope, string endpoi } } - internal RequestUriBuilder CreateUpdateRequestUri(string scope, string endpointName, EndpointResourceData data) + internal RequestUriBuilder CreateUpdateRequestUri(string resourceUri, string endpointName, HybridConnectivityEndpointData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateUpdateRequest(string scope, string endpointName, EndpointResourceData data) + internal HttpMessage CreateUpdateRequest(string resourceUri, string endpointName, HybridConnectivityEndpointData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -308,7 +308,7 @@ internal HttpMessage CreateUpdateRequest(string scope, string endpointName, Endp var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendQuery("api-version", _apiVersion, true); @@ -323,26 +323,26 @@ internal HttpMessage CreateUpdateRequest(string scope, string endpointName, Endp } /// Update the endpoint to the target resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// Endpoint details. /// The cancellation token to use. - /// , or is null. - public async Task> UpdateAsync(string scope, string endpointName, EndpointResourceData data, CancellationToken cancellationToken = default) + /// , or is null. + public async Task> UpdateAsync(string resourceUri, string endpointName, HybridConnectivityEndpointData data, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateRequest(scope, endpointName, data); + using var message = CreateUpdateRequest(resourceUri, endpointName, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - EndpointResourceData value = default; + HybridConnectivityEndpointData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = EndpointResourceData.DeserializeEndpointResourceData(document.RootElement); + value = HybridConnectivityEndpointData.DeserializeHybridConnectivityEndpointData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -351,26 +351,26 @@ public async Task> UpdateAsync(string scope, stri } /// Update the endpoint to the target resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// Endpoint details. /// The cancellation token to use. - /// , or is null. - public Response Update(string scope, string endpointName, EndpointResourceData data, CancellationToken cancellationToken = default) + /// , or is null. + public Response Update(string resourceUri, string endpointName, HybridConnectivityEndpointData data, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateRequest(scope, endpointName, data); + using var message = CreateUpdateRequest(resourceUri, endpointName, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - EndpointResourceData value = default; + HybridConnectivityEndpointData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = EndpointResourceData.DeserializeEndpointResourceData(document.RootElement); + value = HybridConnectivityEndpointData.DeserializeHybridConnectivityEndpointData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -378,19 +378,19 @@ public Response Update(string scope, string endpointName, } } - internal RequestUriBuilder CreateDeleteRequestUri(string scope, string endpointName) + internal RequestUriBuilder CreateDeleteRequestUri(string resourceUri, string endpointName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateDeleteRequest(string scope, string endpointName) + internal HttpMessage CreateDeleteRequest(string resourceUri, string endpointName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -398,7 +398,7 @@ internal HttpMessage CreateDeleteRequest(string scope, string endpointName) var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendQuery("api-version", _apiVersion, true); @@ -409,16 +409,16 @@ internal HttpMessage CreateDeleteRequest(string scope, string endpointName) } /// Deletes the endpoint access to the target resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The cancellation token to use. - /// or is null. - public async Task DeleteAsync(string scope, string endpointName, CancellationToken cancellationToken = default) + /// or is null. + public async Task DeleteAsync(string resourceUri, string endpointName, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var message = CreateDeleteRequest(scope, endpointName); + using var message = CreateDeleteRequest(resourceUri, endpointName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -431,16 +431,16 @@ public async Task DeleteAsync(string scope, string endpointName, Cance } /// Deletes the endpoint access to the target resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The cancellation token to use. - /// or is null. - public Response Delete(string scope, string endpointName, CancellationToken cancellationToken = default) + /// or is null. + public Response Delete(string resourceUri, string endpointName, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var message = CreateDeleteRequest(scope, endpointName); + using var message = CreateDeleteRequest(resourceUri, endpointName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -452,12 +452,12 @@ public Response Delete(string scope, string endpointName, CancellationToken canc } } - internal RequestUriBuilder CreateListCredentialsRequestUri(string scope, string endpointName, ListCredentialsContent content, long? expiresin) + internal RequestUriBuilder CreateListCredentialsRequestUri(string resourceUri, string endpointName, ListCredentialsContent content, long? expiresin) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/listCredentials", false); @@ -469,7 +469,7 @@ internal RequestUriBuilder CreateListCredentialsRequestUri(string scope, string return uri; } - internal HttpMessage CreateListCredentialsRequest(string scope, string endpointName, ListCredentialsContent content, long? expiresin) + internal HttpMessage CreateListCredentialsRequest(string resourceUri, string endpointName, ListCredentialsContent content, long? expiresin) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -477,7 +477,7 @@ internal HttpMessage CreateListCredentialsRequest(string scope, string endpointN var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/listCredentials", false); @@ -500,18 +500,18 @@ internal HttpMessage CreateListCredentialsRequest(string scope, string endpointN } /// Gets the endpoint access credentials to the resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// Object of type ListCredentialsRequest. /// The is how long the endpoint access token is valid (in seconds). /// The cancellation token to use. - /// or is null. - public async Task> ListCredentialsAsync(string scope, string endpointName, ListCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default) + /// or is null. + public async Task> ListCredentialsAsync(string resourceUri, string endpointName, ListCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var message = CreateListCredentialsRequest(scope, endpointName, content, expiresin); + using var message = CreateListCredentialsRequest(resourceUri, endpointName, content, expiresin); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -528,18 +528,18 @@ public async Task> ListCredentialsAsync(s } /// Gets the endpoint access credentials to the resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// Object of type ListCredentialsRequest. /// The is how long the endpoint access token is valid (in seconds). /// The cancellation token to use. - /// or is null. - public Response ListCredentials(string scope, string endpointName, ListCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default) + /// or is null. + public Response ListCredentials(string resourceUri, string endpointName, ListCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var message = CreateListCredentialsRequest(scope, endpointName, content, expiresin); + using var message = CreateListCredentialsRequest(resourceUri, endpointName, content, expiresin); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -555,12 +555,12 @@ public Response ListCredentials(string scope, stri } } - internal RequestUriBuilder CreateListIngressGatewayCredentialsRequestUri(string scope, string endpointName, ListIngressGatewayCredentialsContent content, long? expiresin) + internal RequestUriBuilder CreateListIngressGatewayCredentialsRequestUri(string resourceUri, string endpointName, ListIngressGatewayCredentialsContent content, long? expiresin) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/listIngressGatewayCredentials", false); @@ -572,7 +572,7 @@ internal RequestUriBuilder CreateListIngressGatewayCredentialsRequestUri(string return uri; } - internal HttpMessage CreateListIngressGatewayCredentialsRequest(string scope, string endpointName, ListIngressGatewayCredentialsContent content, long? expiresin) + internal HttpMessage CreateListIngressGatewayCredentialsRequest(string resourceUri, string endpointName, ListIngressGatewayCredentialsContent content, long? expiresin) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -580,7 +580,7 @@ internal HttpMessage CreateListIngressGatewayCredentialsRequest(string scope, st var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/listIngressGatewayCredentials", false); @@ -603,18 +603,18 @@ internal HttpMessage CreateListIngressGatewayCredentialsRequest(string scope, st } /// Gets the ingress gateway endpoint credentials. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// Object of type ListIngressGatewayCredentialsRequest. /// The is how long the endpoint access token is valid (in seconds). /// The cancellation token to use. - /// or is null. - public async Task> ListIngressGatewayCredentialsAsync(string scope, string endpointName, ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default) + /// or is null. + public async Task> ListIngressGatewayCredentialsAsync(string resourceUri, string endpointName, ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var message = CreateListIngressGatewayCredentialsRequest(scope, endpointName, content, expiresin); + using var message = CreateListIngressGatewayCredentialsRequest(resourceUri, endpointName, content, expiresin); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -631,18 +631,18 @@ public async Task> ListIngressGatewayCredentialsAs } /// Gets the ingress gateway endpoint credentials. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// Object of type ListIngressGatewayCredentialsRequest. /// The is how long the endpoint access token is valid (in seconds). /// The cancellation token to use. - /// or is null. - public Response ListIngressGatewayCredentials(string scope, string endpointName, ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default) + /// or is null. + public Response ListIngressGatewayCredentials(string resourceUri, string endpointName, ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var message = CreateListIngressGatewayCredentialsRequest(scope, endpointName, content, expiresin); + using var message = CreateListIngressGatewayCredentialsRequest(resourceUri, endpointName, content, expiresin); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -658,12 +658,12 @@ public Response ListIngressGatewayCredentials(string scope, } } - internal RequestUriBuilder CreateListManagedProxyDetailsRequestUri(string scope, string endpointName, ManagedProxyContent content) + internal RequestUriBuilder CreateListManagedProxyDetailsRequestUri(string resourceUri, string endpointName, ManagedProxyContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/listManagedProxyDetails", false); @@ -671,7 +671,7 @@ internal RequestUriBuilder CreateListManagedProxyDetailsRequestUri(string scope, return uri; } - internal HttpMessage CreateListManagedProxyDetailsRequest(string scope, string endpointName, ManagedProxyContent content) + internal HttpMessage CreateListManagedProxyDetailsRequest(string resourceUri, string endpointName, ManagedProxyContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -679,7 +679,7 @@ internal HttpMessage CreateListManagedProxyDetailsRequest(string scope, string e var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/listManagedProxyDetails", false); @@ -695,18 +695,18 @@ internal HttpMessage CreateListManagedProxyDetailsRequest(string scope, string e } /// Fetches the managed proxy details. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// Object of type ManagedProxyRequest. /// The cancellation token to use. - /// , or is null. - public async Task> ListManagedProxyDetailsAsync(string scope, string endpointName, ManagedProxyContent content, CancellationToken cancellationToken = default) + /// , or is null. + public async Task> ListManagedProxyDetailsAsync(string resourceUri, string endpointName, ManagedProxyContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateListManagedProxyDetailsRequest(scope, endpointName, content); + using var message = CreateListManagedProxyDetailsRequest(resourceUri, endpointName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -723,18 +723,18 @@ public async Task> ListManagedProxyDetailsAsync(stri } /// Fetches the managed proxy details. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// Object of type ManagedProxyRequest. /// The cancellation token to use. - /// , or is null. - public Response ListManagedProxyDetails(string scope, string endpointName, ManagedProxyContent content, CancellationToken cancellationToken = default) + /// , or is null. + public Response ListManagedProxyDetails(string resourceUri, string endpointName, ManagedProxyContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateListManagedProxyDetailsRequest(scope, endpointName, content); + using var message = CreateListManagedProxyDetailsRequest(resourceUri, endpointName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -750,7 +750,7 @@ public Response ListManagedProxyDetails(string scope, string } } - internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope) + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceUri) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -758,7 +758,7 @@ internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string return uri; } - internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceUri) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -774,15 +774,15 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) /// List of endpoints to the target resource. /// The URL to the next page of results. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The cancellation token to use. - /// or is null. - public async Task> ListNextPageAsync(string nextLink, string scope, CancellationToken cancellationToken = default) + /// or is null. + public async Task> ListNextPageAsync(string nextLink, string resourceUri, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); - using var message = CreateListNextPageRequest(nextLink, scope); + using var message = CreateListNextPageRequest(nextLink, resourceUri); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -800,15 +800,15 @@ public async Task> ListNextPageAsync(string nextLink, st /// List of endpoints to the target resource. /// The URL to the next page of results. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The cancellation token to use. - /// or is null. - public Response ListNextPage(string nextLink, string scope, CancellationToken cancellationToken = default) + /// or is null. + public Response ListNextPage(string nextLink, string resourceUri, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); - using var message = CreateListNextPageRequest(nextLink, scope); + using var message = CreateListNextPageRequest(nextLink, resourceUri); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { 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 b72de2f3ece7d..f768c11ca8ac0 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(st { case 200: { - HybridConnectivityInventoryResourceData value = default; + HybridConnectivityInventoryData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = HybridConnectivityInventoryResourceData.DeserializeHybridConnectivityInventoryResourceData(document.RootElement); + value = HybridConnectivityInventoryData.DeserializeHybridConnectivityInventoryData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((HybridConnectivityInventoryResourceData)null, message.Response); + return Response.FromValue((HybridConnectivityInventoryData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -194,7 +194,7 @@ public async Task> GetAsync(st /// 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, { case 200: { - HybridConnectivityInventoryResourceData value = default; + HybridConnectivityInventoryData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = HybridConnectivityInventoryResourceData.DeserializeHybridConnectivityInventoryResourceData(document.RootElement); + value = HybridConnectivityInventoryData.DeserializeHybridConnectivityInventoryData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((HybridConnectivityInventoryResourceData)null, message.Response); + return Response.FromValue((HybridConnectivityInventoryData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/PublicCloudConnectorsRestOperations.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/PublicCloudConnectorsRestOperations.cs index d71090263f179..46e89600d3fe3 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/PublicCloudConnectorsRestOperations.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/PublicCloudConnectorsRestOperations.cs @@ -241,7 +241,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// 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 subscriptionId, string resourceGroupName, string publicCloudConnector, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string publicCloudConnector, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -253,13 +253,13 @@ public async Task> GetAsync(string subscripti { case 200: { - PublicCloudConnectorData value = default; + HybridConnectivityPublicCloudConnectorData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = PublicCloudConnectorData.DeserializePublicCloudConnectorData(document.RootElement); + value = HybridConnectivityPublicCloudConnectorData.DeserializeHybridConnectivityPublicCloudConnectorData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((PublicCloudConnectorData)null, message.Response); + return Response.FromValue((HybridConnectivityPublicCloudConnectorData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -272,7 +272,7 @@ public async Task> GetAsync(string subscripti /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string publicCloudConnector, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string publicCloudConnector, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -284,19 +284,19 @@ public Response Get(string subscriptionId, string reso { case 200: { - PublicCloudConnectorData value = default; + HybridConnectivityPublicCloudConnectorData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = PublicCloudConnectorData.DeserializePublicCloudConnectorData(document.RootElement); + value = HybridConnectivityPublicCloudConnectorData.DeserializeHybridConnectivityPublicCloudConnectorData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((PublicCloudConnectorData)null, message.Response); + return Response.FromValue((HybridConnectivityPublicCloudConnectorData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string publicCloudConnector, PublicCloudConnectorData data) + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string publicCloudConnector, HybridConnectivityPublicCloudConnectorData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -310,7 +310,7 @@ internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, return uri; } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string publicCloudConnector, PublicCloudConnectorData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string publicCloudConnector, HybridConnectivityPublicCloudConnectorData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -342,7 +342,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string publicCloudConnector, PublicCloudConnectorData data, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string publicCloudConnector, HybridConnectivityPublicCloudConnectorData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -369,7 +369,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string publicCloudConnector, PublicCloudConnectorData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string publicCloudConnector, HybridConnectivityPublicCloudConnectorData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -388,7 +388,7 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } - internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string publicCloudConnector, PublicCloudConnectorPatch patch) + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string publicCloudConnector, HybridConnectivityPublicCloudConnectorPatch patch) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -402,7 +402,7 @@ internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string return uri; } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string publicCloudConnector, PublicCloudConnectorPatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string publicCloudConnector, HybridConnectivityPublicCloudConnectorPatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -434,7 +434,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string publicCloudConnector, PublicCloudConnectorPatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string publicCloudConnector, HybridConnectivityPublicCloudConnectorPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -447,9 +447,9 @@ public async Task> UpdateAsync(string subscri { case 200: { - PublicCloudConnectorData value = default; + HybridConnectivityPublicCloudConnectorData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = PublicCloudConnectorData.DeserializePublicCloudConnectorData(document.RootElement); + value = HybridConnectivityPublicCloudConnectorData.DeserializeHybridConnectivityPublicCloudConnectorData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -465,7 +465,7 @@ public async Task> UpdateAsync(string subscri /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string publicCloudConnector, PublicCloudConnectorPatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string publicCloudConnector, HybridConnectivityPublicCloudConnectorPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -478,9 +478,9 @@ public Response Update(string subscriptionId, string r { case 200: { - PublicCloudConnectorData value = default; + HybridConnectivityPublicCloudConnectorData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = PublicCloudConnectorData.DeserializePublicCloudConnectorData(document.RootElement); + value = HybridConnectivityPublicCloudConnectorData.DeserializeHybridConnectivityPublicCloudConnectorData(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/ServiceConfigurationsRestOperations.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/ServiceConfigurationsRestOperations.cs index 40bac437d63ee..e725242eddf8c 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/ServiceConfigurationsRestOperations.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/ServiceConfigurationsRestOperations.cs @@ -36,12 +36,12 @@ public ServiceConfigurationsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListByEndpointResourceRequestUri(string scope, string endpointName) + internal RequestUriBuilder CreateListByEndpointResourceRequestUri(string resourceUri, string endpointName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/serviceConfigurations", false); @@ -49,7 +49,7 @@ internal RequestUriBuilder CreateListByEndpointResourceRequestUri(string scope, return uri; } - internal HttpMessage CreateListByEndpointResourceRequest(string scope, string endpointName) + internal HttpMessage CreateListByEndpointResourceRequest(string resourceUri, string endpointName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -57,7 +57,7 @@ internal HttpMessage CreateListByEndpointResourceRequest(string scope, string en var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/serviceConfigurations", false); @@ -69,16 +69,16 @@ internal HttpMessage CreateListByEndpointResourceRequest(string scope, string en } /// API to enumerate registered services in service configurations under a Endpoint Resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The cancellation token to use. - /// or is null. - public async Task> ListByEndpointResourceAsync(string scope, string endpointName, CancellationToken cancellationToken = default) + /// or is null. + public async Task> ListByEndpointResourceAsync(string resourceUri, string endpointName, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var message = CreateListByEndpointResourceRequest(scope, endpointName); + using var message = CreateListByEndpointResourceRequest(resourceUri, endpointName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -95,16 +95,16 @@ public async Task> ListByEndpointResourceAsyn } /// API to enumerate registered services in service configurations under a Endpoint Resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The cancellation token to use. - /// or is null. - public Response ListByEndpointResource(string scope, string endpointName, CancellationToken cancellationToken = default) + /// or is null. + public Response ListByEndpointResource(string resourceUri, string endpointName, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var message = CreateListByEndpointResourceRequest(scope, endpointName); + using var message = CreateListByEndpointResourceRequest(resourceUri, endpointName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -120,12 +120,12 @@ public Response ListByEndpointResource(string scope, s } } - internal RequestUriBuilder CreateGetRequestUri(string scope, string endpointName, string serviceConfigurationName) + internal RequestUriBuilder CreateGetRequestUri(string resourceUri, string endpointName, string serviceConfigurationName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/serviceConfigurations/", false); @@ -134,7 +134,7 @@ internal RequestUriBuilder CreateGetRequestUri(string scope, string endpointName return uri; } - internal HttpMessage CreateGetRequest(string scope, string endpointName, string serviceConfigurationName) + internal HttpMessage CreateGetRequest(string resourceUri, string endpointName, string serviceConfigurationName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -142,7 +142,7 @@ internal HttpMessage CreateGetRequest(string scope, string endpointName, string var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/serviceConfigurations/", false); @@ -155,71 +155,71 @@ internal HttpMessage CreateGetRequest(string scope, string endpointName, string } /// Gets the details about the service to the resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The service name. /// The cancellation token to use. - /// , or is null. - public async Task> GetAsync(string scope, string endpointName, string serviceConfigurationName, CancellationToken cancellationToken = default) + /// , or is null. + public async Task> GetAsync(string resourceUri, string endpointName, string serviceConfigurationName, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); - using var message = CreateGetRequest(scope, endpointName, serviceConfigurationName); + using var message = CreateGetRequest(resourceUri, endpointName, serviceConfigurationName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - ServiceConfigurationResourceData value = default; + HybridConnectivityServiceConfigurationData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ServiceConfigurationResourceData.DeserializeServiceConfigurationResourceData(document.RootElement); + value = HybridConnectivityServiceConfigurationData.DeserializeHybridConnectivityServiceConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ServiceConfigurationResourceData)null, message.Response); + return Response.FromValue((HybridConnectivityServiceConfigurationData)null, message.Response); default: throw new RequestFailedException(message.Response); } } /// Gets the details about the service to the resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The service name. /// The cancellation token to use. - /// , or is null. - public Response Get(string scope, string endpointName, string serviceConfigurationName, CancellationToken cancellationToken = default) + /// , or is null. + public Response Get(string resourceUri, string endpointName, string serviceConfigurationName, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); - using var message = CreateGetRequest(scope, endpointName, serviceConfigurationName); + using var message = CreateGetRequest(resourceUri, endpointName, serviceConfigurationName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - ServiceConfigurationResourceData value = default; + HybridConnectivityServiceConfigurationData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ServiceConfigurationResourceData.DeserializeServiceConfigurationResourceData(document.RootElement); + value = HybridConnectivityServiceConfigurationData.DeserializeHybridConnectivityServiceConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ServiceConfigurationResourceData)null, message.Response); + return Response.FromValue((HybridConnectivityServiceConfigurationData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreateOrupdateRequestUri(string scope, string endpointName, string serviceConfigurationName, ServiceConfigurationResourceData data) + internal RequestUriBuilder CreateCreateOrupdateRequestUri(string resourceUri, string endpointName, string serviceConfigurationName, HybridConnectivityServiceConfigurationData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/serviceConfigurations/", false); @@ -228,7 +228,7 @@ internal RequestUriBuilder CreateCreateOrupdateRequestUri(string scope, string e return uri; } - internal HttpMessage CreateCreateOrupdateRequest(string scope, string endpointName, string serviceConfigurationName, ServiceConfigurationResourceData data) + internal HttpMessage CreateCreateOrupdateRequest(string resourceUri, string endpointName, string serviceConfigurationName, HybridConnectivityServiceConfigurationData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -236,7 +236,7 @@ internal HttpMessage CreateCreateOrupdateRequest(string scope, string endpointNa var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/serviceConfigurations/", false); @@ -253,29 +253,29 @@ internal HttpMessage CreateCreateOrupdateRequest(string scope, string endpointNa } /// Create or update a service in serviceConfiguration for the endpoint resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The service name. /// Service details. /// The cancellation token to use. - /// , , or is null. - public async Task> CreateOrupdateAsync(string scope, string endpointName, string serviceConfigurationName, ServiceConfigurationResourceData data, CancellationToken cancellationToken = default) + /// , , or is null. + public async Task> CreateOrupdateAsync(string resourceUri, string endpointName, string serviceConfigurationName, HybridConnectivityServiceConfigurationData data, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateOrupdateRequest(scope, endpointName, serviceConfigurationName, data); + using var message = CreateCreateOrupdateRequest(resourceUri, endpointName, serviceConfigurationName, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: case 201: { - ServiceConfigurationResourceData value = default; + HybridConnectivityServiceConfigurationData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ServiceConfigurationResourceData.DeserializeServiceConfigurationResourceData(document.RootElement); + value = HybridConnectivityServiceConfigurationData.DeserializeHybridConnectivityServiceConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -284,29 +284,29 @@ public async Task> CreateOrupdateAsyn } /// Create or update a service in serviceConfiguration for the endpoint resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The service name. /// Service details. /// The cancellation token to use. - /// , , or is null. - public Response CreateOrupdate(string scope, string endpointName, string serviceConfigurationName, ServiceConfigurationResourceData data, CancellationToken cancellationToken = default) + /// , , or is null. + public Response CreateOrupdate(string resourceUri, string endpointName, string serviceConfigurationName, HybridConnectivityServiceConfigurationData data, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateOrupdateRequest(scope, endpointName, serviceConfigurationName, data); + using var message = CreateCreateOrupdateRequest(resourceUri, endpointName, serviceConfigurationName, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: case 201: { - ServiceConfigurationResourceData value = default; + HybridConnectivityServiceConfigurationData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ServiceConfigurationResourceData.DeserializeServiceConfigurationResourceData(document.RootElement); + value = HybridConnectivityServiceConfigurationData.DeserializeHybridConnectivityServiceConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -314,12 +314,12 @@ public Response CreateOrupdate(string scope, s } } - internal RequestUriBuilder CreateUpdateRequestUri(string scope, string endpointName, string serviceConfigurationName, ServiceConfigurationResourcePatch patch) + internal RequestUriBuilder CreateUpdateRequestUri(string resourceUri, string endpointName, string serviceConfigurationName, HybridConnectivityServiceConfigurationPatch patch) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/serviceConfigurations/", false); @@ -328,7 +328,7 @@ internal RequestUriBuilder CreateUpdateRequestUri(string scope, string endpointN return uri; } - internal HttpMessage CreateUpdateRequest(string scope, string endpointName, string serviceConfigurationName, ServiceConfigurationResourcePatch patch) + internal HttpMessage CreateUpdateRequest(string resourceUri, string endpointName, string serviceConfigurationName, HybridConnectivityServiceConfigurationPatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -336,7 +336,7 @@ internal HttpMessage CreateUpdateRequest(string scope, string endpointName, stri var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/serviceConfigurations/", false); @@ -353,28 +353,28 @@ internal HttpMessage CreateUpdateRequest(string scope, string endpointName, stri } /// Update the service details in the service configurations of the target resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The service name. /// Service details. /// The cancellation token to use. - /// , , or is null. - public async Task> UpdateAsync(string scope, string endpointName, string serviceConfigurationName, ServiceConfigurationResourcePatch patch, CancellationToken cancellationToken = default) + /// , , or is null. + public async Task> UpdateAsync(string resourceUri, string endpointName, string serviceConfigurationName, HybridConnectivityServiceConfigurationPatch patch, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateUpdateRequest(scope, endpointName, serviceConfigurationName, patch); + using var message = CreateUpdateRequest(resourceUri, endpointName, serviceConfigurationName, patch); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - ServiceConfigurationResourceData value = default; + HybridConnectivityServiceConfigurationData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ServiceConfigurationResourceData.DeserializeServiceConfigurationResourceData(document.RootElement); + value = HybridConnectivityServiceConfigurationData.DeserializeHybridConnectivityServiceConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -383,28 +383,28 @@ public async Task> UpdateAsync(string } /// Update the service details in the service configurations of the target resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The service name. /// Service details. /// The cancellation token to use. - /// , , or is null. - public Response Update(string scope, string endpointName, string serviceConfigurationName, ServiceConfigurationResourcePatch patch, CancellationToken cancellationToken = default) + /// , , or is null. + public Response Update(string resourceUri, string endpointName, string serviceConfigurationName, HybridConnectivityServiceConfigurationPatch patch, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateUpdateRequest(scope, endpointName, serviceConfigurationName, patch); + using var message = CreateUpdateRequest(resourceUri, endpointName, serviceConfigurationName, patch); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - ServiceConfigurationResourceData value = default; + HybridConnectivityServiceConfigurationData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ServiceConfigurationResourceData.DeserializeServiceConfigurationResourceData(document.RootElement); + value = HybridConnectivityServiceConfigurationData.DeserializeHybridConnectivityServiceConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -412,12 +412,12 @@ public Response Update(string scope, string en } } - internal RequestUriBuilder CreateDeleteRequestUri(string scope, string endpointName, string serviceConfigurationName) + internal RequestUriBuilder CreateDeleteRequestUri(string resourceUri, string endpointName, string serviceConfigurationName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/serviceConfigurations/", false); @@ -426,7 +426,7 @@ internal RequestUriBuilder CreateDeleteRequestUri(string scope, string endpointN return uri; } - internal HttpMessage CreateDeleteRequest(string scope, string endpointName, string serviceConfigurationName) + internal HttpMessage CreateDeleteRequest(string resourceUri, string endpointName, string serviceConfigurationName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -434,7 +434,7 @@ internal HttpMessage CreateDeleteRequest(string scope, string endpointName, stri var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/", false); - uri.AppendPath(scope, false); + uri.AppendPath(resourceUri, false); uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); uri.AppendPath(endpointName, false); uri.AppendPath("/serviceConfigurations/", false); @@ -447,18 +447,18 @@ internal HttpMessage CreateDeleteRequest(string scope, string endpointName, stri } /// Deletes the service details to the target resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The service name. /// The cancellation token to use. - /// , or is null. - public async Task DeleteAsync(string scope, string endpointName, string serviceConfigurationName, CancellationToken cancellationToken = default) + /// , or is null. + public async Task DeleteAsync(string resourceUri, string endpointName, string serviceConfigurationName, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); - using var message = CreateDeleteRequest(scope, endpointName, serviceConfigurationName); + using var message = CreateDeleteRequest(resourceUri, endpointName, serviceConfigurationName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -471,18 +471,18 @@ public async Task DeleteAsync(string scope, string endpointName, strin } /// Deletes the service details to the target resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The service name. /// The cancellation token to use. - /// , or is null. - public Response Delete(string scope, string endpointName, string serviceConfigurationName, CancellationToken cancellationToken = default) + /// , or is null. + public Response Delete(string resourceUri, string endpointName, string serviceConfigurationName, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); Argument.AssertNotNull(serviceConfigurationName, nameof(serviceConfigurationName)); - using var message = CreateDeleteRequest(scope, endpointName, serviceConfigurationName); + using var message = CreateDeleteRequest(resourceUri, endpointName, serviceConfigurationName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -494,7 +494,7 @@ public Response Delete(string scope, string endpointName, string serviceConfigur } } - internal RequestUriBuilder CreateListByEndpointResourceNextPageRequestUri(string nextLink, string scope, string endpointName) + internal RequestUriBuilder CreateListByEndpointResourceNextPageRequestUri(string nextLink, string resourceUri, string endpointName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -502,7 +502,7 @@ internal RequestUriBuilder CreateListByEndpointResourceNextPageRequestUri(string return uri; } - internal HttpMessage CreateListByEndpointResourceNextPageRequest(string nextLink, string scope, string endpointName) + internal HttpMessage CreateListByEndpointResourceNextPageRequest(string nextLink, string resourceUri, string endpointName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -518,17 +518,17 @@ internal HttpMessage CreateListByEndpointResourceNextPageRequest(string nextLink /// API to enumerate registered services in service configurations under a Endpoint Resource. /// The URL to the next page of results. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The cancellation token to use. - /// , or is null. - public async Task> ListByEndpointResourceNextPageAsync(string nextLink, string scope, string endpointName, CancellationToken cancellationToken = default) + /// , or is null. + public async Task> ListByEndpointResourceNextPageAsync(string nextLink, string resourceUri, string endpointName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var message = CreateListByEndpointResourceNextPageRequest(nextLink, scope, endpointName); + using var message = CreateListByEndpointResourceNextPageRequest(nextLink, resourceUri, endpointName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -546,17 +546,17 @@ public async Task> ListByEndpointResourceNext /// API to enumerate registered services in service configurations under a Endpoint Resource. /// The URL to the next page of results. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The endpoint name. /// The cancellation token to use. - /// , or is null. - public Response ListByEndpointResourceNextPage(string nextLink, string scope, string endpointName, CancellationToken cancellationToken = default) + /// , or is null. + public Response ListByEndpointResourceNextPage(string nextLink, string resourceUri, string endpointName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNull(scope, nameof(scope)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNull(endpointName, nameof(endpointName)); - using var message = CreateListByEndpointResourceNextPageRequest(nextLink, scope, endpointName); + using var message = CreateListByEndpointResourceNextPageRequest(nextLink, resourceUri, endpointName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/SolutionConfigurationsRestOperations.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/SolutionConfigurationsRestOperations.cs index e84bc53bd5ba0..ddcf067c9c1ee 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/SolutionConfigurationsRestOperations.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/SolutionConfigurationsRestOperations.cs @@ -148,7 +148,7 @@ internal HttpMessage CreateGetRequest(string resourceUri, string solutionConfigu /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string resourceUri, string solutionConfiguration, CancellationToken cancellationToken = default) + public async Task> GetAsync(string resourceUri, string solutionConfiguration, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); @@ -159,13 +159,13 @@ public async Task> GetAsync(string resourceU { case 200: { - SolutionConfigurationData value = default; + HybridConnectivitySolutionConfigurationData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SolutionConfigurationData.DeserializeSolutionConfigurationData(document.RootElement); + value = HybridConnectivitySolutionConfigurationData.DeserializeHybridConnectivitySolutionConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((SolutionConfigurationData)null, message.Response); + return Response.FromValue((HybridConnectivitySolutionConfigurationData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -177,7 +177,7 @@ public async Task> GetAsync(string resourceU /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response Get(string resourceUri, string solutionConfiguration, CancellationToken cancellationToken = default) + public Response Get(string resourceUri, string solutionConfiguration, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); @@ -188,19 +188,19 @@ public Response Get(string resourceUri, string soluti { case 200: { - SolutionConfigurationData value = default; + HybridConnectivitySolutionConfigurationData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SolutionConfigurationData.DeserializeSolutionConfigurationData(document.RootElement); + value = HybridConnectivitySolutionConfigurationData.DeserializeHybridConnectivitySolutionConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((SolutionConfigurationData)null, message.Response); + return Response.FromValue((HybridConnectivitySolutionConfigurationData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceUri, string solutionConfiguration, SolutionConfigurationData data) + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceUri, string solutionConfiguration, HybridConnectivitySolutionConfigurationData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -212,7 +212,7 @@ internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceUri, st return uri; } - internal HttpMessage CreateCreateOrUpdateRequest(string resourceUri, string solutionConfiguration, SolutionConfigurationData data) + internal HttpMessage CreateCreateOrUpdateRequest(string resourceUri, string solutionConfiguration, HybridConnectivitySolutionConfigurationData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -241,7 +241,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string resourceUri, string solu /// The cancellation token to use. /// , or is null. /// is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string resourceUri, string solutionConfiguration, SolutionConfigurationData data, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string resourceUri, string solutionConfiguration, HybridConnectivitySolutionConfigurationData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); @@ -254,9 +254,9 @@ public async Task> CreateOrUpdateAsync(strin case 200: case 201: { - SolutionConfigurationData value = default; + HybridConnectivitySolutionConfigurationData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SolutionConfigurationData.DeserializeSolutionConfigurationData(document.RootElement); + value = HybridConnectivitySolutionConfigurationData.DeserializeHybridConnectivitySolutionConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -271,7 +271,7 @@ public async Task> CreateOrUpdateAsync(strin /// The cancellation token to use. /// , or is null. /// is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string resourceUri, string solutionConfiguration, SolutionConfigurationData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string resourceUri, string solutionConfiguration, HybridConnectivitySolutionConfigurationData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); @@ -284,9 +284,9 @@ public Response CreateOrUpdate(string resourceUri, st case 200: case 201: { - SolutionConfigurationData value = default; + HybridConnectivitySolutionConfigurationData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SolutionConfigurationData.DeserializeSolutionConfigurationData(document.RootElement); + value = HybridConnectivitySolutionConfigurationData.DeserializeHybridConnectivitySolutionConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -294,7 +294,7 @@ public Response CreateOrUpdate(string resourceUri, st } } - internal RequestUriBuilder CreateUpdateRequestUri(string resourceUri, string solutionConfiguration, SolutionConfigurationPatch patch) + internal RequestUriBuilder CreateUpdateRequestUri(string resourceUri, string solutionConfiguration, HybridConnectivitySolutionConfigurationPatch patch) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -306,7 +306,7 @@ internal RequestUriBuilder CreateUpdateRequestUri(string resourceUri, string sol return uri; } - internal HttpMessage CreateUpdateRequest(string resourceUri, string solutionConfiguration, SolutionConfigurationPatch patch) + internal HttpMessage CreateUpdateRequest(string resourceUri, string solutionConfiguration, HybridConnectivitySolutionConfigurationPatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -335,7 +335,7 @@ internal HttpMessage CreateUpdateRequest(string resourceUri, string solutionConf /// The cancellation token to use. /// , or is null. /// is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string resourceUri, string solutionConfiguration, SolutionConfigurationPatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string resourceUri, string solutionConfiguration, HybridConnectivitySolutionConfigurationPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); @@ -347,9 +347,9 @@ public async Task> UpdateAsync(string resour { case 200: { - SolutionConfigurationData value = default; + HybridConnectivitySolutionConfigurationData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SolutionConfigurationData.DeserializeSolutionConfigurationData(document.RootElement); + value = HybridConnectivitySolutionConfigurationData.DeserializeHybridConnectivitySolutionConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -364,7 +364,7 @@ public async Task> UpdateAsync(string resour /// The cancellation token to use. /// , or is null. /// is an empty string, and was expected to be non-empty. - public Response Update(string resourceUri, string solutionConfiguration, SolutionConfigurationPatch patch, CancellationToken cancellationToken = default) + public Response Update(string resourceUri, string solutionConfiguration, HybridConnectivitySolutionConfigurationPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceUri, nameof(resourceUri)); Argument.AssertNotNullOrEmpty(solutionConfiguration, nameof(solutionConfiguration)); @@ -376,9 +376,9 @@ public Response Update(string resourceUri, string sol { case 200: { - SolutionConfigurationData value = default; + HybridConnectivitySolutionConfigurationData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SolutionConfigurationData.DeserializeSolutionConfigurationData(document.RootElement); + value = HybridConnectivitySolutionConfigurationData.DeserializeHybridConnectivitySolutionConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/SolutionTypesRestOperations.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/SolutionTypesRestOperations.cs index 67866a05c5757..4126bbfd0b056 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/SolutionTypesRestOperations.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/SolutionTypesRestOperations.cs @@ -241,7 +241,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// 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 subscriptionId, string resourceGroupName, string solutionType, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string solutionType, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -253,13 +253,13 @@ public async Task> GetAsync(string subscripti { case 200: { - SolutionTypeResourceData value = default; + HybridConnectivitySolutionTypeData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SolutionTypeResourceData.DeserializeSolutionTypeResourceData(document.RootElement); + value = HybridConnectivitySolutionTypeData.DeserializeHybridConnectivitySolutionTypeData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((SolutionTypeResourceData)null, message.Response); + return Response.FromValue((HybridConnectivitySolutionTypeData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -272,7 +272,7 @@ public async Task> GetAsync(string subscripti /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string solutionType, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string solutionType, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -284,13 +284,13 @@ public Response Get(string subscriptionId, string reso { case 200: { - SolutionTypeResourceData value = default; + HybridConnectivitySolutionTypeData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SolutionTypeResourceData.DeserializeSolutionTypeResourceData(document.RootElement); + value = HybridConnectivitySolutionTypeData.DeserializeHybridConnectivitySolutionTypeData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((SolutionTypeResourceData)null, message.Response); + return Response.FromValue((HybridConnectivitySolutionTypeData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResource.Serialization.cs deleted file mode 100644 index bfe7319b039fc..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ServiceConfigurationResource.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 ServiceConfigurationResource : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - ServiceConfigurationResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); - - ServiceConfigurationResourceData 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/SolutionConfigurationResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationResource.Serialization.cs deleted file mode 100644 index 18c0a804a0788..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionConfigurationResource.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 SolutionConfigurationResource : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - SolutionConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); - - SolutionConfigurationData 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/SolutionTypeResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionTypeResource.Serialization.cs deleted file mode 100644 index 59b64769dc797..0000000000000 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/SolutionTypeResource.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 SolutionTypeResource : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - SolutionTypeResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); - - SolutionTypeResourceData 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/autorest.md b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md index e9114910b53fa..54385e9061163 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md @@ -10,6 +10,7 @@ library-name: HybridConnectivity namespace: Azure.ResourceManager.HybridConnectivity # default tag is a preview version require: https://github.com/Azure/azure-rest-api-specs/blob/fe44d3261ff0ea816315126120672ccec78c3074/specification/hybridconnectivity/resource-manager/readme.md +#tag: package-2024-12 output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: @@ -20,6 +21,9 @@ modelerfour: flatten-payloads: false use-model-reader-writer: true +#mgmt-debug: +# show-serialized-names: true + format-by-name-rules: 'tenantId': 'uuid' 'etag': 'etag' @@ -51,7 +55,6 @@ acronym-mapping: Etag: ETag|etag prepend-rp-prefix: - - InventoryResource - CloudNativeType - EndpointProperties - HostType @@ -59,48 +62,30 @@ prepend-rp-prefix: - ProvisioningState - ResourceProvisioningState - ServiceName + - SolutionConfiguration + - PublicCloudConnector + - OperationStatusResult + - SolutionTypeProperties rename-mapping: - # IngressGatewayResource and ManagedProxyResource are not ARM resource but end with Resource suffix which is not allowed, so we need to rename them + EndpointResource: HybridConnectivityEndpoint + InventoryResource: HybridConnectivityInventory + ServiceConfigurationResource: HybridConnectivityServiceConfiguration + SolutionTypeResource: HybridConnectivitySolutionType IngressGatewayResource: IngressGatewayAsset ManagedProxyResource: ManagedProxyAsset - # format transform - AADProfileProperties.serverId: -|uuid + IngressGatewayResource.ingress.aadProfile.serverId: -|uuid PublicCloudConnectorProperties.connectorPrimaryIdentifier: -|uuid + EndpointProperties.resourceId: -|arm-id + InventoryProperties.azureResourceId: -|arm-id + ServiceConfigurationResource.properties.resourceId: -|arm-id + GenerateAwsTemplateRequest.connectorId: -|arm-id + EndpointAccessResource: TargetResourceEndpointAccess directive: - - rename-model: - from: EndpointAccessResource - to: TargetResourceEndpointAccess - from: swagger-document where: $.definitions.EndpointProperties.properties.type transform: > - $["x-ms-client-name"] = "EndpointType"; - $["x-ms-enum"]["name"] = "EndpointType" - - from: swagger-document - where: $.parameters.ResourceUriParameter - 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' - - - from: swagger-document - where: $.definitions.EndpointProperties.properties.resourceId - transform: $['x-ms-format'] = 'arm-id' - - - from: swagger-document - where: $.definitions.AADProfileProperties.properties.serverId - transform: $['x-ms-format'] = 'arm-id' + $["x-ms-enum"]["name"] = "HybridConnectivityEndpointType" ``` diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/tests/HybridConnectivityManagementTestBase.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/tests/HybridConnectivityManagementTestBase.cs index 063c521fec8be..7ffeff08fef05 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/tests/HybridConnectivityManagementTestBase.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/tests/HybridConnectivityManagementTestBase.cs @@ -47,9 +47,9 @@ protected async Task CreateResourceGroup() return lro.Value; } - protected async Task CreatePublicCloudConnector(ResourceGroupResource rg) + protected async Task CreatePublicCloudConnector(ResourceGroupResource rg) { - var connectorData = new PublicCloudConnectorData(DefaultLocation) { }; + var connectorData = new HybridConnectivityPublicCloudConnectorData(DefaultLocation) { }; var awsCloudProfile = new AwsCloudProfile("123456789123") { }; awsCloudProfile.IsOrganizationalAccount = false; @@ -58,7 +58,7 @@ protected async Task CreatePublicCloudConnector(Re connectorData.Properties = properties; - var collection = rg.GetPublicCloudConnectors(); + var collection = rg.GetHybridConnectivityPublicCloudConnectors(); var pcc = await collection.CreateOrUpdateAsync(WaitUntil.Completed, ConnectorName, connectorData); return pcc.Value; } diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/tests/Scenario/HybridConnectivityPublicCloudConnectorTest.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/tests/Scenario/HybridConnectivityPublicCloudConnectorTest.cs index 7e1202d4bffcc..715c299a30624 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/tests/Scenario/HybridConnectivityPublicCloudConnectorTest.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/tests/Scenario/HybridConnectivityPublicCloudConnectorTest.cs @@ -17,7 +17,7 @@ namespace Azure.ResourceManager.HybridConnectivity.Tests.Scenario [LiveOnly] public class HybridConnectivityPublicCloudConnectorTest : HybridConnectivityManagementTestBase { - private PublicCloudConnectorResource _testConnector; + private HybridConnectivityPublicCloudConnectorResource _testConnector; private ResourceGroupResource _testRG; @@ -45,7 +45,7 @@ public async Task TearDown() [RecordedTest] public async Task TestPublicCloudConnector() { - var connectorCollection = _testRG.GetPublicCloudConnectors(); + var connectorCollection = _testRG.GetHybridConnectivityPublicCloudConnectors(); Assert.IsNotNull(connectorCollection); await createSolutionConfiguration(); @@ -60,7 +60,7 @@ public async Task TestSolutionConfiguration() { var sc = await createSolutionConfiguration(); - var patchData = new SolutionConfigurationPatch(); + var patchData = new HybridConnectivitySolutionConfigurationPatch(); patchData.Properties = new SolutionConfigurationPropertiesUpdate(); patchData.Properties.SolutionType = "Microsoft.AssetManagement"; patchData.Properties.SolutionSettings.Add("periodicSync", "true"); @@ -74,10 +74,10 @@ public async Task TestSolutionConfiguration() Assert.AreEqual(200, deleteResp.GetRawResponse().Status); } - protected async Task createSolutionConfiguration() + protected async Task createSolutionConfiguration() { var scopeId = _testConnector.Id; - var scCollection = ArmClient.GetSolutionConfigurations(scopeId); + var scCollection = ArmClient.GetHybridConnectivitySolutionConfigurations(scopeId); Assert.IsNotNull(scCollection); var scProperties = new SolutionConfigurationProperties(AssetManagementType); @@ -87,7 +87,7 @@ protected async Task createSolutionConfiguration( scProperties.SolutionSettings.Add("awsGlobalReadOnly", "true"); scProperties.SolutionSettings.Add("cloudProviderRegions", "us-east-1"); - var scData = new SolutionConfigurationData(); + var scData = new HybridConnectivitySolutionConfigurationData(); scData.Properties = scProperties; var scTask = await scCollection.CreateOrUpdateAsync(WaitUntil.Completed, SolutionConfigurationName, scData);