-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Expand file tree
/
Copy pathRecoveryPointResource.tsp
More file actions
79 lines (72 loc) · 2.26 KB
/
Copy pathRecoveryPointResource.tsp
File metadata and controls
79 lines (72 loc) · 2.26 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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.RecoveryServices;
/**
* Base class for backup copies. Workload-specific backup copies are derived from this class.
*/
model RecoveryPointResource
is Azure.ResourceManager.Legacy.TrackedResourceWithOptionalLocation<RecoveryPoint> {
...ResourceNameParameter<
Resource = RecoveryPointResource,
KeyName = "recoveryPointId",
SegmentName = "recoveryPoints",
NamePattern = ""
>;
/**
* Optional ETag.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility"
eTag?: string;
}
@armResourceOperations
interface RecoveryPointResources {
/**
* Provides the information of the backed up data identified using RecoveryPointID.
*/
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
@operationId("RecoveryPointsCrr_Get")
get is ArmResourceRead<RecoveryPointResource>;
/**
* Lists the backup copies for the backed up item.
*/
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
@operationId("RecoveryPointsCrr_List")
list is ArmResourceListByParent<
RecoveryPointResource,
Parameters = {
/**
* OData filter options.
*/
@query("$filter")
$filter?: string;
},
Response = ArmResponse<RecoveryPointResourceList>
>;
/**
* Returns the Access token for communication between BMS and Protection service
*/
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
@operationId("RecoveryPoints_GetAccessToken")
@action("accessToken")
getAccessToken is ArmResourceActionSync<
RecoveryPointResource,
AADPropertiesResource,
ArmResponse<CrrAccessTokenResource>
>;
}
@@doc(
RecoveryPointResource.name,
"RecoveryPointID represents the backed up data to be fetched."
);
@@doc(RecoveryPointResource.properties, "RecoveryPointResource properties");
@@doc(
RecoveryPointResources.getAccessToken::parameters.body,
"Get Access Token request"
);