-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Expand file tree
/
Copy pathCodeSigningAccount.tsp
More file actions
63 lines (53 loc) · 2.04 KB
/
Copy pathCodeSigningAccount.tsp
File metadata and controls
63 lines (53 loc) · 2.04 KB
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
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "@typespec/openapi";
import "@typespec/rest";
import "./models.tsp";
using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
namespace Microsoft.CodeSigning;
@doc("Artifact signing account resource.")
model CodeSigningAccount is TrackedResource<CodeSigningAccountProperties> {
@doc("Artifact Signing account name.")
@pattern("^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")
@path
@key("accountName")
@segment("codeSigningAccounts")
name: string;
}
@armResourceOperations
interface CodeSigningAccounts {
@doc("Get an artifact Signing Account.")
get is ArmResourceRead<CodeSigningAccount>;
#suppress "@azure-tools/typespec-azure-core/invalid-final-state" "MUST CHANGE ON NEXT UPDATE"
@doc("Create an artifact Signing Account.")
@Azure.Core.useFinalStateVia("azure-async-operation")
create is ArmResourceCreateOrReplaceAsync<
CodeSigningAccount,
LroHeaders = Azure.Core.Foundations.RetryAfterHeader
>;
@doc("Update an artifact signing account.")
@patch(#{ implicitOptionality: false })
update is ArmCustomPatchAsync<CodeSigningAccount, CodeSigningAccountPatch>;
@doc("Delete an artifact signing account.")
delete is ArmResourceDeleteWithoutOkAsync<CodeSigningAccount>;
@doc("Lists artifact signing accounts within a resource group.")
listByResourceGroup is ArmResourceListByParent<CodeSigningAccount>;
@doc("Lists artifact signing accounts within a subscription.")
listBySubscription is ArmListBySubscription<CodeSigningAccount>;
@doc("Checks if the artifact signing account name is valid and is not already in use.")
checkNameAvailability is checkGlobalNameAvailability<
CheckNameAvailability,
CheckNameAvailabilityResult
>;
}
@@doc(
CodeSigningAccounts.create::parameters.resource,
"Parameters to create the artifact signing account"
);
@@doc(
CodeSigningAccounts.update::parameters.properties,
"Parameters supplied to update the artifact signing account"
);