Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Pandora.Definitions.ResourceManager.HealthBot;

public partial class Service
{
public bool Generate => true;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using Pandora.Definitions.Interfaces;
using System.Collections.Generic;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.HealthBot;

public partial class Service : ServiceDefinition
{
public string Name => "HealthBot";
public string? ResourceProvider => "Microsoft.HealthBot";
public string? TerraformPackageName => null;

public IEnumerable<TerraformResourceDefinition> TerraformResources => new List<TerraformResourceDefinition>
{

};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08;

public partial class Definition
{
public bool Generate => true;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System.Collections.Generic;
using Pandora.Definitions.Interfaces;

namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08;

public partial class Definition : ApiVersionDefinition
{
public string ApiVersion => "2020-12-08";
public bool Preview => false;
public Source Source => Source.ResourceManagerRestApiSpecs;

public IEnumerable<ResourceDefinition> Resources => new List<ResourceDefinition>
{
new Healthbots.Definition(),
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Pandora.Definitions.Attributes;
using System.ComponentModel;

namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08.Healthbots;

[ConstantType(ConstantTypeAttribute.ConstantType.String)]
internal enum SkuNameConstant
{
[Description("C0")]
CZero,

[Description("F0")]
FZero,

[Description("S1")]
SOne,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System.Collections.Generic;
using Pandora.Definitions.Interfaces;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08.Healthbots;

internal class Definition : ResourceDefinition
{
public string Name => "Healthbots";
public IEnumerable<Interfaces.ApiOperation> Operations => new List<Interfaces.ApiOperation>
{
new BotsCreateOperation(),
new BotsDeleteOperation(),
new BotsGetOperation(),
new BotsListOperation(),
new BotsListByResourceGroupOperation(),
new BotsUpdateOperation(),
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Pandora.Definitions.Attributes;
using Pandora.Definitions.Attributes.Validation;
using Pandora.Definitions.CustomTypes;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08.Healthbots;


internal class HealthBotModel
{
[JsonPropertyName("id")]
public string? Id { get; set; }

[JsonPropertyName("location")]
[Required]
public CustomTypes.Location Location { get; set; }

[JsonPropertyName("name")]
public string? Name { get; set; }

[JsonPropertyName("properties")]
public HealthBotPropertiesModel? Properties { get; set; }

[JsonPropertyName("sku")]
[Required]
public SkuModel Sku { get; set; }

[JsonPropertyName("systemData")]
public CustomTypes.SystemData? SystemData { get; set; }

[JsonPropertyName("tags")]
public CustomTypes.Tags? Tags { get; set; }

[JsonPropertyName("type")]
public string? Type { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Pandora.Definitions.Attributes;
using Pandora.Definitions.Attributes.Validation;
using Pandora.Definitions.CustomTypes;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08.Healthbots;


internal class HealthBotPropertiesModel
{
[JsonPropertyName("botManagementPortalLink")]
public string? BotManagementPortalLink { get; set; }

[JsonPropertyName("provisioningState")]
public string? ProvisioningState { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Pandora.Definitions.Attributes;
using Pandora.Definitions.Attributes.Validation;
using Pandora.Definitions.CustomTypes;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08.Healthbots;


internal class HealthBotUpdateParametersModel
{
[JsonPropertyName("sku")]
public SkuModel? Sku { get; set; }

[JsonPropertyName("tags")]
public CustomTypes.Tags? Tags { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Pandora.Definitions.Attributes;
using Pandora.Definitions.Attributes.Validation;
using Pandora.Definitions.CustomTypes;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08.Healthbots;


internal class SkuModel
{
[JsonPropertyName("name")]
[Required]
public SkuNameConstant Name { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using Pandora.Definitions.Attributes;
using Pandora.Definitions.CustomTypes;
using Pandora.Definitions.Interfaces;
using Pandora.Definitions.Operations;
using System;
using System.Collections.Generic;
using System.Net;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08.Healthbots;

internal class BotsCreateOperation : Operations.PutOperation
{
public override bool LongRunning() => true;

public override Type? RequestObject() => typeof(HealthBotModel);

public override ResourceID? ResourceId() => new HealthBotId();

public override Type? ResponseObject() => typeof(HealthBotModel);


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using Pandora.Definitions.Attributes;
using Pandora.Definitions.CustomTypes;
using Pandora.Definitions.Interfaces;
using Pandora.Definitions.Operations;
using System;
using System.Collections.Generic;
using System.Net;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08.Healthbots;

internal class BotsDeleteOperation : Operations.DeleteOperation
{
public override IEnumerable<HttpStatusCode> ExpectedStatusCodes() => new List<HttpStatusCode>
{
HttpStatusCode.Accepted,
HttpStatusCode.NoContent,
HttpStatusCode.OK,
};

public override bool LongRunning() => true;

public override ResourceID? ResourceId() => new HealthBotId();


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using Pandora.Definitions.Attributes;
using Pandora.Definitions.CustomTypes;
using Pandora.Definitions.Interfaces;
using Pandora.Definitions.Operations;
using System;
using System.Collections.Generic;
using System.Net;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08.Healthbots;

internal class BotsGetOperation : Operations.GetOperation
{
public override ResourceID? ResourceId() => new HealthBotId();

public override Type? ResponseObject() => typeof(HealthBotModel);


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using Pandora.Definitions.Attributes;
using Pandora.Definitions.CustomTypes;
using Pandora.Definitions.Interfaces;
using Pandora.Definitions.Operations;
using System;
using System.Collections.Generic;
using System.Net;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08.Healthbots;

internal class BotsListOperation : Operations.ListOperation
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new SubscriptionId();

public override Type NestedItemType() => typeof(HealthBotModel);

public override string? UriSuffix() => "/providers/Microsoft.HealthBot/healthBots";


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using Pandora.Definitions.Attributes;
using Pandora.Definitions.CustomTypes;
using Pandora.Definitions.Interfaces;
using Pandora.Definitions.Operations;
using System;
using System.Collections.Generic;
using System.Net;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08.Healthbots;

internal class BotsListByResourceGroupOperation : Operations.ListOperation
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new ResourceGroupId();

public override Type NestedItemType() => typeof(HealthBotModel);

public override string? UriSuffix() => "/providers/Microsoft.HealthBot/healthBots";


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using Pandora.Definitions.Attributes;
using Pandora.Definitions.CustomTypes;
using Pandora.Definitions.Interfaces;
using Pandora.Definitions.Operations;
using System;
using System.Collections.Generic;
using System.Net;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08.Healthbots;

internal class BotsUpdateOperation : Operations.PatchOperation
{
public override Type? RequestObject() => typeof(HealthBotUpdateParametersModel);

public override ResourceID? ResourceId() => new HealthBotId();

public override Type? ResponseObject() => typeof(HealthBotModel);


}
Loading