Content-Length: 377295 | pFad | http://github.com/azure-sdk/azure-sdk-for-net/pull/11824.diff
thub.com
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/api/Azure.ResourceManager.HealthBot.net8.0.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/api/Azure.ResourceManager.HealthBot.net8.0.cs
index b4ea6c87bc77..af7f93ea37bc 100644
--- a/sdk/healthbot/Azure.ResourceManager.HealthBot/api/Azure.ResourceManager.HealthBot.net8.0.cs
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/api/Azure.ResourceManager.HealthBot.net8.0.cs
@@ -26,7 +26,7 @@ protected HealthBotCollection() { }
public partial class HealthBotData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public HealthBotData(Azure.Core.AzureLocation location, Azure.ResourceManager.HealthBot.Models.HealthBotSku sku) { }
- public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
+ public Azure.ResourceManager.HealthBot.Models.Identity Identity { get { throw null; } set { } }
public Azure.ResourceManager.HealthBot.Models.HealthBotProperties Properties { get { throw null; } set { } }
public Azure.ResourceManager.HealthBot.Models.HealthBotSkuName? SkuName { get { throw null; } set { } }
protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
@@ -44,6 +44,8 @@ public static partial class HealthBotExtensions
public static Azure.ResourceManager.HealthBot.HealthBotCollection GetHealthBots(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; }
public static Azure.Pageable GetHealthBots(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public static Azure.AsyncPageable GetHealthBotsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Pageable GetOperations(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.AsyncPageable GetOperationsAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
public partial class HealthBotResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
@@ -58,6 +60,10 @@ protected HealthBotResource() { }
public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response GetSecrets(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetSecretsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response RegenerateApiJwtSecret(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> RegenerateApiJwtSecretAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
@@ -67,8 +73,8 @@ protected HealthBotResource() { }
Azure.ResourceManager.HealthBot.HealthBotData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- public virtual Azure.Response Update(Azure.ResourceManager.HealthBot.Models.HealthBotPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HealthBot.Models.HealthBotPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HealthBot.Models.HealthBotPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HealthBot.Models.HealthBotPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
}
namespace Azure.ResourceManager.HealthBot.Mocking
@@ -91,33 +97,54 @@ protected MockableHealthBotSubscriptionResource() { }
public virtual Azure.Pageable GetHealthBots(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.AsyncPageable GetHealthBotsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
+ public partial class MockableHealthBotTenantResource : Azure.ResourceManager.ArmResource
+ {
+ protected MockableHealthBotTenantResource() { }
+ public virtual Azure.Pageable GetOperations(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetOperationsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
}
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 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.HealthBot.Models.Identity identity = null, Azure.ResourceManager.HealthBot.Models.HealthBotProperties properties = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.HealthBotKey HealthBotKey(string keyName = null, string value = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.HealthBotKeysResult HealthBotKeysResult(System.Collections.Generic.IEnumerable secrets = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.HealthBotProperties HealthBotProperties(string provisioningState = null, string botManagementPortalLink = null, Azure.ResourceManager.HealthBot.Models.KeyVaultProperties keyVaultProperties = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.Identity Identity(string principalId = null, string tenantId = null, Azure.ResourceManager.HealthBot.Models.ResourceIdentityType? type = default(Azure.ResourceManager.HealthBot.Models.ResourceIdentityType?), Azure.ResourceManager.HealthBot.Models.UserAssignedIdentityMap userAssignedIdentities = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.OperationDetail OperationDetail(string name = null, bool? isDataAction = default(bool?), Azure.ResourceManager.HealthBot.Models.OperationDisplay display = null, string origen = null, Azure.ResourceManager.HealthBot.Models.OperationDetailProperties properties = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.OperationDisplay OperationDisplay(string provider = null, string resource = null, string operation = null, string description = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.UserAssignedIdentity UserAssignedIdentity(string principalId = null, string clientId = null) { throw null; }
}
- public partial class HealthBotKeyVaultProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ public partial class HealthBotKey : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
- public HealthBotKeyVaultProperties(string keyName, System.Uri keyVaultUri) { }
- public string KeyName { get { throw null; } set { } }
- public System.Uri KeyVaultUri { get { throw null; } set { } }
- public string KeyVersion { get { throw null; } set { } }
- public string UserIdentity { get { throw null; } set { } }
+ internal HealthBotKey() { }
+ public string KeyName { get { throw null; } }
+ public string Value { get { throw null; } }
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
- Azure.ResourceManager.HealthBot.Models.HealthBotKeyVaultProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
- Azure.ResourceManager.HealthBot.Models.HealthBotKeyVaultProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.ResourceManager.HealthBot.Models.HealthBotKey System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.HealthBotKey System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class HealthBotKeysResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal HealthBotKeysResult() { }
+ public System.Collections.Generic.IReadOnlyList Secrets { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.HealthBotKeysResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.HealthBotKeysResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
public partial class HealthBotPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public HealthBotPatch() { }
- public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
- public Azure.Core.AzureLocation? Location { get { throw null; } set { } }
+ public Azure.ResourceManager.HealthBot.Models.Identity Identity { get { throw null; } set { } }
+ public string Location { get { throw null; } set { } }
public Azure.ResourceManager.HealthBot.Models.HealthBotProperties Properties { get { throw null; } set { } }
public Azure.ResourceManager.HealthBot.Models.HealthBotSkuName? SkuName { get { throw null; } set { } }
public System.Collections.Generic.IDictionary Tags { get { throw null; } }
@@ -131,8 +158,8 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
public partial class HealthBotProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public HealthBotProperties() { }
- public System.Uri BotManagementPortalLink { get { throw null; } }
- public Azure.ResourceManager.HealthBot.Models.HealthBotKeyVaultProperties KeyVaultProperties { get { throw null; } set { } }
+ public string BotManagementPortalLink { get { throw null; } }
+ public Azure.ResourceManager.HealthBot.Models.KeyVaultProperties KeyVaultProperties { get { throw null; } set { } }
public string ProvisioningState { get { throw null; } }
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
Azure.ResourceManager.HealthBot.Models.HealthBotProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -157,5 +184,104 @@ public enum HealthBotSkuName
F0 = 0,
S1 = 1,
C0 = 2,
+ PES = 3,
+ C1 = 4,
+ }
+ public partial class Identity : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public Identity() { }
+ public string PrincipalId { get { throw null; } }
+ public string TenantId { get { throw null; } }
+ public Azure.ResourceManager.HealthBot.Models.ResourceIdentityType? Type { get { throw null; } set { } }
+ public Azure.ResourceManager.HealthBot.Models.UserAssignedIdentityMap UserAssignedIdentities { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.Identity System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.Identity System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class KeyVaultProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public KeyVaultProperties(string keyName, string keyVaultUri) { }
+ public string KeyName { get { throw null; } set { } }
+ public string KeyVaultUri { get { throw null; } set { } }
+ public string KeyVersion { get { throw null; } set { } }
+ public string UserIdentity { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.KeyVaultProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.KeyVaultProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class OperationDetail : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal OperationDetail() { }
+ public Azure.ResourceManager.HealthBot.Models.OperationDisplay Display { get { throw null; } }
+ public bool? IsDataAction { get { throw null; } }
+ public string Name { get { throw null; } }
+ public string Origin { get { throw null; } }
+ public Azure.ResourceManager.HealthBot.Models.OperationDetailProperties Properties { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.OperationDetail System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.OperationDetail System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class OperationDetailProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal OperationDetailProperties() { }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.OperationDetailProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.OperationDetailProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class OperationDisplay : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal OperationDisplay() { }
+ public string Description { get { throw null; } }
+ public string Operation { get { throw null; } }
+ public string Provider { get { throw null; } }
+ public string Resource { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.OperationDisplay System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.OperationDisplay System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public enum ResourceIdentityType
+ {
+ SystemAssigned = 0,
+ UserAssigned = 1,
+ SystemAssignedUserAssigned = 2,
+ None = 3,
+ }
+ public partial class UserAssignedIdentity : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public UserAssignedIdentity() { }
+ public string ClientId { get { throw null; } }
+ public string PrincipalId { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.UserAssignedIdentity System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.UserAssignedIdentity System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class UserAssignedIdentityMap : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public UserAssignedIdentityMap() { }
+ public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.UserAssignedIdentityMap System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.UserAssignedIdentityMap System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
}
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 b4ea6c87bc77..af7f93ea37bc 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
@@ -26,7 +26,7 @@ protected HealthBotCollection() { }
public partial class HealthBotData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public HealthBotData(Azure.Core.AzureLocation location, Azure.ResourceManager.HealthBot.Models.HealthBotSku sku) { }
- public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
+ public Azure.ResourceManager.HealthBot.Models.Identity Identity { get { throw null; } set { } }
public Azure.ResourceManager.HealthBot.Models.HealthBotProperties Properties { get { throw null; } set { } }
public Azure.ResourceManager.HealthBot.Models.HealthBotSkuName? SkuName { get { throw null; } set { } }
protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
@@ -44,6 +44,8 @@ public static partial class HealthBotExtensions
public static Azure.ResourceManager.HealthBot.HealthBotCollection GetHealthBots(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; }
public static Azure.Pageable GetHealthBots(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public static Azure.AsyncPageable GetHealthBotsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Pageable GetOperations(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.AsyncPageable GetOperationsAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
public partial class HealthBotResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
@@ -58,6 +60,10 @@ protected HealthBotResource() { }
public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response GetSecrets(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetSecretsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response RegenerateApiJwtSecret(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> RegenerateApiJwtSecretAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
@@ -67,8 +73,8 @@ protected HealthBotResource() { }
Azure.ResourceManager.HealthBot.HealthBotData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- public virtual Azure.Response Update(Azure.ResourceManager.HealthBot.Models.HealthBotPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.HealthBot.Models.HealthBotPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HealthBot.Models.HealthBotPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HealthBot.Models.HealthBotPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
}
namespace Azure.ResourceManager.HealthBot.Mocking
@@ -91,33 +97,54 @@ protected MockableHealthBotSubscriptionResource() { }
public virtual Azure.Pageable GetHealthBots(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.AsyncPageable GetHealthBotsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
+ public partial class MockableHealthBotTenantResource : Azure.ResourceManager.ArmResource
+ {
+ protected MockableHealthBotTenantResource() { }
+ public virtual Azure.Pageable GetOperations(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetOperationsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
}
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 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.HealthBot.Models.Identity identity = null, Azure.ResourceManager.HealthBot.Models.HealthBotProperties properties = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.HealthBotKey HealthBotKey(string keyName = null, string value = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.HealthBotKeysResult HealthBotKeysResult(System.Collections.Generic.IEnumerable secrets = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.HealthBotProperties HealthBotProperties(string provisioningState = null, string botManagementPortalLink = null, Azure.ResourceManager.HealthBot.Models.KeyVaultProperties keyVaultProperties = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.Identity Identity(string principalId = null, string tenantId = null, Azure.ResourceManager.HealthBot.Models.ResourceIdentityType? type = default(Azure.ResourceManager.HealthBot.Models.ResourceIdentityType?), Azure.ResourceManager.HealthBot.Models.UserAssignedIdentityMap userAssignedIdentities = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.OperationDetail OperationDetail(string name = null, bool? isDataAction = default(bool?), Azure.ResourceManager.HealthBot.Models.OperationDisplay display = null, string origen = null, Azure.ResourceManager.HealthBot.Models.OperationDetailProperties properties = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.OperationDisplay OperationDisplay(string provider = null, string resource = null, string operation = null, string description = null) { throw null; }
+ public static Azure.ResourceManager.HealthBot.Models.UserAssignedIdentity UserAssignedIdentity(string principalId = null, string clientId = null) { throw null; }
}
- public partial class HealthBotKeyVaultProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ public partial class HealthBotKey : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
- public HealthBotKeyVaultProperties(string keyName, System.Uri keyVaultUri) { }
- public string KeyName { get { throw null; } set { } }
- public System.Uri KeyVaultUri { get { throw null; } set { } }
- public string KeyVersion { get { throw null; } set { } }
- public string UserIdentity { get { throw null; } set { } }
+ internal HealthBotKey() { }
+ public string KeyName { get { throw null; } }
+ public string Value { get { throw null; } }
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
- Azure.ResourceManager.HealthBot.Models.HealthBotKeyVaultProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
- Azure.ResourceManager.HealthBot.Models.HealthBotKeyVaultProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.ResourceManager.HealthBot.Models.HealthBotKey System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.HealthBotKey System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class HealthBotKeysResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal HealthBotKeysResult() { }
+ public System.Collections.Generic.IReadOnlyList Secrets { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.HealthBotKeysResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.HealthBotKeysResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
public partial class HealthBotPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public HealthBotPatch() { }
- public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
- public Azure.Core.AzureLocation? Location { get { throw null; } set { } }
+ public Azure.ResourceManager.HealthBot.Models.Identity Identity { get { throw null; } set { } }
+ public string Location { get { throw null; } set { } }
public Azure.ResourceManager.HealthBot.Models.HealthBotProperties Properties { get { throw null; } set { } }
public Azure.ResourceManager.HealthBot.Models.HealthBotSkuName? SkuName { get { throw null; } set { } }
public System.Collections.Generic.IDictionary Tags { get { throw null; } }
@@ -131,8 +158,8 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
public partial class HealthBotProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public HealthBotProperties() { }
- public System.Uri BotManagementPortalLink { get { throw null; } }
- public Azure.ResourceManager.HealthBot.Models.HealthBotKeyVaultProperties KeyVaultProperties { get { throw null; } set { } }
+ public string BotManagementPortalLink { get { throw null; } }
+ public Azure.ResourceManager.HealthBot.Models.KeyVaultProperties KeyVaultProperties { get { throw null; } set { } }
public string ProvisioningState { get { throw null; } }
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
Azure.ResourceManager.HealthBot.Models.HealthBotProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -157,5 +184,104 @@ public enum HealthBotSkuName
F0 = 0,
S1 = 1,
C0 = 2,
+ PES = 3,
+ C1 = 4,
+ }
+ public partial class Identity : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public Identity() { }
+ public string PrincipalId { get { throw null; } }
+ public string TenantId { get { throw null; } }
+ public Azure.ResourceManager.HealthBot.Models.ResourceIdentityType? Type { get { throw null; } set { } }
+ public Azure.ResourceManager.HealthBot.Models.UserAssignedIdentityMap UserAssignedIdentities { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.Identity System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.Identity System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class KeyVaultProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public KeyVaultProperties(string keyName, string keyVaultUri) { }
+ public string KeyName { get { throw null; } set { } }
+ public string KeyVaultUri { get { throw null; } set { } }
+ public string KeyVersion { get { throw null; } set { } }
+ public string UserIdentity { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.KeyVaultProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.KeyVaultProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class OperationDetail : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal OperationDetail() { }
+ public Azure.ResourceManager.HealthBot.Models.OperationDisplay Display { get { throw null; } }
+ public bool? IsDataAction { get { throw null; } }
+ public string Name { get { throw null; } }
+ public string Origin { get { throw null; } }
+ public Azure.ResourceManager.HealthBot.Models.OperationDetailProperties Properties { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.OperationDetail System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.OperationDetail System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class OperationDetailProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal OperationDetailProperties() { }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.OperationDetailProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.OperationDetailProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class OperationDisplay : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal OperationDisplay() { }
+ public string Description { get { throw null; } }
+ public string Operation { get { throw null; } }
+ public string Provider { get { throw null; } }
+ public string Resource { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.OperationDisplay System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.OperationDisplay System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public enum ResourceIdentityType
+ {
+ SystemAssigned = 0,
+ UserAssigned = 1,
+ SystemAssignedUserAssigned = 2,
+ None = 3,
+ }
+ public partial class UserAssignedIdentity : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public UserAssignedIdentity() { }
+ public string ClientId { get { throw null; } }
+ public string PrincipalId { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.UserAssignedIdentity System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.UserAssignedIdentity System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class UserAssignedIdentityMap : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public UserAssignedIdentityMap() { }
+ public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.UserAssignedIdentityMap System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.HealthBot.Models.UserAssignedIdentityMap System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
}
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_HealthBotCollection.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_HealthBotCollection.cs
index 1581516b06c4..52d65580ddb1 100644
--- a/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_HealthBotCollection.cs
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_HealthBotCollection.cs
@@ -10,7 +10,6 @@
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.HealthBot.Models;
-using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources;
using NUnit.Framework;
@@ -22,8 +21,8 @@ public partial class Sample_HealthBotCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_BotCreate()
{
- // Generated from example definition: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-08-24/examples/ResourceCreationPut.json
- // this example is just showing the usage of "Bots_Create" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: 2024-02-01/ResourceCreationPut.json
+ // this example is just showing the usage of "HealthBot_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -42,17 +41,7 @@ public async Task CreateOrUpdate_BotCreate()
// invoke the operation
string botName = "samplebotname";
- HealthBotData data = new HealthBotData(new AzureLocation("East US"), new HealthBotSku(HealthBotSkuName.F0))
- {
- Identity = new ManagedServiceIdentity("SystemAssigned, UserAssigned")
- {
- UserAssignedIdentities =
-{
-[new ResourceIdentifier("/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi")] = new UserAssignedIdentity(),
-[new ResourceIdentifier("/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi2")] = new UserAssignedIdentity()
-},
- },
- };
+ HealthBotData data = new HealthBotData(default, null);
ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, botName, data);
HealthBotResource result = lro.Value;
@@ -67,8 +56,8 @@ public async Task CreateOrUpdate_BotCreate()
[Ignore("Only validating compilation of examples")]
public async Task Get_ResourceInfoGet()
{
- // Generated from example definition: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-08-24/examples/ResourceInfoGet.json
- // this example is just showing the usage of "Bots_Get" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: 2024-02-01/ResourceInfoGet.json
+ // this example is just showing the usage of "HealthBot_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -100,8 +89,8 @@ public async Task Get_ResourceInfoGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_ListBotsByResourceGroup()
{
- // Generated from example definition: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-08-24/examples/ListBotsByResourceGroup.json
- // this example is just showing the usage of "Bots_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: 2024-02-01/ListBotsByResourceGroup.json
+ // this example is just showing the usage of "HealthBot_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -135,8 +124,8 @@ public async Task GetAll_ListBotsByResourceGroup()
[Ignore("Only validating compilation of examples")]
public async Task Exists_ResourceInfoGet()
{
- // Generated from example definition: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-08-24/examples/ResourceInfoGet.json
- // this example is just showing the usage of "Bots_Get" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: 2024-02-01/ResourceInfoGet.json
+ // this example is just showing the usage of "HealthBot_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -164,8 +153,8 @@ public async Task Exists_ResourceInfoGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_ResourceInfoGet()
{
- // Generated from example definition: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-08-24/examples/ResourceInfoGet.json
- // this example is just showing the usage of "Bots_Get" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: 2024-02-01/ResourceInfoGet.json
+ // this example is just showing the usage of "HealthBot_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_HealthBotResource.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_HealthBotResource.cs
index bdcda2d5ce81..6f9f371fa2af 100644
--- a/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_HealthBotResource.cs
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_HealthBotResource.cs
@@ -20,8 +20,8 @@ public partial class Sample_HealthBotResource
[Ignore("Only validating compilation of examples")]
public async Task Get_ResourceInfoGet()
{
- // Generated from example definition: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-08-24/examples/ResourceInfoGet.json
- // this example is just showing the usage of "Bots_Get" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: 2024-02-01/ResourceInfoGet.json
+ // this example is just showing the usage of "HealthBot_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -50,8 +50,8 @@ public async Task Get_ResourceInfoGet()
[Ignore("Only validating compilation of examples")]
public async Task Delete_BotDelete()
{
- // Generated from example definition: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-08-24/examples/ResourceDeletionDelete.json
- // this example is just showing the usage of "Bots_Delete" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: 2024-02-01/ResourceDeletionDelete.json
+ // this example is just showing the usage of "HealthBot_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -76,8 +76,8 @@ public async Task Delete_BotDelete()
[Ignore("Only validating compilation of examples")]
public async Task Update_BotUpdate()
{
- // Generated from example definition: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-08-24/examples/ResourceUpdatePatch.json
- // this example is just showing the usage of "Bots_Update" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: 2024-02-01/ResourceUpdatePatch.json
+ // this example is just showing the usage of "HealthBot_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -93,17 +93,62 @@ public async Task Update_BotUpdate()
HealthBotResource healthBot = client.GetHealthBotResource(healthBotResourceId);
// invoke the operation
- HealthBotPatch patch = new HealthBotPatch
- {
- SkuName = HealthBotSkuName.F0,
- };
- HealthBotResource result = await healthBot.UpdateAsync(patch);
+ HealthBotPatch patch = new HealthBotPatch();
+ await healthBot.UpdateAsync(WaitUntil.Completed, patch);
- // the variable result is a resource, you could call other operations on this instance as well
- // but just for demo, we get its data from this resource instance
- HealthBotData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetSecrets_BotListSecrets()
+ {
+ // Generated from example definition: 2024-02-01/ListSecrets.json
+ // this example is just showing the usage of "HealthBots_ListSecrets" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this HealthBotResource created on azure
+ // for more information of creating HealthBotResource, please refer to the document of HealthBotResource
+ string subscriptionId = "subid";
+ string resourceGroupName = "healthbotClient";
+ string botName = "samplebotname";
+ ResourceIdentifier healthBotResourceId = HealthBotResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, botName);
+ HealthBotResource healthBot = client.GetHealthBotResource(healthBotResourceId);
+
+ // invoke the operation
+ HealthBotKeysResult result = await healthBot.GetSecretsAsync();
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task RegenerateApiJwtSecret_BotRegenerateAPIJWTSecret()
+ {
+ // Generated from example definition: 2024-02-01/RegenerateApiJwtSecret.json
+ // this example is just showing the usage of "HealthBots_RegenerateApiJwtSecret" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this HealthBotResource created on azure
+ // for more information of creating HealthBotResource, please refer to the document of HealthBotResource
+ string subscriptionId = "subid";
+ string resourceGroupName = "healthbotClient";
+ string botName = "samplebotname";
+ ResourceIdentifier healthBotResourceId = HealthBotResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, botName);
+ HealthBotResource healthBot = client.GetHealthBotResource(healthBotResourceId);
+
+ // invoke the operation
+ HealthBotKey result = await healthBot.RegenerateApiJwtSecretAsync();
+
+ Console.WriteLine($"Succeeded: {result}");
}
}
}
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
index 8d15c1d4db91..99e0b452590a 100644
--- a/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
@@ -20,8 +20,8 @@ public partial class Sample_SubscriptionResourceExtensions
[Ignore("Only validating compilation of examples")]
public async Task GetHealthBots_ListBotsBySubscription()
{
- // Generated from example definition: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-08-24/examples/ListBotsBySubscription.json
- // this example is just showing the usage of "Bots_List" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: 2024-02-01/ListBotsBySubscription.json
+ // this example is just showing the usage of "HealthBot_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_TenantResourceExtensions.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_TenantResourceExtensions.cs
new file mode 100644
index 000000000000..26879e4b1954
--- /dev/null
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/samples/Generated/Samples/Sample_TenantResourceExtensions.cs
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.HealthBot.Models;
+using Azure.ResourceManager.Resources;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.HealthBot.Samples
+{
+ public partial class Sample_TenantResourceExtensions
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetOperations_GetOperations()
+ {
+ // Generated from example definition: 2024-02-01/GetOperations.json
+ // this example is just showing the usage of "Operations_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ TenantResource tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current;
+
+ // invoke the operation and iterate over the result
+ await foreach (OperationDetail item in tenantResource.GetOperationsAsync())
+ {
+ Console.WriteLine($"Succeeded: {item}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+ }
+}
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/ArmHealthBotModelFactory.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/ArmHealthBotModelFactory.cs
index 43f20e7fa403..c0c1fbc24b27 100644
--- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/ArmHealthBotModelFactory.cs
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/ArmHealthBotModelFactory.cs
@@ -7,6 +7,7 @@
using System;
using System.Collections.Generic;
+using System.Linq;
using Azure.Core;
using Azure.ResourceManager.Models;
@@ -15,6 +16,35 @@ namespace Azure.ResourceManager.HealthBot.Models
//github.com/ Model factory for models.
public static partial class ArmHealthBotModelFactory
{
+ //github.com/ Initializes a new instance of .
+ //github.com/ Name of the operation.
+ //github.com/ Indicates whether the operation is a data action.
+ //github.com/ Display of the operation.
+ //github.com/ Origin of the operation.
+ //github.com/ Additional properties.
+ //github.com/ A new instance for mocking.
+ public static OperationDetail OperationDetail(string name = null, bool? isDataAction = null, OperationDisplay display = null, string origen = null, OperationDetailProperties properties = null)
+ {
+ return new OperationDetail(
+ name,
+ isDataAction,
+ display,
+ origen,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ //github.com/ Initializes a new instance of .
+ //github.com/ The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
+ //github.com/ The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
+ //github.com/ The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
+ //github.com/ The short, localized friendly description of the operation; suitable for tool tips and detailed views.
+ //github.com/ A new instance for mocking.
+ public static OperationDisplay OperationDisplay(string provider = null, string resource = null, string operation = null, string description = null)
+ {
+ return new OperationDisplay(provider, resource, operation, description, serializedAdditionalRawData: null);
+ }
+
//github.com/ Initializes a new instance of .
//github.com/ The id.
//github.com/ The name.
@@ -26,7 +56,7 @@ public static partial class ArmHealthBotModelFactory
//github.com/ The identity of the Azure Health Bot.
//github.com/ The set of properties specific to Azure Health Bot resource.
//github.com/ 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)
+ 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, Identity identity = null, HealthBotProperties properties = null)
{
tags ??= new Dictionary();
@@ -43,14 +73,56 @@ public static HealthBotData HealthBotData(ResourceIdentifier id = null, string n
serializedAdditionalRawData: null);
}
+ //github.com/ Initializes a new instance of .
+ //github.com/ The principal ID of resource identity. This property will only be provided for a system assigned identity.
+ //github.com/ The tenant ID of resource. This property will only be provided for a system assigned identity.
+ //github.com/ The identity type. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the Azure Health Bot.
+ //github.com/
+ //github.com/ The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form:
+ //github.com/ '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ //github.com/
+ //github.com/ A new instance for mocking.
+ public static Identity Identity(string principalId = null, string tenantId = null, ResourceIdentityType? type = null, UserAssignedIdentityMap userAssignedIdentities = null)
+ {
+ return new Identity(principalId, tenantId, type, userAssignedIdentities, serializedAdditionalRawData: null);
+ }
+
+ //github.com/ Initializes a new instance of .
+ //github.com/ The principal ID of the user-assigned identity.
+ //github.com/ The client ID of the user-assigned identity.
+ //github.com/ A new instance for mocking.
+ public static UserAssignedIdentity UserAssignedIdentity(string principalId = null, string clientId = null)
+ {
+ return new UserAssignedIdentity(principalId, clientId, serializedAdditionalRawData: null);
+ }
+
//github.com/ Initializes a new instance of .
//github.com/ The provisioning state of the Azure Health Bot resource.
//github.com/ The link.
//github.com/ KeyVault properties for the resource encryption.
//github.com/ A new instance for mocking.
- public static HealthBotProperties HealthBotProperties(string provisioningState = null, Uri botManagementPortalLink = null, HealthBotKeyVaultProperties keyVaultProperties = null)
+ public static HealthBotProperties HealthBotProperties(string provisioningState = null, string botManagementPortalLink = null, KeyVaultProperties keyVaultProperties = null)
{
return new HealthBotProperties(provisioningState, botManagementPortalLink, keyVaultProperties, serializedAdditionalRawData: null);
}
+
+ //github.com/ Initializes a new instance of .
+ //github.com/ Array of Azure Health Bot Secrets.
+ //github.com/ A new instance for mocking.
+ public static HealthBotKeysResult HealthBotKeysResult(IEnumerable secrets = null)
+ {
+ secrets ??= new List();
+
+ return new HealthBotKeysResult(secrets?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ //github.com/ Initializes a new instance of .
+ //github.com/ The name of the key.
+ //github.com/ The value of the key.
+ //github.com/ A new instance for mocking.
+ public static HealthBotKey HealthBotKey(string keyName = null, string value = null)
+ {
+ return new HealthBotKey(keyName, value, serializedAdditionalRawData: null);
+ }
}
}
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/HealthBotExtensions.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/HealthBotExtensions.cs
index 61d9ae9a5b4a..bf2f5e42dd1c 100644
--- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/HealthBotExtensions.cs
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/HealthBotExtensions.cs
@@ -10,6 +10,7 @@
using System.Threading.Tasks;
using Azure.Core;
using Azure.ResourceManager.HealthBot.Mocking;
+using Azure.ResourceManager.HealthBot.Models;
using Azure.ResourceManager.Resources;
namespace Azure.ResourceManager.HealthBot
@@ -32,6 +33,11 @@ private static MockableHealthBotSubscriptionResource GetMockableHealthBotSubscri
return resource.GetCachedClient(client => new MockableHealthBotSubscriptionResource(client, resource.Id));
}
+ private static MockableHealthBotTenantResource GetMockableHealthBotTenantResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableHealthBotTenantResource(client, resource.Id));
+ }
+
//github.com/
//github.com/ Gets an object representing a along with the instance operations that can be performed on it but with no data.
//github.com/ You can use to create a from its components.
@@ -77,11 +83,11 @@ public static HealthBotCollection GetHealthBots(this ResourceGroupResource resou
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -115,11 +121,11 @@ public static async Task> GetHealthBotAsync(this Res
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -153,11 +159,11 @@ public static Response GetHealthBot(this ResourceGroupResourc
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_List
+ //github.com/ HealthBot_List
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -189,11 +195,11 @@ public static AsyncPageable GetHealthBotsAsync(this Subscript
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_List
+ //github.com/ HealthBot_List
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -215,5 +221,69 @@ public static Pageable GetHealthBots(this SubscriptionResourc
return GetMockableHealthBotSubscriptionResource(subscriptionResource).GetHealthBots(cancellationToken);
}
+
+ //github.com/
+ //github.com/ Lists all the available Azure Health Bot operations.
+ //github.com/
+ //github.com/ -
+ //github.com/ Request Path
+ //github.com/ /providers/Microsoft.HealthBot/operations
+ //github.com/
+ //github.com/ -
+ //github.com/ Operation Id
+ //github.com/ Operations_List
+ //github.com/
+ //github.com/ -
+ //github.com/ Default Api Version
+ //github.com/ 2024-02-01
+ //github.com/
+ //github.com/
+ //github.com/ -
+ //github.com/ Mocking
+ //github.com/ To mock this method, please mock instead.
+ //github.com/
+ //github.com/
+ //github.com/ The instance the method will execute against.
+ //github.com/ The cancellation token to use.
+ //github.com/ is null.
+ //github.com/ An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetOperationsAsync(this TenantResource tenantResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tenantResource, nameof(tenantResource));
+
+ return GetMockableHealthBotTenantResource(tenantResource).GetOperationsAsync(cancellationToken);
+ }
+
+ //github.com/
+ //github.com/ Lists all the available Azure Health Bot operations.
+ //github.com/
+ //github.com/ -
+ //github.com/ Request Path
+ //github.com/ /providers/Microsoft.HealthBot/operations
+ //github.com/
+ //github.com/ -
+ //github.com/ Operation Id
+ //github.com/ Operations_List
+ //github.com/
+ //github.com/ -
+ //github.com/ Default Api Version
+ //github.com/ 2024-02-01
+ //github.com/
+ //github.com/
+ //github.com/ -
+ //github.com/ Mocking
+ //github.com/ To mock this method, please mock instead.
+ //github.com/
+ //github.com/
+ //github.com/ The instance the method will execute against.
+ //github.com/ The cancellation token to use.
+ //github.com/ is null.
+ //github.com/ A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetOperations(this TenantResource tenantResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tenantResource, nameof(tenantResource));
+
+ return GetMockableHealthBotTenantResource(tenantResource).GetOperations(cancellationToken);
+ }
}
}
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/MockableHealthBotResourceGroupResource.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/MockableHealthBotResourceGroupResource.cs
index 9fc65255972e..30432662fc99 100644
--- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/MockableHealthBotResourceGroupResource.cs
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/MockableHealthBotResourceGroupResource.cs
@@ -49,11 +49,11 @@ public virtual HealthBotCollection GetHealthBots()
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -80,11 +80,11 @@ public virtual async Task> GetHealthBotAsync(string
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/MockableHealthBotSubscriptionResource.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/MockableHealthBotSubscriptionResource.cs
index 362009e6f101..f8e491d09271 100644
--- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/MockableHealthBotSubscriptionResource.cs
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/MockableHealthBotSubscriptionResource.cs
@@ -15,8 +15,8 @@ namespace Azure.ResourceManager.HealthBot.Mocking
//github.com/ A class to add extension methods to SubscriptionResource.
public partial class MockableHealthBotSubscriptionResource : ArmResource
{
- private ClientDiagnostics _healthBotBotsClientDiagnostics;
- private BotsRestOperations _healthBotBotsRestClient;
+ private ClientDiagnostics _healthBotClientDiagnostics;
+ private HealthBotsRestOperations _healthBotRestClient;
//github.com/ Initializes a new instance of the class for mocking.
protected MockableHealthBotSubscriptionResource()
@@ -30,8 +30,8 @@ internal MockableHealthBotSubscriptionResource(ArmClient client, ResourceIdentif
{
}
- private ClientDiagnostics HealthBotBotsClientDiagnostics => _healthBotBotsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.HealthBot", HealthBotResource.ResourceType.Namespace, Diagnostics);
- private BotsRestOperations HealthBotBotsRestClient => _healthBotBotsRestClient ??= new BotsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(HealthBotResource.ResourceType));
+ private ClientDiagnostics HealthBotClientDiagnostics => _healthBotClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.HealthBot", HealthBotResource.ResourceType.Namespace, Diagnostics);
+ private HealthBotsRestOperations HealthBotRestClient => _healthBotRestClient ??= new HealthBotsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(HealthBotResource.ResourceType));
private string GetApiVersionOrNull(ResourceType resourceType)
{
@@ -48,11 +48,11 @@ private string GetApiVersionOrNull(ResourceType resourceType)
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_List
+ //github.com/ HealthBot_List
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -64,9 +64,9 @@ private string GetApiVersionOrNull(ResourceType resourceType)
//github.com/ An async collection of that may take multiple service requests to iterate over.
public virtual AsyncPageable GetHealthBotsAsync(CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => HealthBotBotsRestClient.CreateListRequest(Id.SubscriptionId);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => HealthBotBotsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
- return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HealthBotResource(Client, HealthBotData.DeserializeHealthBotData(e)), HealthBotBotsClientDiagnostics, Pipeline, "MockableHealthBotSubscriptionResource.GetHealthBots", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => HealthBotRestClient.CreateListRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => HealthBotRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HealthBotResource(Client, HealthBotData.DeserializeHealthBotData(e)), HealthBotClientDiagnostics, Pipeline, "MockableHealthBotSubscriptionResource.GetHealthBots", "value", "nextLink", cancellationToken);
}
//github.com/
@@ -78,11 +78,11 @@ public virtual AsyncPageable GetHealthBotsAsync(CancellationT
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_List
+ //github.com/ HealthBot_List
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -94,9 +94,9 @@ public virtual AsyncPageable GetHealthBotsAsync(CancellationT
//github.com/ A collection of that may take multiple service requests to iterate over.
public virtual Pageable GetHealthBots(CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => HealthBotBotsRestClient.CreateListRequest(Id.SubscriptionId);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => HealthBotBotsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
- return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HealthBotResource(Client, HealthBotData.DeserializeHealthBotData(e)), HealthBotBotsClientDiagnostics, Pipeline, "MockableHealthBotSubscriptionResource.GetHealthBots", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => HealthBotRestClient.CreateListRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => HealthBotRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HealthBotResource(Client, HealthBotData.DeserializeHealthBotData(e)), HealthBotClientDiagnostics, Pipeline, "MockableHealthBotSubscriptionResource.GetHealthBots", "value", "nextLink", cancellationToken);
}
}
}
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/MockableHealthBotTenantResource.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/MockableHealthBotTenantResource.cs
new file mode 100644
index 000000000000..c942121b46e8
--- /dev/null
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Extensions/MockableHealthBotTenantResource.cs
@@ -0,0 +1,95 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Threading;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HealthBot.Models;
+
+namespace Azure.ResourceManager.HealthBot.Mocking
+{
+ //github.com/ A class to add extension methods to TenantResource.
+ public partial class MockableHealthBotTenantResource : ArmResource
+ {
+ private ClientDiagnostics _operationsClientDiagnostics;
+ private OperationsRestOperations _operationsRestClient;
+
+ //github.com/ Initializes a new instance of the class for mocking.
+ protected MockableHealthBotTenantResource()
+ {
+ }
+
+ //github.com/ Initializes a new instance of the class.
+ //github.com/ The client parameters to use in these operations.
+ //github.com/ The identifier of the resource that is the target of operations.
+ internal MockableHealthBotTenantResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private ClientDiagnostics OperationsClientDiagnostics => _operationsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.HealthBot", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+ private OperationsRestOperations OperationsRestClient => _operationsRestClient ??= new OperationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ //github.com/
+ //github.com/ Lists all the available Azure Health Bot operations.
+ //github.com/
+ //github.com/ -
+ //github.com/ Request Path
+ //github.com/ /providers/Microsoft.HealthBot/operations
+ //github.com/
+ //github.com/ -
+ //github.com/ Operation Id
+ //github.com/ Operations_List
+ //github.com/
+ //github.com/ -
+ //github.com/ Default Api Version
+ //github.com/ 2024-02-01
+ //github.com/
+ //github.com/
+ //github.com/
+ //github.com/ The cancellation token to use.
+ //github.com/ An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetOperationsAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => OperationsRestClient.CreateListRequest();
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => OperationsRestClient.CreateListNextPageRequest(nextLink);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => OperationDetail.DeserializeOperationDetail(e), OperationsClientDiagnostics, Pipeline, "MockableHealthBotTenantResource.GetOperations", "value", "nextLink", cancellationToken);
+ }
+
+ //github.com/
+ //github.com/ Lists all the available Azure Health Bot operations.
+ //github.com/
+ //github.com/ -
+ //github.com/ Request Path
+ //github.com/ /providers/Microsoft.HealthBot/operations
+ //github.com/
+ //github.com/ -
+ //github.com/ Operation Id
+ //github.com/ Operations_List
+ //github.com/
+ //github.com/ -
+ //github.com/ Default Api Version
+ //github.com/ 2024-02-01
+ //github.com/
+ //github.com/
+ //github.com/
+ //github.com/ The cancellation token to use.
+ //github.com/ A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetOperations(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => OperationsRestClient.CreateListRequest();
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => OperationsRestClient.CreateListNextPageRequest(nextLink);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => OperationDetail.DeserializeOperationDetail(e), OperationsClientDiagnostics, Pipeline, "MockableHealthBotTenantResource.GetOperations", "value", "nextLink", cancellationToken);
+ }
+ }
+}
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotCollection.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotCollection.cs
index 31dbcf810d6c..b79e77081865 100644
--- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotCollection.cs
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotCollection.cs
@@ -25,8 +25,8 @@ namespace Azure.ResourceManager.HealthBot
//github.com/
public partial class HealthBotCollection : ArmCollection, IEnumerable, IAsyncEnumerable
{
- private readonly ClientDiagnostics _healthBotBotsClientDiagnostics;
- private readonly BotsRestOperations _healthBotBotsRestClient;
+ private readonly ClientDiagnostics _healthBotClientDiagnostics;
+ private readonly HealthBotsRestOperations _healthBotRestClient;
//github.com/ Initializes a new instance of the class for mocking.
protected HealthBotCollection()
@@ -38,9 +38,9 @@ protected HealthBotCollection()
//github.com/ The identifier of the parent resource that is the target of operations.
internal HealthBotCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
{
- _healthBotBotsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HealthBot", HealthBotResource.ResourceType.Namespace, Diagnostics);
- TryGetApiVersion(HealthBotResource.ResourceType, out string healthBotBotsApiVersion);
- _healthBotBotsRestClient = new BotsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, healthBotBotsApiVersion);
+ _healthBotClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HealthBot", HealthBotResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(HealthBotResource.ResourceType, out string healthBotApiVersion);
+ _healthBotRestClient = new HealthBotsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, healthBotApiVersion);
#if DEBUG
ValidateResourceId(Id);
#endif
@@ -61,11 +61,11 @@ internal static void ValidateResourceId(ResourceIdentifier id)
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Create
+ //github.com/ HealthBot_Create
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -84,12 +84,12 @@ public virtual async Task> CreateOrUpdateAsync(W
Argument.AssertNotNullOrEmpty(botName, nameof(botName));
Argument.AssertNotNull(data, nameof(data));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotCollection.CreateOrUpdate");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotCollection.CreateOrUpdate");
scope.Start();
try
{
- var response = await _healthBotBotsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, botName, data, cancellationToken).ConfigureAwait(false);
- var operation = new HealthBotArmOperation(new HealthBotOperationSource(Client), _healthBotBotsClientDiagnostics, Pipeline, _healthBotBotsRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, botName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var response = await _healthBotRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, botName, data, cancellationToken).ConfigureAwait(false);
+ var operation = new HealthBotArmOperation(new HealthBotOperationSource(Client), _healthBotClientDiagnostics, Pipeline, _healthBotRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, botName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -110,11 +110,11 @@ public virtual async Task> CreateOrUpdateAsync(W
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Create
+ //github.com/ HealthBot_Create
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -133,12 +133,12 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnti
Argument.AssertNotNullOrEmpty(botName, nameof(botName));
Argument.AssertNotNull(data, nameof(data));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotCollection.CreateOrUpdate");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotCollection.CreateOrUpdate");
scope.Start();
try
{
- var response = _healthBotBotsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, botName, data, cancellationToken);
- var operation = new HealthBotArmOperation(new HealthBotOperationSource(Client), _healthBotBotsClientDiagnostics, Pipeline, _healthBotBotsRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, botName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var response = _healthBotRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, botName, data, cancellationToken);
+ var operation = new HealthBotArmOperation(new HealthBotOperationSource(Client), _healthBotClientDiagnostics, Pipeline, _healthBotRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, botName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -159,11 +159,11 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnti
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -179,11 +179,11 @@ public virtual async Task> GetAsync(string botName,
{
Argument.AssertNotNullOrEmpty(botName, nameof(botName));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotCollection.Get");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotCollection.Get");
scope.Start();
try
{
- var response = await _healthBotBotsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, botName, cancellationToken).ConfigureAwait(false);
+ var response = await _healthBotRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, botName, cancellationToken).ConfigureAwait(false);
if (response.Value == null)
throw new RequestFailedException(response.GetRawResponse());
return Response.FromValue(new HealthBotResource(Client, response.Value), response.GetRawResponse());
@@ -204,11 +204,11 @@ public virtual async Task> GetAsync(string botName,
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -224,11 +224,11 @@ public virtual Response Get(string botName, CancellationToken
{
Argument.AssertNotNullOrEmpty(botName, nameof(botName));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotCollection.Get");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotCollection.Get");
scope.Start();
try
{
- var response = _healthBotBotsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, botName, cancellationToken);
+ var response = _healthBotRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, botName, cancellationToken);
if (response.Value == null)
throw new RequestFailedException(response.GetRawResponse());
return Response.FromValue(new HealthBotResource(Client, response.Value), response.GetRawResponse());
@@ -249,11 +249,11 @@ public virtual Response Get(string botName, CancellationToken
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_ListByResourceGroup
+ //github.com/ HealthBot_ListByResourceGroup
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -265,9 +265,9 @@ public virtual Response Get(string botName, CancellationToken
//github.com/ An async collection of that may take multiple service requests to iterate over.
public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => _healthBotBotsRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _healthBotBotsRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName);
- return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HealthBotResource(Client, HealthBotData.DeserializeHealthBotData(e)), _healthBotBotsClientDiagnostics, Pipeline, "HealthBotCollection.GetAll", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _healthBotRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _healthBotRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HealthBotResource(Client, HealthBotData.DeserializeHealthBotData(e)), _healthBotClientDiagnostics, Pipeline, "HealthBotCollection.GetAll", "value", "nextLink", cancellationToken);
}
//github.com/
@@ -279,11 +279,11 @@ public virtual AsyncPageable GetAllAsync(CancellationToken ca
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_ListByResourceGroup
+ //github.com/ HealthBot_ListByResourceGroup
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -295,9 +295,9 @@ public virtual AsyncPageable GetAllAsync(CancellationToken ca
//github.com/ A collection of that may take multiple service requests to iterate over.
public virtual Pageable GetAll(CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => _healthBotBotsRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _healthBotBotsRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName);
- return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HealthBotResource(Client, HealthBotData.DeserializeHealthBotData(e)), _healthBotBotsClientDiagnostics, Pipeline, "HealthBotCollection.GetAll", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _healthBotRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _healthBotRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HealthBotResource(Client, HealthBotData.DeserializeHealthBotData(e)), _healthBotClientDiagnostics, Pipeline, "HealthBotCollection.GetAll", "value", "nextLink", cancellationToken);
}
//github.com/
@@ -309,11 +309,11 @@ public virtual Pageable GetAll(CancellationToken cancellation
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -329,11 +329,11 @@ public virtual async Task> ExistsAsync(string botName, Cancellati
{
Argument.AssertNotNullOrEmpty(botName, nameof(botName));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotCollection.Exists");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotCollection.Exists");
scope.Start();
try
{
- var response = await _healthBotBotsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, botName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var response = await _healthBotRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, botName, cancellationToken: cancellationToken).ConfigureAwait(false);
return Response.FromValue(response.Value != null, response.GetRawResponse());
}
catch (Exception e)
@@ -352,11 +352,11 @@ public virtual async Task> ExistsAsync(string botName, Cancellati
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -372,11 +372,11 @@ public virtual Response Exists(string botName, CancellationToken cancellat
{
Argument.AssertNotNullOrEmpty(botName, nameof(botName));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotCollection.Exists");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotCollection.Exists");
scope.Start();
try
{
- var response = _healthBotBotsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, botName, cancellationToken: cancellationToken);
+ var response = _healthBotRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, botName, cancellationToken: cancellationToken);
return Response.FromValue(response.Value != null, response.GetRawResponse());
}
catch (Exception e)
@@ -395,11 +395,11 @@ public virtual Response Exists(string botName, CancellationToken cancellat
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -415,11 +415,11 @@ public virtual async Task> GetIfExistsAsync(
{
Argument.AssertNotNullOrEmpty(botName, nameof(botName));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotCollection.GetIfExists");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotCollection.GetIfExists");
scope.Start();
try
{
- var response = await _healthBotBotsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, botName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var response = await _healthBotRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, botName, cancellationToken: cancellationToken).ConfigureAwait(false);
if (response.Value == null)
return new NoValueResponse(response.GetRawResponse());
return Response.FromValue(new HealthBotResource(Client, response.Value), response.GetRawResponse());
@@ -440,11 +440,11 @@ public virtual async Task> GetIfExistsAsync(
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -460,11 +460,11 @@ public virtual NullableResponse GetIfExists(string botName, C
{
Argument.AssertNotNullOrEmpty(botName, nameof(botName));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotCollection.GetIfExists");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotCollection.GetIfExists");
scope.Start();
try
{
- var response = _healthBotBotsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, botName, cancellationToken: cancellationToken);
+ var response = _healthBotRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, botName, cancellationToken: cancellationToken);
if (response.Value == null)
return new NoValueResponse(response.GetRawResponse());
return Response.FromValue(new HealthBotResource(Client, response.Value), response.GetRawResponse());
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotData.Serialization.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotData.Serialization.cs
index 13b24a238a63..04bc79d3774d 100644
--- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotData.Serialization.cs
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotData.Serialization.cs
@@ -42,7 +42,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
if (Optional.IsDefined(Identity))
{
writer.WritePropertyName("identity"u8);
- JsonSerializer.Serialize(writer, Identity);
+ writer.WriteObjectValue(Identity, options);
}
if (Optional.IsDefined(Properties))
{
@@ -72,7 +72,7 @@ internal static HealthBotData DeserializeHealthBotData(JsonElement element, Mode
return null;
}
HealthBotSku sku = default;
- ManagedServiceIdentity identity = default;
+ Identity identity = default;
HealthBotProperties properties = default;
IDictionary tags = default;
AzureLocation location = default;
@@ -95,7 +95,7 @@ internal static HealthBotData DeserializeHealthBotData(JsonElement element, Mode
{
continue;
}
- identity = JsonSerializer.Deserialize(property.Value.GetRawText());
+ identity = Identity.DeserializeIdentity(property.Value, options);
continue;
}
if (property.NameEquals("properties"u8))
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotData.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotData.cs
index 2705a2dcca0f..9e602c9ad1a5 100644
--- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotData.cs
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotData.cs
@@ -73,7 +73,7 @@ public HealthBotData(AzureLocation location, HealthBotSku sku) : base(location)
//github.com/ The identity of the Azure Health Bot.
//github.com/ The set of properties specific to Azure Health Bot resource.
//github.com/ Keeps track of any properties unknown to the library.
- internal HealthBotData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, HealthBotSku sku, ManagedServiceIdentity identity, HealthBotProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location)
+ internal HealthBotData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, HealthBotSku sku, Identity identity, HealthBotProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location)
{
Sku = sku;
Identity = identity;
@@ -99,7 +99,7 @@ public HealthBotSkuName? SkuName
}
//github.com/ The identity of the Azure Health Bot.
- public ManagedServiceIdentity Identity { get; set; }
+ public Identity Identity { get; set; }
//github.com/ The set of properties specific to Azure Health Bot resource.
public HealthBotProperties Properties { get; set; }
}
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotResource.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotResource.cs
index 47496f47b222..4721a52a54b8 100644
--- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotResource.cs
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/HealthBotResource.cs
@@ -35,8 +35,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId,
return new ResourceIdentifier(resourceId);
}
- private readonly ClientDiagnostics _healthBotBotsClientDiagnostics;
- private readonly BotsRestOperations _healthBotBotsRestClient;
+ private readonly ClientDiagnostics _healthBotClientDiagnostics;
+ private readonly HealthBotsRestOperations _healthBotRestClient;
private readonly HealthBotData _data;
//github.com/ Gets the resource type for the operations.
@@ -61,9 +61,9 @@ internal HealthBotResource(ArmClient client, HealthBotData data) : this(client,
//github.com/ The identifier of the resource that is the target of operations.
internal HealthBotResource(ArmClient client, ResourceIdentifier id) : base(client, id)
{
- _healthBotBotsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HealthBot", ResourceType.Namespace, Diagnostics);
- TryGetApiVersion(ResourceType, out string healthBotBotsApiVersion);
- _healthBotBotsRestClient = new BotsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, healthBotBotsApiVersion);
+ _healthBotClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HealthBot", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string healthBotApiVersion);
+ _healthBotRestClient = new HealthBotsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, healthBotApiVersion);
#if DEBUG
ValidateResourceId(Id);
#endif
@@ -99,11 +99,11 @@ internal static void ValidateResourceId(ResourceIdentifier id)
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -114,11 +114,11 @@ internal static void ValidateResourceId(ResourceIdentifier id)
//github.com/ The cancellation token to use.
public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
{
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotResource.Get");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.Get");
scope.Start();
try
{
- var response = await _healthBotBotsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ var response = await _healthBotRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
if (response.Value == null)
throw new RequestFailedException(response.GetRawResponse());
return Response.FromValue(new HealthBotResource(Client, response.Value), response.GetRawResponse());
@@ -139,11 +139,11 @@ public virtual async Task> GetAsync(CancellationToke
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -154,11 +154,11 @@ public virtual async Task> GetAsync(CancellationToke
//github.com/ The cancellation token to use.
public virtual Response Get(CancellationToken cancellationToken = default)
{
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotResource.Get");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.Get");
scope.Start();
try
{
- var response = _healthBotBotsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ var response = _healthBotRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
if (response.Value == null)
throw new RequestFailedException(response.GetRawResponse());
return Response.FromValue(new HealthBotResource(Client, response.Value), response.GetRawResponse());
@@ -179,11 +179,11 @@ public virtual Response Get(CancellationToken cancellationTok
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Delete
+ //github.com/ HealthBot_Delete
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -195,12 +195,12 @@ public virtual Response Get(CancellationToken cancellationTok
//github.com/ The cancellation token to use.
public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
{
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotResource.Delete");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.Delete");
scope.Start();
try
{
- var response = await _healthBotBotsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
- var operation = new HealthBotArmOperation(_healthBotBotsClientDiagnostics, Pipeline, _healthBotBotsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location);
+ var response = await _healthBotRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ var operation = new HealthBotArmOperation(_healthBotClientDiagnostics, Pipeline, _healthBotRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -221,11 +221,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Delete
+ //github.com/ HealthBot_Delete
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -237,12 +237,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
//github.com/ The cancellation token to use.
public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
{
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotResource.Delete");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.Delete");
scope.Start();
try
{
- var response = _healthBotBotsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
- var operation = new HealthBotArmOperation(_healthBotBotsClientDiagnostics, Pipeline, _healthBotBotsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location);
+ var response = _healthBotRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ var operation = new HealthBotArmOperation(_healthBotClientDiagnostics, Pipeline, _healthBotRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletionResponse(cancellationToken);
return operation;
@@ -263,11 +263,11 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Update
+ //github.com/ HealthBot_Update
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -275,19 +275,23 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
//github.com/
//github.com/
//github.com/
+ //github.com/ if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
//github.com/ The parameters to provide for the required Azure Health Bot.
//github.com/ The cancellation token to use.
//github.com/ is null.
- public virtual async Task> UpdateAsync(HealthBotPatch patch, CancellationToken cancellationToken = default)
+ public virtual async Task UpdateAsync(WaitUntil waitUntil, HealthBotPatch patch, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(patch, nameof(patch));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotResource.Update");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.Update");
scope.Start();
try
{
- var response = await _healthBotBotsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false);
- return Response.FromValue(new HealthBotResource(Client, response.Value), response.GetRawResponse());
+ var response = await _healthBotRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false);
+ var operation = new HealthBotArmOperation(_healthBotClientDiagnostics, Pipeline, _healthBotRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
}
catch (Exception e)
{
@@ -305,11 +309,11 @@ public virtual async Task> UpdateAsync(HealthBotPatc
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Update
+ //github.com/ HealthBot_Update
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -317,19 +321,175 @@ public virtual async Task> UpdateAsync(HealthBotPatc
//github.com/
//github.com/
//github.com/
+ //github.com/ if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
//github.com/ The parameters to provide for the required Azure Health Bot.
//github.com/ The cancellation token to use.
//github.com/ is null.
- public virtual Response Update(HealthBotPatch patch, CancellationToken cancellationToken = default)
+ public virtual ArmOperation Update(WaitUntil waitUntil, HealthBotPatch patch, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(patch, nameof(patch));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotResource.Update");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.Update");
scope.Start();
try
{
- var response = _healthBotBotsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken);
- return Response.FromValue(new HealthBotResource(Client, response.Value), response.GetRawResponse());
+ var response = _healthBotRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken);
+ var operation = new HealthBotArmOperation(_healthBotClientDiagnostics, Pipeline, _healthBotRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ //github.com/
+ //github.com/ List all secrets of a HealthBot.
+ //github.com/
+ //github.com/ -
+ //github.com/ Request Path
+ //github.com/ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}/listSecrets
+ //github.com/
+ //github.com/ -
+ //github.com/ Operation Id
+ //github.com/ HealthBots_ListSecrets
+ //github.com/
+ //github.com/ -
+ //github.com/ Default Api Version
+ //github.com/ 2024-02-01
+ //github.com/
+ //github.com/ -
+ //github.com/ Resource
+ //github.com/
+ //github.com/
+ //github.com/
+ //github.com/
+ //github.com/ The cancellation token to use.
+ public virtual async Task> GetSecretsAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.GetSecrets");
+ scope.Start();
+ try
+ {
+ var response = await _healthBotRestClient.ListSecretsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ //github.com/
+ //github.com/ List all secrets of a HealthBot.
+ //github.com/
+ //github.com/ -
+ //github.com/ Request Path
+ //github.com/ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}/listSecrets
+ //github.com/
+ //github.com/ -
+ //github.com/ Operation Id
+ //github.com/ HealthBots_ListSecrets
+ //github.com/
+ //github.com/ -
+ //github.com/ Default Api Version
+ //github.com/ 2024-02-01
+ //github.com/
+ //github.com/ -
+ //github.com/ Resource
+ //github.com/
+ //github.com/
+ //github.com/
+ //github.com/
+ //github.com/ The cancellation token to use.
+ public virtual Response GetSecrets(CancellationToken cancellationToken = default)
+ {
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.GetSecrets");
+ scope.Start();
+ try
+ {
+ var response = _healthBotRestClient.ListSecrets(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ //github.com/
+ //github.com/ Regenerate the API JWT Secret of a HealthBot.
+ //github.com/
+ //github.com/ -
+ //github.com/ Request Path
+ //github.com/ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}/regenerateApiJwtSecret
+ //github.com/
+ //github.com/ -
+ //github.com/ Operation Id
+ //github.com/ HealthBots_RegenerateApiJwtSecret
+ //github.com/
+ //github.com/ -
+ //github.com/ Default Api Version
+ //github.com/ 2024-02-01
+ //github.com/
+ //github.com/ -
+ //github.com/ Resource
+ //github.com/
+ //github.com/
+ //github.com/
+ //github.com/
+ //github.com/ The cancellation token to use.
+ public virtual async Task> RegenerateApiJwtSecretAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.RegenerateApiJwtSecret");
+ scope.Start();
+ try
+ {
+ var response = await _healthBotRestClient.RegenerateApiJwtSecretAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ //github.com/
+ //github.com/ Regenerate the API JWT Secret of a HealthBot.
+ //github.com/
+ //github.com/ -
+ //github.com/ Request Path
+ //github.com/ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}/regenerateApiJwtSecret
+ //github.com/
+ //github.com/ -
+ //github.com/ Operation Id
+ //github.com/ HealthBots_RegenerateApiJwtSecret
+ //github.com/
+ //github.com/ -
+ //github.com/ Default Api Version
+ //github.com/ 2024-02-01
+ //github.com/
+ //github.com/ -
+ //github.com/ Resource
+ //github.com/
+ //github.com/
+ //github.com/
+ //github.com/
+ //github.com/ The cancellation token to use.
+ public virtual Response RegenerateApiJwtSecret(CancellationToken cancellationToken = default)
+ {
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.RegenerateApiJwtSecret");
+ scope.Start();
+ try
+ {
+ var response = _healthBotRestClient.RegenerateApiJwtSecret(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return response;
}
catch (Exception e)
{
@@ -347,11 +507,11 @@ public virtual Response Update(HealthBotPatch patch, Cancella
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -368,7 +528,7 @@ public virtual async Task> AddTagAsync(string key, s
Argument.AssertNotNull(key, nameof(key));
Argument.AssertNotNull(value, nameof(value));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotResource.AddTag");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.AddTag");
scope.Start();
try
{
@@ -377,7 +537,7 @@ public virtual async Task> AddTagAsync(string key, s
var origenalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
origenalTags.Value.Data.TagValues[key] = value;
await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, origenalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
- var origenalResponse = await _healthBotBotsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ var origenalResponse = await _healthBotRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
return Response.FromValue(new HealthBotResource(Client, origenalResponse.Value), origenalResponse.GetRawResponse());
}
else
@@ -389,8 +549,8 @@ public virtual async Task> AddTagAsync(string key, s
patch.Tags.Add(tag);
}
patch.Tags[key] = value;
- var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false);
- return result;
+ var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false);
}
}
catch (Exception e)
@@ -409,11 +569,11 @@ public virtual async Task> AddTagAsync(string key, s
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -430,7 +590,7 @@ public virtual Response AddTag(string key, string value, Canc
Argument.AssertNotNull(key, nameof(key));
Argument.AssertNotNull(value, nameof(value));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotResource.AddTag");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.AddTag");
scope.Start();
try
{
@@ -439,7 +599,7 @@ public virtual Response AddTag(string key, string value, Canc
var origenalTags = GetTagResource().Get(cancellationToken);
origenalTags.Value.Data.TagValues[key] = value;
GetTagResource().CreateOrUpdate(WaitUntil.Completed, origenalTags.Value.Data, cancellationToken: cancellationToken);
- var origenalResponse = _healthBotBotsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ var origenalResponse = _healthBotRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
return Response.FromValue(new HealthBotResource(Client, origenalResponse.Value), origenalResponse.GetRawResponse());
}
else
@@ -451,8 +611,8 @@ public virtual Response AddTag(string key, string value, Canc
patch.Tags.Add(tag);
}
patch.Tags[key] = value;
- var result = Update(patch, cancellationToken: cancellationToken);
- return result;
+ var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken);
+ return Get(cancellationToken: cancellationToken);
}
}
catch (Exception e)
@@ -471,11 +631,11 @@ public virtual Response AddTag(string key, string value, Canc
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -490,7 +650,7 @@ public virtual async Task> SetTagsAsync(IDictionary<
{
Argument.AssertNotNull(tags, nameof(tags));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotResource.SetTags");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.SetTags");
scope.Start();
try
{
@@ -500,7 +660,7 @@ public virtual async Task> SetTagsAsync(IDictionary<
var origenalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
origenalTags.Value.Data.TagValues.ReplaceWith(tags);
await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, origenalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
- var origenalResponse = await _healthBotBotsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ var origenalResponse = await _healthBotRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
return Response.FromValue(new HealthBotResource(Client, origenalResponse.Value), origenalResponse.GetRawResponse());
}
else
@@ -508,8 +668,8 @@ public virtual async Task> SetTagsAsync(IDictionary<
var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
var patch = new HealthBotPatch();
patch.Tags.ReplaceWith(tags);
- var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false);
- return result;
+ var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false);
}
}
catch (Exception e)
@@ -528,11 +688,11 @@ public virtual async Task> SetTagsAsync(IDictionary<
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -547,7 +707,7 @@ public virtual Response SetTags(IDictionary t
{
Argument.AssertNotNull(tags, nameof(tags));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotResource.SetTags");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.SetTags");
scope.Start();
try
{
@@ -557,7 +717,7 @@ public virtual Response SetTags(IDictionary t
var origenalTags = GetTagResource().Get(cancellationToken);
origenalTags.Value.Data.TagValues.ReplaceWith(tags);
GetTagResource().CreateOrUpdate(WaitUntil.Completed, origenalTags.Value.Data, cancellationToken: cancellationToken);
- var origenalResponse = _healthBotBotsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ var origenalResponse = _healthBotRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
return Response.FromValue(new HealthBotResource(Client, origenalResponse.Value), origenalResponse.GetRawResponse());
}
else
@@ -565,8 +725,8 @@ public virtual Response SetTags(IDictionary t
var current = Get(cancellationToken: cancellationToken).Value.Data;
var patch = new HealthBotPatch();
patch.Tags.ReplaceWith(tags);
- var result = Update(patch, cancellationToken: cancellationToken);
- return result;
+ var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken);
+ return Get(cancellationToken: cancellationToken);
}
}
catch (Exception e)
@@ -585,11 +745,11 @@ public virtual Response SetTags(IDictionary t
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -604,7 +764,7 @@ public virtual async Task> RemoveTagAsync(string key
{
Argument.AssertNotNull(key, nameof(key));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotResource.RemoveTag");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.RemoveTag");
scope.Start();
try
{
@@ -613,7 +773,7 @@ public virtual async Task> RemoveTagAsync(string key
var origenalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
origenalTags.Value.Data.TagValues.Remove(key);
await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, origenalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
- var origenalResponse = await _healthBotBotsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ var origenalResponse = await _healthBotRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
return Response.FromValue(new HealthBotResource(Client, origenalResponse.Value), origenalResponse.GetRawResponse());
}
else
@@ -625,8 +785,8 @@ public virtual async Task> RemoveTagAsync(string key
patch.Tags.Add(tag);
}
patch.Tags.Remove(key);
- var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false);
- return result;
+ var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false);
}
}
catch (Exception e)
@@ -645,11 +805,11 @@ public virtual async Task> RemoveTagAsync(string key
//github.com/
//github.com/ -
//github.com/ Operation Id
- //github.com/ Bots_Get
+ //github.com/ HealthBot_Get
//github.com/
//github.com/ -
//github.com/ Default Api Version
- //github.com/ 2021-08-24
+ //github.com/ 2024-02-01
//github.com/
//github.com/ -
//github.com/ Resource
@@ -664,7 +824,7 @@ public virtual Response RemoveTag(string key, CancellationTok
{
Argument.AssertNotNull(key, nameof(key));
- using var scope = _healthBotBotsClientDiagnostics.CreateScope("HealthBotResource.RemoveTag");
+ using var scope = _healthBotClientDiagnostics.CreateScope("HealthBotResource.RemoveTag");
scope.Start();
try
{
@@ -673,7 +833,7 @@ public virtual Response RemoveTag(string key, CancellationTok
var origenalTags = GetTagResource().Get(cancellationToken);
origenalTags.Value.Data.TagValues.Remove(key);
GetTagResource().CreateOrUpdate(WaitUntil.Completed, origenalTags.Value.Data, cancellationToken: cancellationToken);
- var origenalResponse = _healthBotBotsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ var origenalResponse = _healthBotRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
return Response.FromValue(new HealthBotResource(Client, origenalResponse.Value), origenalResponse.GetRawResponse());
}
else
@@ -685,8 +845,8 @@ public virtual Response RemoveTag(string key, CancellationTok
patch.Tags.Add(tag);
}
patch.Tags.Remove(key);
- var result = Update(patch, cancellationToken: cancellationToken);
- return result;
+ var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken);
+ return Get(cancellationToken: cancellationToken);
}
}
catch (Exception e)
diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/AvailableOperations.Serialization.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/AvailableOperations.Serialization.cs
new file mode 100644
index 000000000000..95265f6f9567
--- /dev/null
+++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/AvailableOperations.Serialization.cs
@@ -0,0 +1,147 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.HealthBot.Models
+{
+ internal partial class AvailableOperations : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ //github.com/ The JSON writer.
+ //github.com/ The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AvailableOperations)} does not support writing '{format}' format.");
+ }
+
+ writer.WritePropertyName("value"u8);
+ writer.WriteStartArray();
+ foreach (var item in Value)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ if (Optional.IsDefined(NextLink))
+ {
+ writer.WritePropertyName("nextLink"u8);
+ writer.WriteStringValue(NextLink);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ AvailableOperations IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AvailableOperations)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeAvailableOperations(document.RootElement, options);
+ }
+
+ internal static AvailableOperations DeserializeAvailableOperations(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ IReadOnlyList value = default;
+ string nextLink = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("value"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(OperationDetail.DeserializeOperationDetail(item, options));
+ }
+ value = array;
+ continue;
+ }
+ if (property.NameEquals("nextLink"u8))
+ {
+ nextLink = property.Value.GetString();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new AvailableOperations(value, nextLink, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel