Skip to content

Commit 5c11402

Browse files
author
Vikeshi Tiwari
committed
Add minimal Microsoft.Barbie RP (no lease)
1 parent 1d9ed6b commit 5c11402

6 files changed

Lines changed: 517 additions & 0 deletions

File tree

specification/barbie/cspell.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
words:
2+
- barbie
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.Barbie Resource Provider management API. */
14+
@armProviderNamespace
15+
@service(#{ title: "Barbie" })
16+
@versioned(Microsoft.Barbie.Versions)
17+
namespace Microsoft.Barbie;
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 Barbie resource */
29+
model BarbieResource is TrackedResource<BarbieProperties> {
30+
...ResourceNameParameter<BarbieResource>;
31+
}
32+
33+
/** Barbie resource properties */
34+
model BarbieProperties {
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 BarbieResources {
56+
get is ArmResourceRead<BarbieResource>;
57+
createOrUpdate is ArmResourceCreateOrReplaceAsync<BarbieResource>;
58+
delete is ArmResourceDeleteWithoutOkAsync<BarbieResource>;
59+
listByResourceGroup is ArmResourceListByParent<BarbieResource>;
60+
listBySubscription is ArmListBySubscription<BarbieResource>;
61+
}

0 commit comments

Comments
 (0)