-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cadl
79 lines (61 loc) · 1.58 KB
/
main.cadl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import "@cadl-lang/rest";
import "@azure-tools/cadl-rpaas";
import "@azure-tools/cadl-autorest";
@armNamespace
@serviceTitle("PlayFab2")
@serviceVersion("2021-07-15-preview")
@produces("application/json")
@consumes("application/json")
namespace Microsoft.PlayFab2;
using Azure.ARM;
enum ProvisioningState {
NotSpecified,
Accepted,
Creating,
Deleting,
Canceled,
Failed,
Succeeded
}
@withVisibility("read")
model Resource{
@doc("The provisioning state.")
@visibility("read")
provisioningState ?: ProvisioningState;
@doc("Id of publisher object in PlayFab backend associated to the PlayerAccountPool resource.")
@visibility("read")
playFabPublisherId ?: string;
}
model PlayerAccountPoolProperties{
...Resource;
}
@doc("Name of the Player Account Pool Parameter.")
model PlayerAccountPoolNameParameter {
@doc("Name of the Player Account Pool Parameter.")
@path playerAccountPoolName: string;
}
model TitleProperties {
@doc("Id of title object in PlayFab backend.")
@visibility("read")
playFabTitleId ?: string;
...Resource;
}
@doc("Name of the Title Parameter.")
model TitleNameParameter {
@doc("Name of the Title Parameter.")
@path titleName: string;
}
@doc("Player Account Pool.")
@armResource({
path: "playerAccountPools",
parameterType: PlayerAccountPoolNameParameter,
collectionName: "PlayerAccountPools",
})
model PlayerAccountPool is TrackedResource<PlayerAccountPoolProperties> {};
@doc("Title.")
@armResource({
path: "titles",
parameterType: TitleNameParameter,
collectionName: "Titles",
})
model Title is TrackedResource<TitleProperties> {};