Skip to content

Commit ff2d908

Browse files
author
Vikeshi Tiwari
committed
Add Microsoft.Batman resource provider spec
1 parent c6ccecc commit ff2d908

6 files changed

Lines changed: 517 additions & 0 deletions

File tree

specification/batman/cspell.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
words:
2+
- batman
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import "@typespec/http";
2+
import "@typespec/rest";
3+
import "@typespec/versioning";
4+
import "@azure-tools/typespec-azure-core";
5+
import "@azure-tools/typespec-azure-resource-manager";
6+
7+
using TypeSpec.Http;
8+
using TypeSpec.Rest;
9+
using TypeSpec.Versioning;
10+
using Azure.Core;
11+
using Azure.ResourceManager;
12+
13+
/** Microsoft.Batman Resource Provider management API. */
14+
@armProviderNamespace
15+
@service(#{ title: "Batman" })
16+
@versioned(Microsoft.Batman.Versions)
17+
namespace Microsoft.Batman;
18+
19+
/** The available API versions. */
20+
enum Versions {
21+
/** 2024-01-01-preview version */
22+
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
23+
v2024_01_01_preview: "2024-01-01-preview",
24+
}
25+
26+
interface Operations extends Azure.ResourceManager.Operations {}
27+
28+
/** A Batman resource */
29+
model BatmanResource is TrackedResource<BatmanProperties> {
30+
...ResourceNameParameter<BatmanResource>;
31+
}
32+
33+
/** Batman resource properties */
34+
model BatmanProperties {
35+
/** Display name */
36+
displayName?: string;
37+
38+
/** The provisioning state */
39+
@visibility(Lifecycle.Read)
40+
provisioningState?: ProvisioningState;
41+
}
42+
43+
/** The resource provisioning state. */
44+
@lroStatus
45+
union ProvisioningState {
46+
ResourceProvisioningState,
47+
48+
/** The resource is being provisioned */
49+
Provisioning: "Provisioning",
50+
51+
string,
52+
}
53+
54+
@armResourceOperations
55+
interface BatmanResources {
56+
get is ArmResourceRead<BatmanResource>;
57+
createOrUpdate is ArmResourceCreateOrReplaceAsync<BatmanResource>;
58+
delete is ArmResourceDeleteWithoutOkAsync<BatmanResource>;
59+
listByResourceGroup is ArmResourceListByParent<BatmanResource>;
60+
listBySubscription is ArmListBySubscription<BatmanResource>;
61+
}

0 commit comments

Comments
 (0)