Skip to content

Commit 15bffa2

Browse files
recoveryservicesbackup, java, hide auth headers (#29218)
1 parent 53af822 commit 15bffa2

File tree

1 file changed

+36
-84
lines changed

1 file changed

+36
-84
lines changed

specification/recoveryservicesbackup/resource-manager/readme.java.md

Lines changed: 36 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ These settings apply only when `--java` is specified on the command line.
44
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.
55

66
``` yaml $(java)
7-
azure-arm: true
8-
fluent: true
9-
namespace: com.microsoft.azure.management.recoveryservicesbackup
10-
license-header: MICROSOFT_MIT_NO_CODEGEN
11-
payload-flattening-threshold: 1
12-
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-recoveryservicesbackup
137
directive:
148
- from: bms.json
159
where: "$.definitions.AzureVmWorkloadSAPHanaHSRProtectableItem"
@@ -23,82 +17,40 @@ directive:
2317
where: "$.definitions.PrivateLinkServiceConnectionState.properties.actionsRequired"
2418
transform: >
2519
$["x-ms-client-name"] = "actionRequired"
26-
```
27-
28-
### Java multi-api
29-
30-
``` yaml $(java) && $(multiapi)
31-
batch:
32-
- tag: package-2021-01
33-
- tag: package-2020-12
34-
- tag: package-2016-08
35-
- tag: package-2020-02
36-
directive:
37-
- rename-operation:
38-
from: Operations_List
39-
to: Operation_List
40-
```
41-
### Tag: package-2021-01 and java
42-
43-
These settings apply only when `--tag=package-2021-01 --java` is specified on the command line.
44-
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
45-
46-
``` yaml $(tag) == 'package-2021-01' && $(java) && $(multiapi)
47-
java:
48-
namespace: com.microsoft.azure.management.recoveryservices.backup.v2021_01_01
49-
output-folder: $(azure-libraries-for-java-folder)/sdk/recoveryservices.backup/mgmt-v2021_01_01
50-
regenerate-manager: true
51-
generate-interface: true
52-
```
53-
54-
### Tag: package-2020-12 and java
55-
56-
These settings apply only when `--tag=package-2020-12 --java` is specified on the command line.
57-
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
58-
59-
``` yaml $(tag) == 'package-2020-12' && $(java) && $(multiapi)
60-
java:
61-
namespace: com.microsoft.azure.management.recoveryservices.backup.v2020_12_01
62-
output-folder: $(azure-libraries-for-java-folder)/sdk/recoveryservices.backup/mgmt-v2020_12_01
63-
regenerate-manager: true
64-
generate-interface: true
65-
```
66-
67-
### Tag: package-2020-02 and java
68-
69-
These settings apply only when `--tag=package-2020-02 --java` is specified on the command line.
70-
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
71-
72-
``` yaml $(tag) == 'package-2020-02' && $(java) && $(multiapi)
73-
java:
74-
namespace: com.microsoft.azure.management.recoveryservices.backup.v2020_02_02
75-
output-folder: $(azure-libraries-for-java-folder)/sdk/recoveryservices.backup/mgmt-v2020_02_02
76-
regenerate-manager: true
77-
generate-interface: true
78-
```
79-
80-
### Tag: package-2016-08 and java
81-
82-
These settings apply only when `--tag=package-2016-08 --java` is specified on the command line.
83-
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
84-
85-
``` yaml $(tag) == 'package-2016-08' && $(java) && $(multiapi)
86-
java:
87-
namespace: com.microsoft.azure.management.recoveryservices.backup.v2016_08_10
88-
output-folder: $(azure-libraries-for-java-folder)/sdk/recoveryservices.backup/mgmt-v2016_08_10
89-
regenerate-manager: true
90-
generate-interface: true
91-
```
92-
93-
### Tag: package-2016-06 and java
94-
95-
These settings apply only when `--tag=package-2016-06 --java` is specified on the command line.
96-
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
97-
98-
``` yaml $(tag) == 'package-2016-06' && $(java) && $(multiapi)
99-
java:
100-
namespace: com.microsoft.azure.management.recoveryservices.backup.v2016_06_01
101-
output-folder: $(azure-libraries-for-java-folder)/sdk/recoveryservices.backup/mgmt-v2016_06_01
102-
regenerate-manager: true
103-
generate-interface: true
20+
- from: bms.json
21+
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig"].patch.parameters
22+
transform: >
23+
$.splice(5, 1);
24+
return $;
25+
reason: hide x-ms-authorization-auxiliary header
26+
- from: bms.json
27+
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig"].put.parameters
28+
transform: >
29+
$.splice(5, 1);
30+
return $;
31+
reason: hide x-ms-authorization-auxiliary header
32+
- from: bms.json
33+
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}"].put.parameters
34+
transform: >
35+
$.splice(8, 1);
36+
return $;
37+
reason: hide x-ms-authorization-auxiliary header
38+
- from: bms.json
39+
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/restore"].post.parameters
40+
transform: >
41+
$.splice(9, 1);
42+
return $;
43+
reason: hide x-ms-authorization-auxiliary header
44+
- from: bms.json
45+
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}"].put.parameters
46+
transform: >
47+
$.splice(6, 1);
48+
return $;
49+
reason: hide x-ms-authorization-auxiliary header
50+
- from: bms.json
51+
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupSecurityPIN"].post.parameters
52+
transform: >
53+
$.splice(5, 1);
54+
return $;
55+
reason: hide x-ms-authorization-auxiliary header
10456
```

0 commit comments

Comments
 (0)