Skip to content

Commit

Permalink
Merge pull request #3075 from hashicorp/data/regeneration-from-5c89ec…
Browse files Browse the repository at this point in the history
…9f05144b2f8c16eb21effceeb88e3445a9-rest-api-specs

Data: Rest Api Specs - regenerating based on 5c89ec9
  • Loading branch information
tombuildsstuff authored Sep 20, 2023
2 parents e02d78f + ab6c88f commit 35b50cd
Show file tree
Hide file tree
Showing 395 changed files with 10,862 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15;

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

namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15;

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

public IEnumerable<ResourceDefinition> Resources => new List<ResourceDefinition>
{
new AttachedDatabaseConfigurations.Definition(),
new ClusterPrincipalAssignments.Definition(),
new Clusters.Definition(),
new DataConnections.Definition(),
new DatabasePrincipalAssignments.Definition(),
new Databases.Definition(),
new Kusto.Definition(),
new ManagedPrivateEndpoints.Definition(),
new OutboundNetworkDependenciesEndpoints.Definition(),
new PrivateEndpointConnections.Definition(),
new PrivateLinkResources.Definition(),
new SandboxCustomImages.Definition(),
new Scripts.Definition(),
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Pandora.Definitions.Attributes;
using System.ComponentModel;

namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.AttachedDatabaseConfigurations;

[ConstantType(ConstantTypeAttribute.ConstantType.String)]
internal enum AttachedDatabaseTypeConstant
{
[Description("Microsoft.Kusto/clusters/attachedDatabaseConfigurations")]
MicrosoftPointKustoClustersAttachedDatabaseConfigurations,
}
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.Kusto.v2023_08_15.AttachedDatabaseConfigurations;

[ConstantType(ConstantTypeAttribute.ConstantType.String)]
internal enum DefaultPrincipalsModificationKindConstant
{
[Description("None")]
None,

[Description("Replace")]
Replace,

[Description("Union")]
Union,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using Pandora.Definitions.Attributes;
using System.ComponentModel;

namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.AttachedDatabaseConfigurations;

[ConstantType(ConstantTypeAttribute.ConstantType.String)]
internal enum ProvisioningStateConstant
{
[Description("Canceled")]
Canceled,

[Description("Creating")]
Creating,

[Description("Deleting")]
Deleting,

[Description("Failed")]
Failed,

[Description("Moving")]
Moving,

[Description("Running")]
Running,

[Description("Succeeded")]
Succeeded,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Pandora.Definitions.Attributes;
using System.ComponentModel;

namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.AttachedDatabaseConfigurations;

[ConstantType(ConstantTypeAttribute.ConstantType.String)]
internal enum ReasonConstant
{
[Description("AlreadyExists")]
AlreadyExists,

[Description("Invalid")]
Invalid,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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.Kusto.v2023_08_15.AttachedDatabaseConfigurations;

internal class Definition : ResourceDefinition
{
public string Name => "AttachedDatabaseConfigurations";
public IEnumerable<Interfaces.ApiOperation> Operations => new List<Interfaces.ApiOperation>
{
new CheckNameAvailabilityOperation(),
new CreateOrUpdateOperation(),
new DeleteOperation(),
new GetOperation(),
new ListByClusterOperation(),
};
public IEnumerable<System.Type> Constants => new List<System.Type>
{
typeof(AttachedDatabaseTypeConstant),
typeof(DefaultPrincipalsModificationKindConstant),
typeof(ProvisioningStateConstant),
typeof(ReasonConstant),
};
public IEnumerable<System.Type> Models => new List<System.Type>
{
typeof(AttachedDatabaseConfigurationModel),
typeof(AttachedDatabaseConfigurationListResultModel),
typeof(AttachedDatabaseConfigurationPropertiesModel),
typeof(AttachedDatabaseConfigurationsCheckNameRequestModel),
typeof(CheckNameResultModel),
typeof(TableLevelSharingPropertiesModel),
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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.Kusto.v2023_08_15.AttachedDatabaseConfigurations;


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

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

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

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

[JsonPropertyName("type")]
public string? Type { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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.Kusto.v2023_08_15.AttachedDatabaseConfigurations;


internal class AttachedDatabaseConfigurationListResultModel
{
[JsonPropertyName("value")]
public List<AttachedDatabaseConfigurationModel>? Value { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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.Kusto.v2023_08_15.AttachedDatabaseConfigurations;


internal class AttachedDatabaseConfigurationPropertiesModel
{
[JsonPropertyName("attachedDatabaseNames")]
public List<string>? AttachedDatabaseNames { get; set; }

[JsonPropertyName("clusterResourceId")]
[Required]
public string ClusterResourceId { get; set; }

[JsonPropertyName("databaseName")]
[Required]
public string DatabaseName { get; set; }

[JsonPropertyName("databaseNameOverride")]
public string? DatabaseNameOverride { get; set; }

[JsonPropertyName("databaseNamePrefix")]
public string? DatabaseNamePrefix { get; set; }

[JsonPropertyName("defaultPrincipalsModificationKind")]
[Required]
public DefaultPrincipalsModificationKindConstant DefaultPrincipalsModificationKind { get; set; }

[JsonPropertyName("provisioningState")]
public ProvisioningStateConstant? ProvisioningState { get; set; }

[JsonPropertyName("tableLevelSharingProperties")]
public TableLevelSharingPropertiesModel? TableLevelSharingProperties { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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.Kusto.v2023_08_15.AttachedDatabaseConfigurations;


internal class AttachedDatabaseConfigurationsCheckNameRequestModel
{
[JsonPropertyName("name")]
[Required]
public string Name { get; set; }

[JsonPropertyName("type")]
[Required]
public AttachedDatabaseTypeConstant Type { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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.Kusto.v2023_08_15.AttachedDatabaseConfigurations;


internal class CheckNameResultModel
{
[JsonPropertyName("message")]
public string? Message { get; set; }

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

[JsonPropertyName("nameAvailable")]
public bool? NameAvailable { get; set; }

[JsonPropertyName("reason")]
public ReasonConstant? Reason { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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.Kusto.v2023_08_15.AttachedDatabaseConfigurations;


internal class TableLevelSharingPropertiesModel
{
[JsonPropertyName("externalTablesToExclude")]
public List<string>? ExternalTablesToExclude { get; set; }

[JsonPropertyName("externalTablesToInclude")]
public List<string>? ExternalTablesToInclude { get; set; }

[JsonPropertyName("functionsToExclude")]
public List<string>? FunctionsToExclude { get; set; }

[JsonPropertyName("functionsToInclude")]
public List<string>? FunctionsToInclude { get; set; }

[JsonPropertyName("materializedViewsToExclude")]
public List<string>? MaterializedViewsToExclude { get; set; }

[JsonPropertyName("materializedViewsToInclude")]
public List<string>? MaterializedViewsToInclude { get; set; }

[JsonPropertyName("tablesToExclude")]
public List<string>? TablesToExclude { get; set; }

[JsonPropertyName("tablesToInclude")]
public List<string>? TablesToInclude { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using Pandora.Definitions.Attributes;
using Pandora.Definitions.CustomTypes;
using Pandora.Definitions.Interfaces;
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.Kusto.v2023_08_15.AttachedDatabaseConfigurations;

internal class CheckNameAvailabilityOperation : Pandora.Definitions.Operations.PostOperation
{
public override IEnumerable<HttpStatusCode> ExpectedStatusCodes() => new List<HttpStatusCode>
{
HttpStatusCode.OK,
};

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

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

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

public override string? UriSuffix() => "/attachedDatabaseConfigurationCheckNameAvailability";


}
Loading

0 comments on commit 35b50cd

Please sign in to comment.