From 9dca267d709d6295410cf659b7f96bdec39e3ca1 Mon Sep 17 00:00:00 2001 From: Chengming <61542202+dvbb@users.noreply.github.com> Date: Mon, 29 May 2023 17:43:57 +0800 Subject: [PATCH] enable model factory (#36562) --- .../CHANGELOG.md | 9 +- ...esourceManager.HealthBot.netstandard2.0.cs | 5 + .../src/Generated/ArmHealthBotModelFactory.cs | 47 +++ .../src/autorest.md | 3 +- .../CHANGELOG.md | 9 +- ...ceManager.HealthcareApis.netstandard2.0.cs | 15 + .../ArmHealthcareApisModelFactory.cs | 233 +++++++++++ .../src/autorest.md | 1 - .../CHANGELOG.md | 9 +- ...r.HybridContainerService.netstandard2.0.cs | 27 ++ .../ArmHybridContainerServiceModelFactory.cs | 388 ++++++++++++++++++ .../src/autorest.md | 1 - .../CHANGELOG.md | 9 +- ...rceManager.HybridCompute.netstandard2.0.cs | 20 + .../Generated/ArmHybridComputeModelFactory.cs | 276 +++++++++++++ .../src/autorest.md | 1 - .../CHANGELOG.md | 9 +- ...nager.HybridConnectivity.netstandard2.0.cs | 5 + .../ArmHybridConnectivityModelFactory.cs | 50 +++ .../src/autorest.md | 1 - .../CHANGELOG.md | 9 +- ...sourceManager.HybridData.netstandard2.0.cs | 10 + .../Generated/ArmHybridDataModelFactory.cs | 150 +++++++ .../src/autorest.md | 1 - 24 files changed, 1257 insertions(+), 31 deletions(-) create mode 100644 sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/ArmHealthBotModelFactory.cs create mode 100644 sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/ArmHealthcareApisModelFactory.cs create mode 100644 sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/ArmHybridContainerServiceModelFactory.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/ArmHybridComputeModelFactory.cs create mode 100644 sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs create mode 100644 sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/ArmHybridDataModelFactory.cs diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/CHANGELOG.md b/sdk/healthbot/Azure.ResourceManager.HealthBot/CHANGELOG.md index f8fdd254ea2ce..7a7f6ac20f3cf 100644 --- a/sdk/healthbot/Azure.ResourceManager.HealthBot/CHANGELOG.md +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-30) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/api/Azure.ResourceManager.HealthBot.netstandard2.0.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/api/Azure.ResourceManager.HealthBot.netstandard2.0.cs index 7e7fcf9e8800a..44a5b2b1e1fc6 100644 --- a/sdk/healthbot/Azure.ResourceManager.HealthBot/api/Azure.ResourceManager.HealthBot.netstandard2.0.cs +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/api/Azure.ResourceManager.HealthBot.netstandard2.0.cs @@ -54,6 +54,11 @@ protected HealthBotResource() { } } namespace Azure.ResourceManager.HealthBot.Models { + public static partial class ArmHealthBotModelFactory + { + public static Azure.ResourceManager.HealthBot.HealthBotData HealthBotData(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.HealthBot.Models.HealthBotSkuName? skuName = default(Azure.ResourceManager.HealthBot.Models.HealthBotSkuName?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.HealthBot.Models.HealthBotProperties properties = null) { throw null; } + public static Azure.ResourceManager.HealthBot.Models.HealthBotProperties HealthBotProperties(string provisioningState = null, System.Uri botManagementPortalLink = null, Azure.ResourceManager.HealthBot.Models.HealthBotKeyVaultProperties keyVaultProperties = null) { throw null; } + } public partial class HealthBotKeyVaultProperties { public HealthBotKeyVaultProperties(string keyName, System.Uri keyVaultUri) { } diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/ArmHealthBotModelFactory.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/ArmHealthBotModelFactory.cs new file mode 100644 index 0000000000000..ed3ba0ac045ba --- /dev/null +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/ArmHealthBotModelFactory.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.HealthBot; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.HealthBot.Models +{ + /// Model factory for models. + public static partial class ArmHealthBotModelFactory + { + /// Initializes a new instance of HealthBotData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// SKU of the Azure Health Bot. + /// The identity of the Azure Health Bot. + /// The set of properties specific to Azure Health Bot resource. + /// A new instance for mocking. + public static HealthBotData HealthBotData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, HealthBotSkuName? skuName = null, ManagedServiceIdentity identity = null, HealthBotProperties properties = null) + { + tags ??= new Dictionary(); + + return new HealthBotData(id, name, resourceType, systemData, tags, location, skuName.HasValue ? new HealthBotSku(skuName.Value) : null, identity, properties); + } + + /// Initializes a new instance of HealthBotProperties. + /// The provisioning state of the Azure Health Bot resource. + /// The link. + /// KeyVault properties for the resource encryption. + /// A new instance for mocking. + public static HealthBotProperties HealthBotProperties(string provisioningState = null, Uri botManagementPortalLink = null, HealthBotKeyVaultProperties keyVaultProperties = null) + { + return new HealthBotProperties(provisioningState, botManagementPortalLink, keyVaultProperties); + } + } +} diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/autorest.md b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/autorest.md index 8510243263841..17068fb0f650d 100644 --- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/autorest.md +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: HealthBot namespace: Azure.ResourceManager.HealthBot @@ -52,4 +51,4 @@ rename-rules: URI: Uri Etag: ETag|etag -``` \ No newline at end of file +``` diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/CHANGELOG.md b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/CHANGELOG.md index 738abb9bce75f..30a633676694c 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/CHANGELOG.md +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-30) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.1 (2023-02-15) ### Other Changes diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/api/Azure.ResourceManager.HealthcareApis.netstandard2.0.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/api/Azure.ResourceManager.HealthcareApis.netstandard2.0.cs index c7fca927f2f6b..b0cd74e931f86 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/api/Azure.ResourceManager.HealthcareApis.netstandard2.0.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/api/Azure.ResourceManager.HealthcareApis.netstandard2.0.cs @@ -437,6 +437,21 @@ protected HealthcareApisWorkspaceResource() { } } namespace Azure.ResourceManager.HealthcareApis.Models { + public static partial class ArmHealthcareApisModelFactory + { + public static Azure.ResourceManager.HealthcareApis.Models.DicomServiceAuthenticationConfiguration DicomServiceAuthenticationConfiguration(string authority = null, System.Collections.Generic.IEnumerable audiences = null) { throw null; } + public static Azure.ResourceManager.HealthcareApis.DicomServiceData DicomServiceData(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.HealthcareApis.Models.HealthcareApisProvisioningState? provisioningState = default(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisProvisioningState?), Azure.ResourceManager.HealthcareApis.Models.DicomServiceAuthenticationConfiguration authenticationConfiguration = null, Azure.ResourceManager.HealthcareApis.Models.DicomServiceCorsConfiguration corsConfiguration = null, System.Uri serviceUri = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.HealthcareApis.Models.HealthcareApisPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisPublicNetworkAccess?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.HealthcareApis.FhirServiceData FhirServiceData(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.HealthcareApis.Models.FhirServiceKind? kind = default(Azure.ResourceManager.HealthcareApis.Models.FhirServiceKind?), Azure.ResourceManager.HealthcareApis.Models.HealthcareApisProvisioningState? provisioningState = default(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisProvisioningState?), System.Collections.Generic.IEnumerable accessPolicies = null, Azure.ResourceManager.HealthcareApis.Models.FhirServiceAcrConfiguration acrConfiguration = null, Azure.ResourceManager.HealthcareApis.Models.FhirServiceAuthenticationConfiguration authenticationConfiguration = null, Azure.ResourceManager.HealthcareApis.Models.FhirServiceCorsConfiguration corsConfiguration = null, string exportStorageAccountName = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.HealthcareApis.Models.HealthcareApisPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisPublicNetworkAccess?), Azure.ResourceManager.HealthcareApis.Models.FhirServiceEventState? eventState = default(Azure.ResourceManager.HealthcareApis.Models.FhirServiceEventState?), Azure.ResourceManager.HealthcareApis.Models.FhirServiceResourceVersionPolicyConfiguration resourceVersionPolicyConfiguration = null, Azure.ResourceManager.HealthcareApis.Models.FhirServiceImportConfiguration importConfiguration = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.HealthcareApis.HealthcareApisIotConnectorData HealthcareApisIotConnectorData(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.HealthcareApis.Models.HealthcareApisProvisioningState? provisioningState = default(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisProvisioningState?), Azure.ResourceManager.HealthcareApis.Models.HealthcareApisIotConnectorEventHubIngestionConfiguration ingestionEndpointConfiguration = null, System.BinaryData deviceMappingContent = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.HealthcareApis.HealthcareApisIotFhirDestinationData HealthcareApisIotFhirDestinationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HealthcareApis.Models.HealthcareApisProvisioningState? provisioningState = default(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisProvisioningState?), Azure.ResourceManager.HealthcareApis.Models.HealthcareApisIotIdentityResolutionType resourceIdentityResolutionType = default(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisIotIdentityResolutionType), Azure.Core.ResourceIdentifier fhirServiceResourceId = null, System.BinaryData fhirMappingContent = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.HealthcareApis.Models.HealthcareApisNameAvailabilityResult HealthcareApisNameAvailabilityResult(bool? isNameAvailable = default(bool?), Azure.ResourceManager.HealthcareApis.Models.HealthcareApisNameUnavailableReason? reason = default(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisNameUnavailableReason?), string message = null) { throw null; } + public static Azure.ResourceManager.HealthcareApis.HealthcareApisPrivateEndpointConnectionData HealthcareApisPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.HealthcareApis.Models.HealthcareApisPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.HealthcareApis.Models.HealthcareApisPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.HealthcareApis.HealthcareApisPrivateLinkResourceData HealthcareApisPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } + public static Azure.ResourceManager.HealthcareApis.HealthcareApisServiceData HealthcareApisServiceData(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.HealthcareApis.Models.HealthcareApisServiceProperties properties = null, Azure.ResourceManager.HealthcareApis.Models.HealthcareApisKind kind = Azure.ResourceManager.HealthcareApis.Models.HealthcareApisKind.Fhir, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null) { throw null; } + public static Azure.ResourceManager.HealthcareApis.Models.HealthcareApisServiceProperties HealthcareApisServiceProperties(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisProvisioningState? provisioningState = default(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisProvisioningState?), System.Collections.Generic.IEnumerable accessPolicies = null, Azure.ResourceManager.HealthcareApis.Models.HealthcareApisServiceCosmosDbConfiguration cosmosDbConfiguration = null, Azure.ResourceManager.HealthcareApis.Models.HealthcareApisServiceAuthenticationConfiguration authenticationConfiguration = null, Azure.ResourceManager.HealthcareApis.Models.HealthcareApisServiceCorsConfiguration corsConfiguration = null, string exportStorageAccountName = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.HealthcareApis.Models.HealthcareApisPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisPublicNetworkAccess?), Azure.ResourceManager.HealthcareApis.Models.HealthcareApisServiceAcrConfiguration acrConfiguration = null, Azure.ResourceManager.HealthcareApis.Models.HealthcareApisServiceImportConfiguration importConfiguration = null) { throw null; } + public static Azure.ResourceManager.HealthcareApis.HealthcareApisWorkspaceData HealthcareApisWorkspaceData(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.HealthcareApis.Models.HealthcareApisWorkspaceProperties properties = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.HealthcareApis.Models.HealthcareApisWorkspaceProperties HealthcareApisWorkspaceProperties(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisProvisioningState? provisioningState = default(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisProvisioningState?), System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.HealthcareApis.Models.HealthcareApisPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.HealthcareApis.Models.HealthcareApisPublicNetworkAccess?)) { throw null; } + } public partial class DicomServiceAuthenticationConfiguration { public DicomServiceAuthenticationConfiguration() { } diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/ArmHealthcareApisModelFactory.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/ArmHealthcareApisModelFactory.cs new file mode 100644 index 0000000000000..f879e644f0b9b --- /dev/null +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/ArmHealthcareApisModelFactory.cs @@ -0,0 +1,233 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure; +using Azure.Core; +using Azure.ResourceManager.HealthcareApis; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.HealthcareApis.Models +{ + /// Model factory for models. + public static partial class ArmHealthcareApisModelFactory + { + /// Initializes a new instance of HealthcareApisServiceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The common properties of a service. + /// The kind of the service. + /// An etag associated with the resource, used for optimistic concurrency when editing it. + /// Setting indicating whether the service has a managed identity associated with it. Current supported identity types: SystemAssigned, None. + /// A new instance for mocking. + public static HealthcareApisServiceData HealthcareApisServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, HealthcareApisServiceProperties properties = null, HealthcareApisKind kind = default, ETag? etag = null, ManagedServiceIdentity identity = null) + { + tags ??= new Dictionary(); + + return new HealthcareApisServiceData(id, name, resourceType, systemData, tags, location, properties, kind, etag, identity); + } + + /// Initializes a new instance of HealthcareApisServiceProperties. + /// The provisioning state. + /// The access policies of the service instance. + /// The settings for the Cosmos DB database backing the service. + /// The authentication configuration for the service instance. + /// The settings for the CORS configuration of the service instance. + /// The settings for the export operation of the service instance. + /// The list of private endpoint connections that are set up for this resource. + /// Control permission for data plane traffic coming from public networks while private endpoint is enabled. + /// The azure container registry settings used for convert data operation of the service instance. + /// The settings for the import operation of the service instance. + /// A new instance for mocking. + public static HealthcareApisServiceProperties HealthcareApisServiceProperties(HealthcareApisProvisioningState? provisioningState = null, IEnumerable accessPolicies = null, HealthcareApisServiceCosmosDbConfiguration cosmosDbConfiguration = null, HealthcareApisServiceAuthenticationConfiguration authenticationConfiguration = null, HealthcareApisServiceCorsConfiguration corsConfiguration = null, string exportStorageAccountName = null, IEnumerable privateEndpointConnections = null, HealthcareApisPublicNetworkAccess? publicNetworkAccess = null, HealthcareApisServiceAcrConfiguration acrConfiguration = null, HealthcareApisServiceImportConfiguration importConfiguration = null) + { + accessPolicies ??= new List(); + privateEndpointConnections ??= new List(); + + return new HealthcareApisServiceProperties(provisioningState, accessPolicies?.ToList(), cosmosDbConfiguration, authenticationConfiguration, corsConfiguration, exportStorageAccountName != null ? new ServiceExportConfigurationInfo(exportStorageAccountName) : null, privateEndpointConnections?.ToList(), publicNetworkAccess, acrConfiguration, importConfiguration); + } + + /// Initializes a new instance of HealthcareApisPrivateEndpointConnectionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The resource of private end point. + /// A collection of information about the state of the connection between service consumer and provider. + /// The provisioning state of the private endpoint connection resource. + /// A new instance for mocking. + public static HealthcareApisPrivateEndpointConnectionData HealthcareApisPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, HealthcareApisPrivateLinkServiceConnectionState connectionState = null, HealthcareApisPrivateEndpointConnectionProvisioningState? provisioningState = null) + { + return new HealthcareApisPrivateEndpointConnectionData(id, name, resourceType, systemData, privateEndpointId != null ? ResourceManagerModelFactory.SubResource(privateEndpointId) : null, connectionState, provisioningState); + } + + /// Initializes a new instance of HealthcareApisNameAvailabilityResult. + /// The value which indicates whether the provided name is available. + /// The reason for unavailability. + /// The detailed reason message. + /// A new instance for mocking. + public static HealthcareApisNameAvailabilityResult HealthcareApisNameAvailabilityResult(bool? isNameAvailable = null, HealthcareApisNameUnavailableReason? reason = null, string message = null) + { + return new HealthcareApisNameAvailabilityResult(isNameAvailable, reason, message); + } + + /// Initializes a new instance of HealthcareApisPrivateLinkResourceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The private link resource group id. + /// The private link resource required member names. + /// The private link resource Private link DNS zone name. + /// A new instance for mocking. + public static HealthcareApisPrivateLinkResourceData HealthcareApisPrivateLinkResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null) + { + requiredMembers ??= new List(); + requiredZoneNames ??= new List(); + + return new HealthcareApisPrivateLinkResourceData(id, name, resourceType, systemData, groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList()); + } + + /// Initializes a new instance of HealthcareApisWorkspaceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Workspaces resource specific properties. + /// An etag associated with the resource, used for optimistic concurrency when editing it. + /// A new instance for mocking. + public static HealthcareApisWorkspaceData HealthcareApisWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, HealthcareApisWorkspaceProperties properties = null, ETag? etag = null) + { + tags ??= new Dictionary(); + + return new HealthcareApisWorkspaceData(id, name, resourceType, systemData, tags, location, properties, etag); + } + + /// Initializes a new instance of HealthcareApisWorkspaceProperties. + /// The provisioning state. + /// The list of private endpoint connections that are set up for this resource. + /// Control permission for data plane traffic coming from public networks while private endpoint is enabled. + /// A new instance for mocking. + public static HealthcareApisWorkspaceProperties HealthcareApisWorkspaceProperties(HealthcareApisProvisioningState? provisioningState = null, IEnumerable privateEndpointConnections = null, HealthcareApisPublicNetworkAccess? publicNetworkAccess = null) + { + privateEndpointConnections ??= new List(); + + return new HealthcareApisWorkspaceProperties(provisioningState, privateEndpointConnections?.ToList(), publicNetworkAccess); + } + + /// Initializes a new instance of DicomServiceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The provisioning state. + /// Dicom Service authentication configuration. + /// Dicom Service Cors configuration. + /// The url of the Dicom Services. + /// The list of private endpoint connections that are set up for this resource. + /// Control permission for data plane traffic coming from public networks while private endpoint is enabled. + /// Setting indicating whether the service has a managed identity associated with it. + /// An etag associated with the resource, used for optimistic concurrency when editing it. + /// A new instance for mocking. + public static DicomServiceData DicomServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, HealthcareApisProvisioningState? provisioningState = null, DicomServiceAuthenticationConfiguration authenticationConfiguration = null, DicomServiceCorsConfiguration corsConfiguration = null, Uri serviceUri = null, IEnumerable privateEndpointConnections = null, HealthcareApisPublicNetworkAccess? publicNetworkAccess = null, ManagedServiceIdentity identity = null, ETag? etag = null) + { + tags ??= new Dictionary(); + privateEndpointConnections ??= new List(); + + return new DicomServiceData(id, name, resourceType, systemData, tags, location, provisioningState, authenticationConfiguration, corsConfiguration, serviceUri, privateEndpointConnections?.ToList(), publicNetworkAccess, identity, etag); + } + + /// Initializes a new instance of DicomServiceAuthenticationConfiguration. + /// The authority url for the service. + /// The audiences for the service. + /// A new instance for mocking. + public static DicomServiceAuthenticationConfiguration DicomServiceAuthenticationConfiguration(string authority = null, IEnumerable audiences = null) + { + audiences ??= new List(); + + return new DicomServiceAuthenticationConfiguration(authority, audiences?.ToList()); + } + + /// Initializes a new instance of HealthcareApisIotConnectorData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The provisioning state. + /// Source configuration. + /// Device Mappings. + /// Setting indicating whether the service has a managed identity associated with it. + /// An etag associated with the resource, used for optimistic concurrency when editing it. + /// A new instance for mocking. + public static HealthcareApisIotConnectorData HealthcareApisIotConnectorData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, HealthcareApisProvisioningState? provisioningState = null, HealthcareApisIotConnectorEventHubIngestionConfiguration ingestionEndpointConfiguration = null, BinaryData deviceMappingContent = null, ManagedServiceIdentity identity = null, ETag? etag = null) + { + tags ??= new Dictionary(); + + return new HealthcareApisIotConnectorData(id, name, resourceType, systemData, tags, location, provisioningState, ingestionEndpointConfiguration, deviceMappingContent != null ? new HealthcareApisIotMappingProperties(deviceMappingContent) : null, identity, etag); + } + + /// Initializes a new instance of HealthcareApisIotFhirDestinationData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The provisioning state. + /// Determines how resource identity is resolved on the destination. + /// Fully qualified resource id of the FHIR service to connect to. + /// FHIR Mappings. + /// The resource location. + /// An etag associated with the resource, used for optimistic concurrency when editing it. + /// A new instance for mocking. + public static HealthcareApisIotFhirDestinationData HealthcareApisIotFhirDestinationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HealthcareApisProvisioningState? provisioningState = null, HealthcareApisIotIdentityResolutionType resourceIdentityResolutionType = default, ResourceIdentifier fhirServiceResourceId = null, BinaryData fhirMappingContent = null, AzureLocation? location = null, ETag? etag = null) + { + return new HealthcareApisIotFhirDestinationData(id, name, resourceType, systemData, provisioningState, resourceIdentityResolutionType, fhirServiceResourceId, fhirMappingContent != null ? new HealthcareApisIotMappingProperties(fhirMappingContent) : null, location, etag); + } + + /// Initializes a new instance of FhirServiceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The kind of the service. + /// The provisioning state. + /// Fhir Service access policies. + /// Fhir Service Azure container registry configuration. + /// Fhir Service authentication configuration. + /// Fhir Service Cors configuration. + /// Fhir Service export configuration. + /// The list of private endpoint connections that are set up for this resource. + /// Control permission for data plane traffic coming from public networks while private endpoint is enabled. + /// Fhir Service event support status. + /// Determines tracking of history for resources. + /// Fhir Service import configuration. + /// Setting indicating whether the service has a managed identity associated with it. + /// An etag associated with the resource, used for optimistic concurrency when editing it. + /// A new instance for mocking. + public static FhirServiceData FhirServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, FhirServiceKind? kind = null, HealthcareApisProvisioningState? provisioningState = null, IEnumerable accessPolicies = null, FhirServiceAcrConfiguration acrConfiguration = null, FhirServiceAuthenticationConfiguration authenticationConfiguration = null, FhirServiceCorsConfiguration corsConfiguration = null, string exportStorageAccountName = null, IEnumerable privateEndpointConnections = null, HealthcareApisPublicNetworkAccess? publicNetworkAccess = null, FhirServiceEventState? eventState = null, FhirServiceResourceVersionPolicyConfiguration resourceVersionPolicyConfiguration = null, FhirServiceImportConfiguration importConfiguration = null, ManagedServiceIdentity identity = null, ETag? etag = null) + { + tags ??= new Dictionary(); + accessPolicies ??= new List(); + privateEndpointConnections ??= new List(); + + return new FhirServiceData(id, name, resourceType, systemData, tags, location, kind, provisioningState, accessPolicies?.ToList(), acrConfiguration, authenticationConfiguration, corsConfiguration, exportStorageAccountName != null ? new FhirServiceExportConfiguration(exportStorageAccountName) : null, privateEndpointConnections?.ToList(), publicNetworkAccess, eventState, resourceVersionPolicyConfiguration, importConfiguration, identity, etag); + } + } +} diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/autorest.md b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/autorest.md index a2236a3fa465e..0fa3d5de4b3c4 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/autorest.md +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: HealthcareApis namespace: Azure.ResourceManager.HealthcareApis diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/CHANGELOG.md b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/CHANGELOG.md index ca46df16163df..52797981d8cb3 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/CHANGELOG.md +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.2 (2023-05-30) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.0-beta.1 (2023-04-07) This is the first beta release of Azure Hybrid Container Service client library. diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/api/Azure.ResourceManager.HybridContainerService.netstandard2.0.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/api/Azure.ResourceManager.HybridContainerService.netstandard2.0.cs index 2ceb5d5197438..661a8bf4e5c59 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/api/Azure.ResourceManager.HybridContainerService.netstandard2.0.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/api/Azure.ResourceManager.HybridContainerService.netstandard2.0.cs @@ -392,6 +392,33 @@ internal ArcAgentStatus() { } public System.DateTimeOffset? ManagedIdentityCertificateExpirationOn { get { throw null; } } public string OnboardingPublicKey { get { throw null; } } } + public static partial class ArmHybridContainerServiceModelFactory + { + public static Azure.ResourceManager.HybridContainerService.Models.AddonStatus AddonStatus(string errorMessage = null, string phase = null, bool? ready = default(bool?)) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.ArcAgentStatus ArcAgentStatus(Azure.ResourceManager.HybridContainerService.Models.DeploymentState? deploymentState = default(Azure.ResourceManager.HybridContainerService.Models.DeploymentState?), string errorMessage = null, string onboardingPublicKey = null, string agentVersion = null, long? coreCount = default(long?), System.DateTimeOffset? managedIdentityCertificateExpirationOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastConnectivityOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.HybridContainerService.HybridContainerServiceAgentPoolData HybridContainerServiceAgentPoolData(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.HybridContainerService.Models.AgentPoolExtendedLocation extendedLocation = null, int? count = default(int?), System.Collections.Generic.IEnumerable availabilityZones = null, int? maxCount = default(int?), int? maxPods = default(int?), int? minCount = default(int?), Azure.ResourceManager.HybridContainerService.Models.Mode? mode = default(Azure.ResourceManager.HybridContainerService.Models.Mode?), System.Collections.Generic.IDictionary nodeLabels = null, System.Collections.Generic.IEnumerable nodeTaints = null, Azure.ResourceManager.HybridContainerService.Models.OSType? osType = default(Azure.ResourceManager.HybridContainerService.Models.OSType?), string nodeImageVersion = null, string vmSize = null, Azure.ResourceManager.HybridContainerService.Models.CloudProviderProfile cloudProviderProfile = null, Azure.ResourceManager.HybridContainerService.Models.AgentPoolProvisioningState? provisioningState = default(Azure.ResourceManager.HybridContainerService.Models.AgentPoolProvisioningState?), Azure.ResourceManager.HybridContainerService.Models.AgentPoolProvisioningStatusStatus status = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.HybridContainerServiceVirtualNetworkData HybridContainerServiceVirtualNetworkData(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.HybridContainerService.Models.VirtualNetworksProperties properties = null, Azure.ResourceManager.HybridContainerService.Models.VirtualNetworksExtendedLocation extendedLocation = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.HybridIdentityMetadataData HybridIdentityMetadataData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string resourceUid = null, string publicKey = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.OrchestratorProfile OrchestratorProfile(bool? isPreview = default(bool?), string orchestratorType = null, string orchestratorVersion = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.OrchestratorVersionProfile OrchestratorVersionProfile(bool? isPreview = default(bool?), bool? @default = default(bool?), string orchestratorType = null, string orchestratorVersion = null, System.Collections.Generic.IEnumerable upgrades = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.OrchestratorVersionProfileListResult OrchestratorVersionProfileListResult(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 orchestrators = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.ProvisionedClusterCreateOrUpdateContent ProvisionedClusterCreateOrUpdateContent(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.HybridContainerService.Models.ProvisionedClustersAllProperties properties = null, Azure.ResourceManager.HybridContainerService.Models.ProvisionedClustersExtendedLocation extendedLocation = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.ProvisionedClusterData ProvisionedClusterData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.HybridContainerService.Models.ProvisionedClustersResponseProperties properties = null, Azure.ResourceManager.HybridContainerService.Models.ProvisionedClustersResponseExtendedLocation extendedLocation = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.ProvisionedClusterPoolUpgradeProfile ProvisionedClusterPoolUpgradeProfile(string kubernetesVersion = null, string name = null, Azure.ResourceManager.HybridContainerService.Models.OSType? osType = default(Azure.ResourceManager.HybridContainerService.Models.OSType?), System.Collections.Generic.IEnumerable upgrades = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.ProvisionedClusterPoolUpgradeProfileProperties ProvisionedClusterPoolUpgradeProfileProperties(string kubernetesVersion = null, bool? isPreview = default(bool?)) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.ProvisionedClustersAllProperties ProvisionedClustersAllProperties(Azure.ResourceManager.HybridContainerService.Models.AADProfile aadProfile = null, Azure.ResourceManager.HybridContainerService.Models.WindowsProfile windowsProfile = null, Azure.ResourceManager.HybridContainerService.Models.HttpProxyConfig httpProxyConfig = null, bool? enableRbac = default(bool?), Azure.ResourceManager.HybridContainerService.Models.LinuxProfileProperties linuxProfile = null, Azure.ResourceManager.HybridContainerService.Models.ArcAgentProfile featuresArcAgentProfile = null, System.Collections.Generic.IDictionary addonProfiles = null, Azure.ResourceManager.HybridContainerService.Models.ControlPlaneProfile controlPlane = null, string kubernetesVersion = null, Azure.ResourceManager.HybridContainerService.Models.NetworkProfile networkProfile = null, string nodeResourceGroup = null, System.Collections.Generic.IEnumerable agentPoolProfiles = null, Azure.ResourceManager.HybridContainerService.Models.CloudProviderProfile cloudProviderProfile = null, Azure.ResourceManager.HybridContainerService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HybridContainerService.Models.ProvisioningState?), Azure.ResourceManager.HybridContainerService.Models.ProvisionedClustersCommonPropertiesStatus status = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.ProvisionedClustersCommonPropertiesStatus ProvisionedClustersCommonPropertiesStatus(Azure.ResourceManager.HybridContainerService.Models.ArcAgentStatus arcAgentStatus = null, System.Collections.Generic.IReadOnlyDictionary addonStatus = null, string errorMessage = null, Azure.ResourceManager.HybridContainerService.Models.ProvisionedClustersCommonPropertiesStatusProvisioningStatus provisioningStatus = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.ProvisionedClustersCommonPropertiesStatusProvisioningStatus ProvisionedClustersCommonPropertiesStatusProvisioningStatus(Azure.ResourceManager.HybridContainerService.Models.ProvisionedClustersCommonPropertiesStatusProvisioningStatusError error = null, string operationId = null, string phase = null, string status = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.ProvisionedClustersCommonPropertiesStatusProvisioningStatusError ProvisionedClustersCommonPropertiesStatusProvisioningStatusError(string code = null, string message = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.ProvisionedClustersResponseProperties ProvisionedClustersResponseProperties(Azure.ResourceManager.HybridContainerService.Models.AADProfileResponse aadProfile = null, Azure.ResourceManager.HybridContainerService.Models.WindowsProfileResponse windowsProfile = null, Azure.ResourceManager.HybridContainerService.Models.HttpProxyConfigResponse httpProxyConfig = null, bool? enableRbac = default(bool?), Azure.ResourceManager.HybridContainerService.Models.LinuxProfileProperties linuxProfile = null, Azure.ResourceManager.HybridContainerService.Models.ArcAgentProfile featuresArcAgentProfile = null, System.Collections.Generic.IDictionary addonProfiles = null, Azure.ResourceManager.HybridContainerService.Models.ControlPlaneProfile controlPlane = null, string kubernetesVersion = null, Azure.ResourceManager.HybridContainerService.Models.NetworkProfile networkProfile = null, string nodeResourceGroup = null, System.Collections.Generic.IEnumerable agentPoolProfiles = null, Azure.ResourceManager.HybridContainerService.Models.CloudProviderProfile cloudProviderProfile = null, Azure.ResourceManager.HybridContainerService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HybridContainerService.Models.ProvisioningState?), Azure.ResourceManager.HybridContainerService.Models.ProvisionedClustersCommonPropertiesStatus status = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.ProvisionedClusterUpgradeProfileData ProvisionedClusterUpgradeProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string provisioningState = null, Azure.ResourceManager.HybridContainerService.Models.ProvisionedClusterPoolUpgradeProfile controlPlaneProfile = null, System.Collections.Generic.IEnumerable agentPoolProfiles = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.StorageSpaceData StorageSpaceData(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.HybridContainerService.Models.StorageSpacesProperties properties = null, Azure.ResourceManager.HybridContainerService.Models.StorageSpacesExtendedLocation extendedLocation = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.StorageSpacesProperties StorageSpacesProperties(Azure.ResourceManager.HybridContainerService.Models.StorageSpacesPropertiesHciStorageProfile hciStorageProfile = null, Azure.ResourceManager.HybridContainerService.Models.StorageSpacesPropertiesVmwareStorageProfile vmwareStorageProfile = null, Azure.ResourceManager.HybridContainerService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HybridContainerService.Models.ProvisioningState?), Azure.ResourceManager.HybridContainerService.Models.StorageSpacesPropertiesStatusProvisioningStatus provisioningStatus = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.VirtualNetworksProperties VirtualNetworksProperties(Azure.ResourceManager.HybridContainerService.Models.VirtualNetworksPropertiesInfraVnetProfile infraVnetProfile = null, System.Collections.Generic.IEnumerable vipPool = null, System.Collections.Generic.IEnumerable vmipPool = null, System.Collections.Generic.IEnumerable dhcpServers = null, System.Collections.Generic.IEnumerable dnsServers = null, string gateway = null, string ipAddressPrefix = null, string vlanId = null, Azure.ResourceManager.HybridContainerService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.HybridContainerService.Models.ProvisioningState?), Azure.ResourceManager.HybridContainerService.Models.VirtualNetworksPropertiesStatusProvisioningStatus provisioningStatus = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.VirtualNetworksPropertiesStatusProvisioningStatus VirtualNetworksPropertiesStatusProvisioningStatus(Azure.ResourceManager.HybridContainerService.Models.VirtualNetworksPropertiesStatusProvisioningStatusError error = null, string operationId = null, string phase = null, string status = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.VirtualNetworksPropertiesStatusProvisioningStatusError VirtualNetworksPropertiesStatusProvisioningStatusError(string code = null, string message = null) { throw null; } + public static Azure.ResourceManager.HybridContainerService.Models.VmSkuListResult VmSkuListResult(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 vmSKUs = null) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AutoUpgradeOption : System.IEquatable { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/ArmHybridContainerServiceModelFactory.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/ArmHybridContainerServiceModelFactory.cs new file mode 100644 index 0000000000000..853a30a96012a --- /dev/null +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/ArmHybridContainerServiceModelFactory.cs @@ -0,0 +1,388 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; +using Azure.ResourceManager.HybridContainerService; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.HybridContainerService.Models +{ + /// Model factory for models. + public static partial class ArmHybridContainerServiceModelFactory + { + /// Initializes a new instance of ProvisionedClusterData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Identity for the Provisioned cluster. Current supported identity types: None, SystemAssigned. + /// + /// + /// A new instance for mocking. + public static ProvisionedClusterData ProvisionedClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ProvisionedClustersResponseProperties properties = null, ProvisionedClustersResponseExtendedLocation extendedLocation = null) + { + tags ??= new Dictionary(); + + return new ProvisionedClusterData(id, name, resourceType, systemData, tags, location, identity, properties, extendedLocation); + } + + /// Initializes a new instance of ProvisionedClustersResponseProperties. + /// AAD profile for the provisioned cluster. + /// WindowsProfile - Profile for Windows VMs in the Provisioned Cluster. + /// HttpProxyConfig - Configurations for provisioning the cluster with HTTP proxy servers. + /// EnableRBAC - Whether to enable Kubernetes Role-Based Access Control. + /// LinuxProfile - The profile for Linux VMs in the Provisioned Cluster. + /// Additional features specs like Arc Agent Onboarding. + /// AddonProfiles - Profile of managed cluster add-on. + /// ControlPlane - ControlPlane Configuration. + /// KubernetesVersion - Version of Kubernetes specified when creating the managed cluster. + /// NetworkProfile - Profile of network configuration. + /// NodeResourceGroup - Name of the resource group containing agent pool nodes. + /// The agent pools of the cluster. + /// The underlying cloud infra provider properties. + /// + /// HybridAKSClusterStatus defines the observed state of HybridAKSCluster. + /// A new instance for mocking. + public static ProvisionedClustersResponseProperties ProvisionedClustersResponseProperties(AADProfileResponse aadProfile = null, WindowsProfileResponse windowsProfile = null, HttpProxyConfigResponse httpProxyConfig = null, bool? enableRbac = null, LinuxProfileProperties linuxProfile = null, ArcAgentProfile featuresArcAgentProfile = null, IDictionary addonProfiles = null, ControlPlaneProfile controlPlane = null, string kubernetesVersion = null, NetworkProfile networkProfile = null, string nodeResourceGroup = null, IEnumerable agentPoolProfiles = null, CloudProviderProfile cloudProviderProfile = null, ProvisioningState? provisioningState = null, ProvisionedClustersCommonPropertiesStatus status = null) + { + addonProfiles ??= new Dictionary(); + agentPoolProfiles ??= new List(); + + return new ProvisionedClustersResponseProperties(aadProfile, windowsProfile, httpProxyConfig, enableRbac, linuxProfile, featuresArcAgentProfile != null ? new ProvisionedClustersCommonPropertiesFeatures(featuresArcAgentProfile) : null, addonProfiles, controlPlane, kubernetesVersion, networkProfile, nodeResourceGroup, agentPoolProfiles?.ToList(), cloudProviderProfile, provisioningState, status); + } + + /// Initializes a new instance of ProvisionedClustersCommonPropertiesStatus. + /// Additional features status like Arc Agent Onboarding. + /// AddonStatus - Status of Addons. + /// ErrorMessage - Error messages during creation of cluster. + /// Contains Provisioning errors. + /// A new instance for mocking. + public static ProvisionedClustersCommonPropertiesStatus ProvisionedClustersCommonPropertiesStatus(ArcAgentStatus arcAgentStatus = null, IReadOnlyDictionary addonStatus = null, string errorMessage = null, ProvisionedClustersCommonPropertiesStatusProvisioningStatus provisioningStatus = null) + { + addonStatus ??= new Dictionary(); + + return new ProvisionedClustersCommonPropertiesStatus(arcAgentStatus != null ? new ProvisionedClustersCommonPropertiesStatusFeaturesStatus(arcAgentStatus) : null, addonStatus, errorMessage, provisioningStatus); + } + + /// Initializes a new instance of ArcAgentStatus. + /// Observed deployment state of the Arc Agents on the target cluster. Possible values include: 'pending', 'provisioning', 'provisioned', 'deleting', 'failed', 'upgrading'. + /// Error messages while onboarding/upgrading/uninstalling the Arc agents. + /// Onboarding public key for provisioning the Managed identity for the HybridAKS cluster. Will be used to create the hybridIdentityMetadata proxy resource and will not be persisted. + /// Version of the Arc agents currently running on the Provisioned cluster resource. + /// Number of CPU cores present in the Provisioned cluster resource. + /// ManagedIdentity certificate expiration time (ValidUntil). + /// Last connected timestamp of the Provisioned cluster resource. + /// A new instance for mocking. + public static ArcAgentStatus ArcAgentStatus(DeploymentState? deploymentState = null, string errorMessage = null, string onboardingPublicKey = null, string agentVersion = null, long? coreCount = null, DateTimeOffset? managedIdentityCertificateExpirationOn = null, DateTimeOffset? lastConnectivityOn = null) + { + return new ArcAgentStatus(deploymentState, errorMessage, onboardingPublicKey, agentVersion, coreCount, managedIdentityCertificateExpirationOn, lastConnectivityOn); + } + + /// Initializes a new instance of AddonStatus. + /// ErrorMessage will be set in the event that there is a terminal problem reconciling the AddOn and will contain a more verbose string suitable for logging and human consumption. + /// Phase represents the current phase of cluster actuation. E.g. Pending, Running, Terminating, Failed etc. + /// + /// A new instance for mocking. + public static AddonStatus AddonStatus(string errorMessage = null, string phase = null, bool? ready = null) + { + return new AddonStatus(errorMessage, phase, ready); + } + + /// Initializes a new instance of ProvisionedClustersCommonPropertiesStatusProvisioningStatus. + /// + /// + /// Phase represents the current phase of cluster actuation. E.g. Pending, Running, Terminating, Failed etc. + /// + /// A new instance for mocking. + public static ProvisionedClustersCommonPropertiesStatusProvisioningStatus ProvisionedClustersCommonPropertiesStatusProvisioningStatus(ProvisionedClustersCommonPropertiesStatusProvisioningStatusError error = null, string operationId = null, string phase = null, string status = null) + { + return new ProvisionedClustersCommonPropertiesStatusProvisioningStatus(error, operationId, phase, status); + } + + /// Initializes a new instance of ProvisionedClustersCommonPropertiesStatusProvisioningStatusError. + /// + /// + /// A new instance for mocking. + public static ProvisionedClustersCommonPropertiesStatusProvisioningStatusError ProvisionedClustersCommonPropertiesStatusProvisioningStatusError(string code = null, string message = null) + { + return new ProvisionedClustersCommonPropertiesStatusProvisioningStatusError(code, message); + } + + /// Initializes a new instance of ProvisionedClusterCreateOrUpdateContent. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Identity for the Provisioned cluster. Current supported identity types: None, SystemAssigned. + /// All properties of the provisioned cluster. + /// + /// A new instance for mocking. + public static ProvisionedClusterCreateOrUpdateContent ProvisionedClusterCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ProvisionedClustersAllProperties properties = null, ProvisionedClustersExtendedLocation extendedLocation = null) + { + tags ??= new Dictionary(); + + return new ProvisionedClusterCreateOrUpdateContent(id, name, resourceType, systemData, tags, location, identity, properties, extendedLocation); + } + + /// Initializes a new instance of ProvisionedClustersAllProperties. + /// AAD profile for the provisioned cluster. + /// WindowsProfile - Profile for Windows VMs in the Provisioned Cluster. + /// HttpProxyConfig - Configurations for provisioning the cluster with HTTP proxy servers. + /// EnableRBAC - Whether to enable Kubernetes Role-Based Access Control. + /// LinuxProfile - The profile for Linux VMs in the Provisioned Cluster. + /// Additional features specs like Arc Agent Onboarding. + /// AddonProfiles - Profile of managed cluster add-on. + /// ControlPlane - ControlPlane Configuration. + /// KubernetesVersion - Version of Kubernetes specified when creating the managed cluster. + /// NetworkProfile - Profile of network configuration. + /// NodeResourceGroup - Name of the resource group containing agent pool nodes. + /// The agent pools of the cluster. + /// The underlying cloud infra provider properties. + /// + /// HybridAKSClusterStatus defines the observed state of HybridAKSCluster. + /// A new instance for mocking. + public static ProvisionedClustersAllProperties ProvisionedClustersAllProperties(AADProfile aadProfile = null, WindowsProfile windowsProfile = null, HttpProxyConfig httpProxyConfig = null, bool? enableRbac = null, LinuxProfileProperties linuxProfile = null, ArcAgentProfile featuresArcAgentProfile = null, IDictionary addonProfiles = null, ControlPlaneProfile controlPlane = null, string kubernetesVersion = null, NetworkProfile networkProfile = null, string nodeResourceGroup = null, IEnumerable agentPoolProfiles = null, CloudProviderProfile cloudProviderProfile = null, ProvisioningState? provisioningState = null, ProvisionedClustersCommonPropertiesStatus status = null) + { + addonProfiles ??= new Dictionary(); + agentPoolProfiles ??= new List(); + + return new ProvisionedClustersAllProperties(aadProfile, windowsProfile, httpProxyConfig, enableRbac, linuxProfile, featuresArcAgentProfile != null ? new ProvisionedClustersCommonPropertiesFeatures(featuresArcAgentProfile) : null, addonProfiles, controlPlane, kubernetesVersion, networkProfile, nodeResourceGroup, agentPoolProfiles?.ToList(), cloudProviderProfile, provisioningState, status); + } + + /// Initializes a new instance of ProvisionedClusterUpgradeProfileData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The list of available upgrade versions for the control plane. + /// The list of available upgrade versions for agent pools. + /// A new instance for mocking. + public static ProvisionedClusterUpgradeProfileData ProvisionedClusterUpgradeProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string provisioningState = null, ProvisionedClusterPoolUpgradeProfile controlPlaneProfile = null, IEnumerable agentPoolProfiles = null) + { + agentPoolProfiles ??= new List(); + + return new ProvisionedClusterUpgradeProfileData(id, name, resourceType, systemData, provisioningState, controlPlaneProfile, agentPoolProfiles?.ToList()); + } + + /// Initializes a new instance of ProvisionedClusterPoolUpgradeProfile. + /// The Kubernetes version (major.minor.patch). + /// The Agent Pool name. + /// OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'. + /// List of orchestrator types and versions available for upgrade. + /// A new instance for mocking. + public static ProvisionedClusterPoolUpgradeProfile ProvisionedClusterPoolUpgradeProfile(string kubernetesVersion = null, string name = null, OSType? osType = null, IEnumerable upgrades = null) + { + upgrades ??= new List(); + + return new ProvisionedClusterPoolUpgradeProfile(kubernetesVersion, name, osType, upgrades?.ToList()); + } + + /// Initializes a new instance of ProvisionedClusterPoolUpgradeProfileProperties. + /// The Kubernetes version (major.minor.patch). + /// Whether the Kubernetes version is currently in preview. + /// A new instance for mocking. + public static ProvisionedClusterPoolUpgradeProfileProperties ProvisionedClusterPoolUpgradeProfileProperties(string kubernetesVersion = null, bool? isPreview = null) + { + return new ProvisionedClusterPoolUpgradeProfileProperties(kubernetesVersion, isPreview); + } + + /// Initializes a new instance of HybridIdentityMetadataData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Unique id of the parent provisioned cluster resource. + /// Onboarding public key for provisioning the Managed identity for the HybridAKS cluster. + /// The identity of the provisioned cluster. Current supported identity types: None, SystemAssigned. + /// provisioning state of the hybridIdentityMetadata resource. + /// A new instance for mocking. + public static HybridIdentityMetadataData HybridIdentityMetadataData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string resourceUid = null, string publicKey = null, ManagedServiceIdentity identity = null, string provisioningState = null) + { + return new HybridIdentityMetadataData(id, name, resourceType, systemData, resourceUid, publicKey, identity, provisioningState); + } + + /// Initializes a new instance of HybridContainerServiceAgentPoolData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// + /// Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1. + /// AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones. + /// The maximum number of nodes for auto-scaling. + /// The maximum number of pods that can run on a node. + /// The minimum number of nodes for auto-scaling. + /// Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'. + /// NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool. + /// NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule. + /// OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'. + /// The version of node image. + /// VmSize - The size of the agent pool VMs. + /// The underlying cloud infra provider properties. + /// + /// HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool. + /// A new instance for mocking. + public static HybridContainerServiceAgentPoolData HybridContainerServiceAgentPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, AgentPoolExtendedLocation extendedLocation = null, int? count = null, IEnumerable availabilityZones = null, int? maxCount = null, int? maxPods = null, int? minCount = null, Mode? mode = null, IDictionary nodeLabels = null, IEnumerable nodeTaints = null, OSType? osType = null, string nodeImageVersion = null, string vmSize = null, CloudProviderProfile cloudProviderProfile = null, AgentPoolProvisioningState? provisioningState = null, AgentPoolProvisioningStatusStatus status = null) + { + tags ??= new Dictionary(); + availabilityZones ??= new List(); + nodeLabels ??= new Dictionary(); + nodeTaints ??= new List(); + + return new HybridContainerServiceAgentPoolData(id, name, resourceType, systemData, tags, location, extendedLocation, count, availabilityZones?.ToList(), maxCount, maxPods, minCount, mode, nodeLabels, nodeTaints?.ToList(), osType, nodeImageVersion, vmSize, cloudProviderProfile, provisioningState, status); + } + + /// Initializes a new instance of OrchestratorVersionProfileListResult. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Profile of the orchestrator versions. + /// A new instance for mocking. + public static OrchestratorVersionProfileListResult OrchestratorVersionProfileListResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable orchestrators = null) + { + orchestrators ??= new List(); + + return new OrchestratorVersionProfileListResult(id, name, resourceType, systemData, orchestrators?.ToList()); + } + + /// Initializes a new instance of OrchestratorVersionProfile. + /// Whether Kubernetes version is currently in preview. + /// Installed by default if version is not specified. + /// Orchestrator type. + /// Orchestrator version major.minor.patch, for example 1.21.9. + /// The list of available upgrade versions. + /// A new instance for mocking. + public static OrchestratorVersionProfile OrchestratorVersionProfile(bool? isPreview = null, bool? @default = null, string orchestratorType = null, string orchestratorVersion = null, IEnumerable upgrades = null) + { + upgrades ??= new List(); + + return new OrchestratorVersionProfile(isPreview, @default, orchestratorType, orchestratorVersion, upgrades?.ToList()); + } + + /// Initializes a new instance of OrchestratorProfile. + /// Whether Kubernetes version is currently in preview. + /// Orchestrator type. + /// Orchestrator version (major, minor, patch). + /// A new instance for mocking. + public static OrchestratorProfile OrchestratorProfile(bool? isPreview = null, string orchestratorType = null, string orchestratorVersion = null) + { + return new OrchestratorProfile(isPreview, orchestratorType, orchestratorVersion); + } + + /// Initializes a new instance of VmSkuListResult. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Supported VM SKUs. + /// A new instance for mocking. + public static VmSkuListResult VmSkuListResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable vmSKUs = null) + { + vmSKUs ??= new List(); + + return new VmSkuListResult(id, name, resourceType, systemData, vmSKUs?.ToList()); + } + + /// Initializes a new instance of StorageSpaceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// HybridAKSStorageSpec defines the desired state of HybridAKSStorage. + /// + /// A new instance for mocking. + public static StorageSpaceData StorageSpaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, StorageSpacesProperties properties = null, StorageSpacesExtendedLocation extendedLocation = null) + { + tags ??= new Dictionary(); + + return new StorageSpaceData(id, name, resourceType, systemData, tags, location, properties, extendedLocation); + } + + /// Initializes a new instance of StorageSpacesProperties. + /// + /// + /// + /// HybridAKSStorageStatus defines the observed state of HybridAKSStorage. + /// A new instance for mocking. + public static StorageSpacesProperties StorageSpacesProperties(StorageSpacesPropertiesHciStorageProfile hciStorageProfile = null, StorageSpacesPropertiesVmwareStorageProfile vmwareStorageProfile = null, ProvisioningState? provisioningState = null, StorageSpacesPropertiesStatusProvisioningStatus provisioningStatus = null) + { + return new StorageSpacesProperties(hciStorageProfile, vmwareStorageProfile, provisioningState, provisioningStatus != null ? new StorageSpacesPropertiesStatus(provisioningStatus) : null); + } + + /// Initializes a new instance of HybridContainerServiceVirtualNetworkData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// HybridAKSNetworkSpec defines the desired state of HybridAKSNetwork. + /// + /// A new instance for mocking. + public static HybridContainerServiceVirtualNetworkData HybridContainerServiceVirtualNetworkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, VirtualNetworksProperties properties = null, VirtualNetworksExtendedLocation extendedLocation = null) + { + tags ??= new Dictionary(); + + return new HybridContainerServiceVirtualNetworkData(id, name, resourceType, systemData, tags, location, properties, extendedLocation); + } + + /// Initializes a new instance of VirtualNetworksProperties. + /// + /// Virtual IP Pool for Kubernetes. + /// IP Pool for Virtual Machines. + /// Address of the DHCP servers associated with the network. + /// Address of the DNS servers associated with the network. + /// Address of the Gateway associated with the network. + /// IP Address Prefix of the network. + /// VLAN Id used by the network. + /// + /// HybridAKSNetworkStatus defines the observed state of HybridAKSNetwork. + /// A new instance for mocking. + public static VirtualNetworksProperties VirtualNetworksProperties(VirtualNetworksPropertiesInfraVnetProfile infraVnetProfile = null, IEnumerable vipPool = null, IEnumerable vmipPool = null, IEnumerable dhcpServers = null, IEnumerable dnsServers = null, string gateway = null, string ipAddressPrefix = null, string vlanId = null, ProvisioningState? provisioningState = null, VirtualNetworksPropertiesStatusProvisioningStatus provisioningStatus = null) + { + vipPool ??= new List(); + vmipPool ??= new List(); + dhcpServers ??= new List(); + dnsServers ??= new List(); + + return new VirtualNetworksProperties(infraVnetProfile, vipPool?.ToList(), vmipPool?.ToList(), dhcpServers?.ToList(), dnsServers?.ToList(), gateway, ipAddressPrefix, vlanId, provisioningState, provisioningStatus != null ? new VirtualNetworksPropertiesStatus(provisioningStatus) : null); + } + + /// Initializes a new instance of VirtualNetworksPropertiesStatusProvisioningStatus. + /// + /// + /// Phase represents the current phase of cluster actuation. E.g. Pending, Running, Terminating, Failed etc. + /// + /// A new instance for mocking. + public static VirtualNetworksPropertiesStatusProvisioningStatus VirtualNetworksPropertiesStatusProvisioningStatus(VirtualNetworksPropertiesStatusProvisioningStatusError error = null, string operationId = null, string phase = null, string status = null) + { + return new VirtualNetworksPropertiesStatusProvisioningStatus(error, operationId, phase, status); + } + + /// Initializes a new instance of VirtualNetworksPropertiesStatusProvisioningStatusError. + /// + /// + /// A new instance for mocking. + public static VirtualNetworksPropertiesStatusProvisioningStatusError VirtualNetworksPropertiesStatusProvisioningStatusError(string code = null, string message = null) + { + return new VirtualNetworksPropertiesStatusProvisioningStatusError(code, message); + } + } +} diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/autorest.md b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/autorest.md index 0f4402a309429..c60f27d7610b5 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/autorest.md +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: HybridContainerService namespace: Azure.ResourceManager.HybridContainerService diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/CHANGELOG.md b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/CHANGELOG.md index c7281c79caec1..b399c3ea2eab6 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/CHANGELOG.md +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.0.0-beta.4 (Unreleased) +## 1.0.0-beta.4 (2023-05-30) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.0-beta.3 (2023-04-17) ### Bugs Fixed diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/api/Azure.ResourceManager.HybridCompute.netstandard2.0.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/api/Azure.ResourceManager.HybridCompute.netstandard2.0.cs index 6000b9f53c0e5..200265790fc1d 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/api/Azure.ResourceManager.HybridCompute.netstandard2.0.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/api/Azure.ResourceManager.HybridCompute.netstandard2.0.cs @@ -250,6 +250,26 @@ internal AgentConfiguration() { } public static bool operator !=(Azure.ResourceManager.HybridCompute.Models.AgentConfigurationMode left, Azure.ResourceManager.HybridCompute.Models.AgentConfigurationMode right) { throw null; } public override string ToString() { throw null; } } + public static partial class ArmHybridComputeModelFactory + { + public static Azure.ResourceManager.HybridCompute.Models.AgentConfiguration AgentConfiguration(System.Uri proxyUri = null, System.Collections.Generic.IEnumerable incomingConnectionsPorts = null, System.Collections.Generic.IEnumerable extensionsAllowList = null, System.Collections.Generic.IEnumerable extensionsBlockList = null, System.Collections.Generic.IEnumerable proxyBypass = null, string extensionsEnabled = null, string guestConfigurationEnabled = null, Azure.ResourceManager.HybridCompute.Models.AgentConfigurationMode? configMode = default(Azure.ResourceManager.HybridCompute.Models.AgentConfigurationMode?)) { throw null; } + public static Azure.ResourceManager.HybridCompute.Models.ConfigurationExtension ConfigurationExtension(string publisher = null, string configurationExtensionType = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.Models.ConnectionDetail ConnectionDetail(string id = null, string privateIPAddress = null, string linkIdentifier = null, string groupId = null, string memberName = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.HybridComputeMachineData HybridComputeMachineData(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.HybridCompute.Models.MachineProperties properties = null, System.Collections.Generic.IEnumerable resources = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.HybridComputeMachineExtensionData HybridComputeMachineExtensionData(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.HybridCompute.Models.MachineExtensionProperties properties = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.HybridComputePrivateEndpointConnectionData HybridComputePrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridCompute.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.HybridComputePrivateLinkResourceData HybridComputePrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridCompute.Models.HybridComputePrivateLinkResourceProperties properties = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.Models.HybridComputePrivateLinkResourceProperties HybridComputePrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.HybridComputePrivateLinkScopeData HybridComputePrivateLinkScopeData(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.HybridCompute.Models.HybridComputePrivateLinkScopeProperties properties = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.Models.HybridComputePrivateLinkScopeProperties HybridComputePrivateLinkScopeProperties(Azure.ResourceManager.HybridCompute.Models.PublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.HybridCompute.Models.PublicNetworkAccessType?), string provisioningState = null, string privateLinkScopeId = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.Models.HybridComputePrivateLinkServiceConnectionStateProperty HybridComputePrivateLinkServiceConnectionStateProperty(string status = null, string description = null, string actionsRequired = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.Models.MachineExtensionProperties MachineExtensionProperties(string forceUpdateTag = null, string publisher = null, string machineExtensionPropertiesType = null, string typeHandlerVersion = null, bool? enableAutomaticUpgrade = default(bool?), bool? autoUpgradeMinorVersion = default(bool?), System.Collections.Generic.IDictionary settings = null, System.Collections.Generic.IDictionary protectedSettings = null, string provisioningState = null, Azure.ResourceManager.HybridCompute.Models.MachineExtensionInstanceView instanceView = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.Models.MachineProperties MachineProperties(Azure.ResourceManager.HybridCompute.Models.LocationData locationData = null, Azure.ResourceManager.HybridCompute.Models.AgentConfiguration agentConfiguration = null, Azure.ResourceManager.HybridCompute.Models.HybridComputeServiceStatuses serviceStatuses = null, string cloudMetadataProvider = null, Azure.ResourceManager.HybridCompute.Models.OSProfile osProfile = null, string provisioningState = null, Azure.ResourceManager.HybridCompute.Models.HybridComputeStatusType? status = default(Azure.ResourceManager.HybridCompute.Models.HybridComputeStatusType?), System.DateTimeOffset? lastStatusChange = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable errorDetails = null, string agentVersion = null, string vmId = null, string displayName = null, string machineFqdn = null, string clientPublicKey = null, string osName = null, string osVersion = null, string osType = null, string vmUuid = null, string osSku = null, string domainName = null, string adFqdn = null, string dnsFqdn = null, string privateLinkScopeResourceId = null, string parentClusterResourceId = null, string mssqlDiscovered = null, System.Collections.Generic.IReadOnlyDictionary detectedProperties = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.Models.OSProfile OSProfile(string computerName = null, Azure.ResourceManager.HybridCompute.Models.OSProfileWindowsConfiguration windowsConfiguration = null, Azure.ResourceManager.HybridCompute.Models.OSProfileLinuxConfiguration linuxConfiguration = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.Models.PrivateEndpointConnectionDataModel PrivateEndpointConnectionDataModel(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridCompute.Models.PrivateEndpointConnectionProperties properties = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.Models.PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.HybridCompute.Models.HybridComputePrivateLinkServiceConnectionStateProperty connectionState = null, string provisioningState = null, System.Collections.Generic.IEnumerable groupIds = null) { throw null; } + public static Azure.ResourceManager.HybridCompute.Models.PrivateLinkScopeValidationDetails PrivateLinkScopeValidationDetails(string id = null, Azure.ResourceManager.HybridCompute.Models.PublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.HybridCompute.Models.PublicNetworkAccessType?), System.Collections.Generic.IEnumerable connectionDetails = null) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AssessmentModeType : System.IEquatable { diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/ArmHybridComputeModelFactory.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/ArmHybridComputeModelFactory.cs new file mode 100644 index 0000000000000..8442fec3038a4 --- /dev/null +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/ArmHybridComputeModelFactory.cs @@ -0,0 +1,276 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure; +using Azure.Core; +using Azure.ResourceManager.HybridCompute; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.HybridCompute.Models +{ + /// Model factory for models. + public static partial class ArmHybridComputeModelFactory + { + /// Initializes a new instance of HybridComputeMachineData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Hybrid Compute Machine properties. + /// The list of extensions affiliated to the machine. + /// Identity for the resource. Current supported identity types: SystemAssigned. + /// A new instance for mocking. + public static HybridComputeMachineData HybridComputeMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, MachineProperties properties = null, IEnumerable resources = null, ManagedServiceIdentity identity = null) + { + tags ??= new Dictionary(); + resources ??= new List(); + + return new HybridComputeMachineData(id, name, resourceType, systemData, tags, location, properties, resources?.ToList(), identity); + } + + /// Initializes a new instance of MachineProperties. + /// Metadata pertaining to the geographic location of the resource. + /// Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM. + /// Statuses of dependent services that are reported back to ARM. + /// The metadata of the cloud environment (Azure/GCP/AWS/OCI...). + /// Specifies the operating system settings for the hybrid machine. + /// The provisioning state, which only appears in the response. + /// The status of the hybrid machine agent. + /// The time of the last status change. + /// Details about the error state. + /// The hybrid machine agent full version. + /// Specifies the hybrid machine unique ID. + /// Specifies the hybrid machine display name. + /// Specifies the hybrid machine FQDN. + /// Public Key that the client provides to be used during initial resource onboarding. + /// The Operating System running on the hybrid machine. + /// The version of Operating System running on the hybrid machine. + /// The type of Operating System (windows/linux). + /// Specifies the Arc Machine's unique SMBIOS ID. + /// Specifies the Operating System product SKU. + /// Specifies the Windows domain name. + /// Specifies the AD fully qualified display name. + /// Specifies the DNS fully qualified display name. + /// The resource id of the private link scope this machine is assigned to, if any. + /// The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any. + /// Specifies whether any MS SQL instance is discovered on the machine. + /// Detected properties from the machine. + /// A new instance for mocking. + public static MachineProperties MachineProperties(LocationData locationData = null, AgentConfiguration agentConfiguration = null, HybridComputeServiceStatuses serviceStatuses = null, string cloudMetadataProvider = null, OSProfile osProfile = null, string provisioningState = null, HybridComputeStatusType? status = null, DateTimeOffset? lastStatusChange = null, IEnumerable errorDetails = null, string agentVersion = null, string vmId = null, string displayName = null, string machineFqdn = null, string clientPublicKey = null, string osName = null, string osVersion = null, string osType = null, string vmUuid = null, string osSku = null, string domainName = null, string adFqdn = null, string dnsFqdn = null, string privateLinkScopeResourceId = null, string parentClusterResourceId = null, string mssqlDiscovered = null, IReadOnlyDictionary detectedProperties = null) + { + errorDetails ??= new List(); + detectedProperties ??= new Dictionary(); + + return new MachineProperties(locationData, agentConfiguration, serviceStatuses, cloudMetadataProvider != null ? new CloudMetadata(cloudMetadataProvider) : null, osProfile, provisioningState, status, lastStatusChange, errorDetails?.ToList(), agentVersion, vmId, displayName, machineFqdn, clientPublicKey, osName, osVersion, osType, vmUuid, osSku, domainName, adFqdn, dnsFqdn, privateLinkScopeResourceId, parentClusterResourceId, mssqlDiscovered, detectedProperties); + } + + /// Initializes a new instance of AgentConfiguration. + /// Specifies the URL of the proxy to be used. + /// Specifies the list of ports that the agent will be able to listen on. + /// Array of extensions that are allowed to be installed or updated. + /// Array of extensions that are blocked (cannot be installed or updated). + /// List of service names which should not use the specified proxy server. + /// Specifies whether the extension service is enabled or disabled. + /// Specified whether the guest configuration service is enabled or disabled. + /// Name of configuration mode to use. Modes are pre-defined configurations of security controls, extension allowlists and guest configuration, maintained by Microsoft. + /// A new instance for mocking. + public static AgentConfiguration AgentConfiguration(Uri proxyUri = null, IEnumerable incomingConnectionsPorts = null, IEnumerable extensionsAllowList = null, IEnumerable extensionsBlockList = null, IEnumerable proxyBypass = null, string extensionsEnabled = null, string guestConfigurationEnabled = null, AgentConfigurationMode? configMode = null) + { + incomingConnectionsPorts ??= new List(); + extensionsAllowList ??= new List(); + extensionsBlockList ??= new List(); + proxyBypass ??= new List(); + + return new AgentConfiguration(proxyUri, incomingConnectionsPorts?.ToList(), extensionsAllowList?.ToList(), extensionsBlockList?.ToList(), proxyBypass?.ToList(), extensionsEnabled, guestConfigurationEnabled, configMode); + } + + /// Initializes a new instance of ConfigurationExtension. + /// Publisher of the extension. + /// Type of the extension. + /// A new instance for mocking. + public static ConfigurationExtension ConfigurationExtension(string publisher = null, string configurationExtensionType = null) + { + return new ConfigurationExtension(publisher, configurationExtensionType); + } + + /// Initializes a new instance of OSProfile. + /// Specifies the host OS name of the hybrid machine. + /// Specifies the windows configuration for update management. + /// Specifies the linux configuration for update management. + /// A new instance for mocking. + public static OSProfile OSProfile(string computerName = null, OSProfileWindowsConfiguration windowsConfiguration = null, OSProfileLinuxConfiguration linuxConfiguration = null) + { + return new OSProfile(computerName, windowsConfiguration, linuxConfiguration); + } + + /// Initializes a new instance of HybridComputeMachineExtensionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Describes Machine Extension Properties. + /// A new instance for mocking. + public static HybridComputeMachineExtensionData HybridComputeMachineExtensionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, MachineExtensionProperties properties = null) + { + tags ??= new Dictionary(); + + return new HybridComputeMachineExtensionData(id, name, resourceType, systemData, tags, location, properties); + } + + /// Initializes a new instance of MachineExtensionProperties. + /// How the extension handler should be forced to update even if the extension configuration has not changed. + /// The name of the extension handler publisher. + /// Specifies the type of the extension; an example is "CustomScriptExtension". + /// Specifies the version of the script handler. + /// Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. + /// Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. + /// Json formatted public settings for the extension. + /// The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. + /// The provisioning state, which only appears in the response. + /// The machine extension instance view. + /// A new instance for mocking. + public static MachineExtensionProperties MachineExtensionProperties(string forceUpdateTag = null, string publisher = null, string machineExtensionPropertiesType = null, string typeHandlerVersion = null, bool? enableAutomaticUpgrade = null, bool? autoUpgradeMinorVersion = null, IDictionary settings = null, IDictionary protectedSettings = null, string provisioningState = null, MachineExtensionInstanceView instanceView = null) + { + settings ??= new Dictionary(); + protectedSettings ??= new Dictionary(); + + return new MachineExtensionProperties(forceUpdateTag, publisher, machineExtensionPropertiesType, typeHandlerVersion, enableAutomaticUpgrade, autoUpgradeMinorVersion, settings, protectedSettings, provisioningState, instanceView); + } + + /// Initializes a new instance of HybridComputePrivateLinkScopeData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Properties that define a Azure Arc PrivateLinkScope resource. + /// A new instance for mocking. + public static HybridComputePrivateLinkScopeData HybridComputePrivateLinkScopeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, HybridComputePrivateLinkScopeProperties properties = null) + { + tags ??= new Dictionary(); + + return new HybridComputePrivateLinkScopeData(id, name, resourceType, systemData, tags, location, properties); + } + + /// Initializes a new instance of HybridComputePrivateLinkScopeProperties. + /// Indicates whether machines associated with the private link scope can also use public Azure Arc service endpoints. + /// Current state of this PrivateLinkScope: whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Provisioning ,Succeeded, Canceled and Failed. + /// The Guid id of the private link scope. + /// The collection of associated Private Endpoint Connections. + /// A new instance for mocking. + public static HybridComputePrivateLinkScopeProperties HybridComputePrivateLinkScopeProperties(PublicNetworkAccessType? publicNetworkAccess = null, string provisioningState = null, string privateLinkScopeId = null, IEnumerable privateEndpointConnections = null) + { + privateEndpointConnections ??= new List(); + + return new HybridComputePrivateLinkScopeProperties(publicNetworkAccess, provisioningState, privateLinkScopeId, privateEndpointConnections?.ToList()); + } + + /// Initializes a new instance of PrivateEndpointConnectionDataModel. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The Private Endpoint Connection properties. + /// A new instance for mocking. + public static PrivateEndpointConnectionDataModel PrivateEndpointConnectionDataModel(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, PrivateEndpointConnectionProperties properties = null) + { + return new PrivateEndpointConnectionDataModel(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of PrivateEndpointConnectionProperties. + /// Private endpoint which the connection belongs to. + /// Connection state of the private endpoint connection. + /// State of the private endpoint connection. + /// List of group IDs. + /// A new instance for mocking. + public static PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(ResourceIdentifier privateEndpointId = null, HybridComputePrivateLinkServiceConnectionStateProperty connectionState = null, string provisioningState = null, IEnumerable groupIds = null) + { + groupIds ??= new List(); + + return new PrivateEndpointConnectionProperties(privateEndpointId != null ? ResourceManagerModelFactory.WritableSubResource(privateEndpointId) : null, connectionState, provisioningState, groupIds?.ToList()); + } + + /// Initializes a new instance of HybridComputePrivateLinkServiceConnectionStateProperty. + /// The private link service connection status. + /// The private link service connection description. + /// The actions required for private link service connection. + /// A new instance for mocking. + public static HybridComputePrivateLinkServiceConnectionStateProperty HybridComputePrivateLinkServiceConnectionStateProperty(string status = null, string description = null, string actionsRequired = null) + { + return new HybridComputePrivateLinkServiceConnectionStateProperty(status, description, actionsRequired); + } + + /// Initializes a new instance of HybridComputePrivateLinkResourceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Resource properties. + /// A new instance for mocking. + public static HybridComputePrivateLinkResourceData HybridComputePrivateLinkResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridComputePrivateLinkResourceProperties properties = null) + { + return new HybridComputePrivateLinkResourceData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of HybridComputePrivateLinkResourceProperties. + /// The private link resource group id. + /// The private link resource required member names. + /// Required DNS zone names of the the private link resource. + /// A new instance for mocking. + public static HybridComputePrivateLinkResourceProperties HybridComputePrivateLinkResourceProperties(string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null) + { + requiredMembers ??= new List(); + requiredZoneNames ??= new List(); + + return new HybridComputePrivateLinkResourceProperties(groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList()); + } + + /// Initializes a new instance of HybridComputePrivateEndpointConnectionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Resource properties. + /// A new instance for mocking. + public static HybridComputePrivateEndpointConnectionData HybridComputePrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, PrivateEndpointConnectionProperties properties = null) + { + return new HybridComputePrivateEndpointConnectionData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of PrivateLinkScopeValidationDetails. + /// Azure resource Id. + /// Indicates whether machines associated with the private link scope can also use public Azure Arc service endpoints. + /// List of Private Endpoint Connection details. + /// A new instance for mocking. + public static PrivateLinkScopeValidationDetails PrivateLinkScopeValidationDetails(string id = null, PublicNetworkAccessType? publicNetworkAccess = null, IEnumerable connectionDetails = null) + { + connectionDetails ??= new List(); + + return new PrivateLinkScopeValidationDetails(id, publicNetworkAccess, connectionDetails?.ToList()); + } + + /// Initializes a new instance of ConnectionDetail. + /// Azure resource Id. + /// The private endpoint connection private ip address. + /// The private endpoint connection link identifier. + /// The private endpoint connection group id. + /// The private endpoint connection member name. + /// A new instance for mocking. + public static ConnectionDetail ConnectionDetail(string id = null, string privateIPAddress = null, string linkIdentifier = null, string groupId = null, string memberName = null) + { + return new ConnectionDetail(id, privateIPAddress, linkIdentifier, groupId, memberName); + } + } +} diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/autorest.md b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/autorest.md index 27f5e1d6476df..64c6fd03cad8d 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/autorest.md +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: HybridCompute namespace: Azure.ResourceManager.HybridCompute diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/CHANGELOG.md b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/CHANGELOG.md index 3e31daae58207..74b0483987f28 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/CHANGELOG.md +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.3 (2023-05-30) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.0-beta.2 (2023-02-17) ### Features Added 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 7fce9485b6ec8..58013c074bfee 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 @@ -54,6 +54,11 @@ public static partial class HybridConnectivityExtensions } 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.EndpointType? endpointType = default(Azure.ResourceManager.HybridConnectivity.Models.EndpointType?), string resourceId = null, string provisioningState = null, string createdBy = null, Azure.ResourceManager.HybridConnectivity.Models.CreatedByType? createdByType = default(Azure.ResourceManager.HybridConnectivity.Models.CreatedByType?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string lastModifiedBy = null, Azure.ResourceManager.HybridConnectivity.Models.CreatedByType? lastModifiedByType = default(Azure.ResourceManager.HybridConnectivity.Models.CreatedByType?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?)) { 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?)) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct CreatedByType : System.IEquatable { diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs new file mode 100644 index 0000000000000..36a48551ba8a0 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.ResourceManager.HybridConnectivity; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.HybridConnectivity.Models +{ + /// Model factory for models. + public static partial class ArmHybridConnectivityModelFactory + { + /// Initializes a new instance of EndpointResourceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The type of endpoint. + /// The resource Id of the connectivity endpoint (optional). + /// + /// The identity that created the resource. + /// The type of identity that created the resource. + /// The timestamp of resource creation (UTC). + /// The identity that last modified the resource. + /// The type of identity that last modified the resource. + /// The timestamp of resource last modification (UTC). + /// A new instance for mocking. + public static EndpointResourceData EndpointResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, EndpointType? endpointType = null, string resourceId = null, string provisioningState = null, string createdBy = null, CreatedByType? createdByType = null, DateTimeOffset? createdOn = null, string lastModifiedBy = null, CreatedByType? lastModifiedByType = null, DateTimeOffset? lastModifiedOn = null) + { + return new EndpointResourceData(id, name, resourceType, systemData, endpointType, resourceId, provisioningState, createdBy, createdByType, createdOn, lastModifiedBy, lastModifiedByType, lastModifiedOn); + } + + /// Initializes a new instance of TargetResourceEndpointAccess. + /// The namespace name. + /// The suffix domain name of relay namespace. + /// Azure Relay hybrid connection name for the resource. + /// Access key for hybrid connection. + /// The expiration of access key in unix time. + /// A new instance for mocking. + public static TargetResourceEndpointAccess TargetResourceEndpointAccess(string namespaceName = null, string namespaceNameSuffix = null, string hybridConnectionName = null, string accessKey = null, long? expiresOn = null) + { + return new TargetResourceEndpointAccess(namespaceName, namespaceNameSuffix, hybridConnectionName, accessKey, expiresOn); + } + } +} diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md index e3a90757a9bfd..a55732c723ea8 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: HybridConnectivity namespace: Azure.ResourceManager.HybridConnectivity diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/CHANGELOG.md b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/CHANGELOG.md index 2e013365537d3..30eab47241835 100644 --- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/CHANGELOG.md +++ b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-30) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.1 (2023-02-17) ### Other Changes diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/api/Azure.ResourceManager.HybridData.netstandard2.0.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/api/Azure.ResourceManager.HybridData.netstandard2.0.cs index 1e5b222ea3c99..fc92ba6e08a5c 100644 --- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/api/Azure.ResourceManager.HybridData.netstandard2.0.cs +++ b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/api/Azure.ResourceManager.HybridData.netstandard2.0.cs @@ -298,6 +298,16 @@ protected HybridDataStoreTypeResource() { } } namespace Azure.ResourceManager.HybridData.Models { + public static partial class ArmHybridDataModelFactory + { + public static Azure.ResourceManager.HybridData.HybridDataJobData HybridDataJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridData.Models.HybridDataJobStatus status = Azure.ResourceManager.HybridData.Models.HybridDataJobStatus.None, System.DateTimeOffset startOn = default(System.DateTimeOffset), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), Azure.ResourceManager.HybridData.Models.HybridDataJobTopLevelError error = null, Azure.ResourceManager.HybridData.Models.JobCancellationSetting isCancellable = Azure.ResourceManager.HybridData.Models.JobCancellationSetting.NotCancellable, long? bytesProcessed = default(long?), long? itemsProcessed = default(long?), long? totalBytesToProcess = default(long?), long? totalItemsToProcess = default(long?), Azure.ResourceManager.HybridData.Models.HybridDataJobDetails details = null, string dataSourceName = null, string dataSinkName = null) { throw null; } + public static Azure.ResourceManager.HybridData.HybridDataJobDefinitionData HybridDataJobDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string dataSourceId = null, string dataSinkId = null, System.Collections.Generic.IEnumerable schedules = null, Azure.ResourceManager.HybridData.Models.HybridDataState state = Azure.ResourceManager.HybridData.Models.HybridDataState.Disabled, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), Azure.ResourceManager.HybridData.Models.HybridDataJobRunLocation? runLocation = default(Azure.ResourceManager.HybridData.Models.HybridDataJobRunLocation?), Azure.ResourceManager.HybridData.Models.UserConfirmationSetting? userConfirmation = default(Azure.ResourceManager.HybridData.Models.UserConfirmationSetting?), System.BinaryData dataServiceInput = null, System.Collections.Generic.IEnumerable customerSecrets = null) { throw null; } + public static Azure.ResourceManager.HybridData.HybridDataManagerData HybridDataManagerData(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.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.HybridData.Models.HybridDataSku sku = null) { throw null; } + public static Azure.ResourceManager.HybridData.HybridDataPublicKeyData HybridDataPublicKeyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridData.Models.HybridDataEncryptionKey dataServiceLevel1Key = null, Azure.ResourceManager.HybridData.Models.HybridDataEncryptionKey dataServiceLevel2Key = null) { throw null; } + public static Azure.ResourceManager.HybridData.HybridDataServiceData HybridDataServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridData.Models.HybridDataState state = Azure.ResourceManager.HybridData.Models.HybridDataState.Disabled, System.Collections.Generic.IEnumerable supportedDataSinkTypes = null, System.Collections.Generic.IEnumerable supportedDataSourceTypes = null) { throw null; } + public static Azure.ResourceManager.HybridData.HybridDataStoreData HybridDataStoreData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier repositoryId = null, Azure.ResourceManager.HybridData.Models.HybridDataState state = Azure.ResourceManager.HybridData.Models.HybridDataState.Disabled, System.BinaryData extendedProperties = null, Azure.Core.ResourceIdentifier dataStoreTypeId = null, System.Collections.Generic.IEnumerable customerSecrets = null) { throw null; } + public static Azure.ResourceManager.HybridData.HybridDataStoreTypeData HybridDataStoreTypeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceType? repositoryType = default(Azure.Core.ResourceType?), Azure.ResourceManager.HybridData.Models.HybridDataState state = Azure.ResourceManager.HybridData.Models.HybridDataState.Disabled, System.Collections.Generic.IEnumerable supportedDataServicesAsSink = null, System.Collections.Generic.IEnumerable supportedDataServicesAsSource = null) { throw null; } + } public partial class HybridDataCustomerSecret { public HybridDataCustomerSecret(string keyIdentifier, string keyValue, Azure.ResourceManager.HybridData.Models.SupportedEncryptionAlgorithm algorithm) { } diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/ArmHybridDataModelFactory.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/ArmHybridDataModelFactory.cs new file mode 100644 index 0000000000000..71ecd9cbea9c2 --- /dev/null +++ b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/ArmHybridDataModelFactory.cs @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure; +using Azure.Core; +using Azure.ResourceManager.HybridData; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.HybridData.Models +{ + /// Model factory for models. + public static partial class ArmHybridDataModelFactory + { + /// Initializes a new instance of HybridDataManagerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Etag of the Resource. + /// The sku type. + /// A new instance for mocking. + public static HybridDataManagerData HybridDataManagerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, HybridDataSku sku = null) + { + tags ??= new Dictionary(); + + return new HybridDataManagerData(id, name, resourceType, systemData, tags, location, etag, sku); + } + + /// Initializes a new instance of HybridDataServiceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// State of the data service. + /// Supported data store types which can be used as a sink. + /// Supported data store types which can be used as a source. + /// A new instance for mocking. + public static HybridDataServiceData HybridDataServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridDataState state = default, IEnumerable supportedDataSinkTypes = null, IEnumerable supportedDataSourceTypes = null) + { + supportedDataSinkTypes ??= new List(); + supportedDataSourceTypes ??= new List(); + + return new HybridDataServiceData(id, name, resourceType, systemData, state, supportedDataSinkTypes?.ToList(), supportedDataSourceTypes?.ToList()); + } + + /// Initializes a new instance of HybridDataJobDefinitionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Data Source Id associated to the job definition. + /// Data Sink Id associated to the job definition. + /// Schedule for running the job definition. + /// State of the job definition. + /// Last modified time of the job definition. + /// This is the preferred geo location for the job to run. + /// Enum to detect if user confirmation is required. If not passed will default to NotRequired. + /// A generic json used differently by each data service type. + /// List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source to understand the key. Value contains customer secret encrypted by the encryptionKeys. + /// A new instance for mocking. + public static HybridDataJobDefinitionData HybridDataJobDefinitionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string dataSourceId = null, string dataSinkId = null, IEnumerable schedules = null, HybridDataState state = default, DateTimeOffset? lastModifiedOn = null, HybridDataJobRunLocation? runLocation = null, UserConfirmationSetting? userConfirmation = null, BinaryData dataServiceInput = null, IEnumerable customerSecrets = null) + { + schedules ??= new List(); + customerSecrets ??= new List(); + + return new HybridDataJobDefinitionData(id, name, resourceType, systemData, dataSourceId, dataSinkId, schedules?.ToList(), state, lastModifiedOn, runLocation, userConfirmation, dataServiceInput, customerSecrets?.ToList()); + } + + /// Initializes a new instance of HybridDataJobData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Status of the job. + /// Time at which the job was started in UTC ISO 8601 format. + /// Time at which the job ended in UTC ISO 8601 format. + /// Top level error for the job. + /// Describes whether the job is cancellable. + /// Number of bytes processed by the job as of now. + /// Number of items processed by the job as of now. + /// Number of bytes to be processed by the job in total. + /// Number of items to be processed by the job in total. + /// Details of a job run. This field will only be sent for expand details filter. + /// Name of the data source on which the job was triggered. + /// Name of the data sink on which the job was triggered. + /// A new instance for mocking. + public static HybridDataJobData HybridDataJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridDataJobStatus status = default, DateTimeOffset startOn = default, DateTimeOffset? endOn = null, HybridDataJobTopLevelError error = null, JobCancellationSetting isCancellable = default, long? bytesProcessed = null, long? itemsProcessed = null, long? totalBytesToProcess = null, long? totalItemsToProcess = null, HybridDataJobDetails details = null, string dataSourceName = null, string dataSinkName = null) + { + return new HybridDataJobData(id, name, resourceType, systemData, status, startOn, endOn, error, isCancellable, bytesProcessed, itemsProcessed, totalBytesToProcess, totalItemsToProcess, details, dataSourceName, dataSinkName); + } + + /// Initializes a new instance of HybridDataStoreData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Arm Id for the manager resource to which the data source is associated. This is optional. + /// State of the data source. + /// A generic json used differently by each data source type. + /// The arm id of the data store type. + /// List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source to understand the key. Value contains customer secret encrypted by the encryptionKeys. + /// A new instance for mocking. + public static HybridDataStoreData HybridDataStoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier repositoryId = null, HybridDataState state = default, BinaryData extendedProperties = null, ResourceIdentifier dataStoreTypeId = null, IEnumerable customerSecrets = null) + { + customerSecrets ??= new List(); + + return new HybridDataStoreData(id, name, resourceType, systemData, repositoryId, state, extendedProperties, dataStoreTypeId, customerSecrets?.ToList()); + } + + /// Initializes a new instance of HybridDataStoreTypeData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Arm type for the manager resource to which the data source type is associated. This is optional. + /// State of the data store type. + /// Supported data services where it can be used as a sink. + /// Supported data services where it can be used as a source. + /// A new instance for mocking. + public static HybridDataStoreTypeData HybridDataStoreTypeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceType? repositoryType = null, HybridDataState state = default, IEnumerable supportedDataServicesAsSink = null, IEnumerable supportedDataServicesAsSource = null) + { + supportedDataServicesAsSink ??= new List(); + supportedDataServicesAsSource ??= new List(); + + return new HybridDataStoreTypeData(id, name, resourceType, systemData, repositoryType, state, supportedDataServicesAsSink?.ToList(), supportedDataServicesAsSource?.ToList()); + } + + /// Initializes a new instance of HybridDataPublicKeyData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Level one public key for encryption. + /// Level two public key for encryption. + /// A new instance for mocking. + public static HybridDataPublicKeyData HybridDataPublicKeyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridDataEncryptionKey dataServiceLevel1Key = null, HybridDataEncryptionKey dataServiceLevel2Key = null) + { + return new HybridDataPublicKeyData(id, name, resourceType, systemData, dataServiceLevel1Key, dataServiceLevel2Key); + } + } +} diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/autorest.md b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/autorest.md index 0c138c275e70d..3730d6f16ae3e 100644 --- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/autorest.md +++ b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: HybridData namespace: Azure.ResourceManager.HybridData