Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions specification/authorization/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,26 @@ java:
regenerate-manager: true
generate-interface: true
```

### Tag: profile-hybrid-2020-09-01 and java

These settings apply only when `--tag=profile-hybrid-2020-09-01 --java` is specified on the command line.
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.

``` yaml $(tag) == 'profile-hybrid-2020-09-01' && $(java)
input-file:
- Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json
- Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json
- Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json
- Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json
- Microsoft.Authorization/stable/2015-07-01/authorization-ClassicAdminCalls.json
directive:
- from: authorization-RoleAssignmentsCalls.json
where: $.definitions.RoleAssignment.properties.properties
transform: >
$['x-ms-client-flatten'] = true;
- from: authorization-RoleAssignmentsCalls.json
where: $.definitions.RoleAssignmentCreateParameters.properties.properties
transform: >
$['x-ms-client-flatten'] = true;
```
16 changes: 15 additions & 1 deletion specification/compute/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,18 @@ Creating this tag to pick proper resources from the hybrid profile.
input-file:
- Microsoft.Compute/stable/2017-12-01/compute.json
- Microsoft.Compute/stable/2017-03-30/disk.json
```
```

### Tag: profile-hybrid-2020-09-01 and java

These settings apply only when `--tag=profile-hybrid-2020-09-01 --java` is specified on the command line.
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.

``` yaml $(tag) == 'profile-hybrid-2020-09-01' && $(java)
input-file:
- Microsoft.Compute/stable/2020-06-01/compute.json
- Microsoft.Compute/stable/2020-06-01/runCommands.json
- Microsoft.Compute/stable/2019-04-01/skus.json
- Microsoft.Compute/stable/2019-07-01/disk.json
- Microsoft.Compute/stable/2019-12-01/gallery.json
```
18 changes: 17 additions & 1 deletion specification/containerservice/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
These settings apply only when `--java` is specified on the command line.
## Java

These settings apply only when `--java` is specified on the command line and `--tag=profile-hybrid-2020-09-01` is not specified.
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.

``` yaml $(java)
Expand All @@ -10,7 +12,11 @@ payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-containerservice
title: ContainerServiceManagementClient
description: "Container Service Client"
```

These settings also apply when `--tag=profile-hybrid-2020-09-01` is not specified.

``` yaml $(java) && $(tag) != 'profile-hybrid-2020-09-01'
input-file:
- Microsoft.ContainerService/stable/2019-04-30/openShiftManagedClusters.json
- Microsoft.ContainerService/stable/2019-08-01/location.json
Expand Down Expand Up @@ -325,3 +331,13 @@ java:
regenerate-manager: true
generate-interface: true
```

### Tag: profile-hybrid-2020-09-01 and java

These settings apply only when `--tag=profile-hybrid-2020-09-01 --java` is specified on the command line.
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.

``` yaml $(tag) == 'profile-hybrid-2020-09-01' && $(java)
input-file:
- Microsoft.ContainerService/stable/2019-04-30/openShiftManagedClusters.json
```
12 changes: 12 additions & 0 deletions specification/containerservice/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,18 @@ input-file:
- Microsoft.ContainerService/stable/2016-03-30/containerService.json
```

### Tag: profile-hybrid-2020-09-01

These settings apply only when `--tag=profile-hybrid-2020-09-01` is specified on the command line.
Creating this tag to pick proper resources from the hybrid profile.

``` yaml $(tag) == 'profile-hybrid-2020-09-01'
input-file:
- Microsoft.ContainerService/stable/2020-11-01/managedClusters.json
- Microsoft.ContainerService/stable/2019-04-01/location.json
- Microsoft.ContainerService/stable/2017-07-01/containerService.json
```

---

# Code Generation
Expand Down
20 changes: 20 additions & 0 deletions specification/eventhub/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,23 @@ java:
regenerate-manager: true
generate-interface: true
```

### Tag: profile-hybrid-2020-09-01 and java

These settings apply only when `--tag=profile-hybrid-2020-09-01 --java` is specified on the command line.
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.

``` yaml $(tag) == 'profile-hybrid-2020-09-01' && $(java)
input-file:
- Microsoft.EventHub/preview/2018-01-01-preview/AvailableClusterRegions-preview.json
- Microsoft.EventHub/preview/2018-01-01-preview/Clusters-preview.json
- Microsoft.EventHub/preview/2018-01-01-preview/namespaces-preview.json
- Microsoft.EventHub/stable/2017-04-01/AuthorizationRules.json
- Microsoft.EventHub/stable/2017-04-01/CheckNameAvailability.json
- Microsoft.EventHub/stable/2017-04-01/consumergroups.json
- Microsoft.EventHub/stable/2017-04-01/operations.json
- Microsoft.EventHub/stable/2017-04-01/eventhubs.json
- Microsoft.EventHub/stable/2017-04-01/sku.json
- Microsoft.EventHub/stable/2017-04-01/disasterRecoveryConfigs.json
- Microsoft.EventHub/stable/2017-04-01/networkRuleSets.json
```
51 changes: 51 additions & 0 deletions specification/network/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,54 @@ input-file:
- Microsoft.Network/stable/2017-10-01/routeTable.json
- Microsoft.Network/stable/2017-10-01/virtualNetwork.json
```

### Tag: profile-hybrid-2020-09-01 and java

These settings apply only when `--tag=profile-hybrid-2020-09-01 --java` is specified on the command line.
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.

``` yaml $(tag) == 'profile-hybrid-2020-09-01' && $(java)
input-file:
- Microsoft.Network/stable/2018-11-01/applicationGateway.json
- Microsoft.Network/stable/2018-11-01/applicationSecurityGroup.json
- Microsoft.Network/stable/2018-11-01/availableDelegations.json
- Microsoft.Network/stable/2018-11-01/azureFirewall.json
- Microsoft.Network/stable/2018-11-01/azureFirewallFqdnTag.json
- Microsoft.Network/stable/2018-11-01/checkDnsAvailability.json
- Microsoft.Network/stable/2018-11-01/ddosCustomPolicy.json
- Microsoft.Network/stable/2018-11-01/ddosProtectionPlan.json
- Microsoft.Network/stable/2018-11-01/endpointService.json
- Microsoft.Network/stable/2018-11-01/expressRouteCircuit.json
- Microsoft.Network/stable/2018-11-01/expressRouteCrossConnection.json
- Microsoft.Network/stable/2018-11-01/expressRouteGateway.json
- Microsoft.Network/stable/2018-11-01/expressRoutePort.json
- Microsoft.Network/stable/2018-11-01/interfaceEndpoint.json
- Microsoft.Network/stable/2018-11-01/loadBalancer.json
- Microsoft.Network/stable/2018-11-01/network.json
- Microsoft.Network/stable/2018-11-01/networkInterface.json
- Microsoft.Network/stable/2018-11-01/networkProfile.json
- Microsoft.Network/stable/2018-11-01/networkSecurityGroup.json
- Microsoft.Network/stable/2018-11-01/networkWatcher.json
- Microsoft.Network/stable/2018-11-01/operation.json
- Microsoft.Network/stable/2018-11-01/publicIpAddress.json
- Microsoft.Network/stable/2018-11-01/publicIpPrefix.json
- Microsoft.Network/stable/2018-11-01/routeFilter.json
- Microsoft.Network/stable/2018-11-01/routeTable.json
- Microsoft.Network/stable/2018-11-01/serviceCommunity.json
- Microsoft.Network/stable/2018-11-01/serviceEndpointPolicy.json
- Microsoft.Network/stable/2018-11-01/usage.json
- Microsoft.Network/stable/2018-11-01/virtualNetwork.json
- Microsoft.Network/stable/2018-11-01/virtualNetworkGateway.json
- Microsoft.Network/stable/2018-11-01/virtualNetworkTap.json
- Microsoft.Network/stable/2018-11-01/virtualWan.json
- Microsoft.Network/stable/2018-11-01/vmssNetworkInterface.json
- Microsoft.Network/stable/2018-11-01/vmssPublicIpAddress.json
directive:
- from: loadBalancer.json
where: $.definitions.OutboundRulePropertiesFormat.properties.protocol
transform: >
$['x-ms-enum'] = {
name: 'LoadBalancerOutboundRuleProtocol',
modelAsString: true,
};
```
34 changes: 33 additions & 1 deletion specification/storage/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,36 @@ Creating this tag to pick proper resources from the hybrid profile.
``` yaml $(tag) == 'profile-hybrid-2019-03-01'
input-file:
- Microsoft.Storage/stable/2017-10-01/storage.json
```
```

### Tag: profile-hybrid-2020-09-01 and java

These settings apply only when `--tag=profile-hybrid-2020-09-01 --java` is specified on the command line.
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.

``` yaml $(tag) == 'profile-hybrid-2020-09-01' && $(java)
input-file:
- Microsoft.Storage/stable/2019-06-01/storage.json
- Microsoft.Storage/stable/2019-06-01/blob.json
- Microsoft.Storage/stable/2019-06-01/file.json
- Microsoft.Storage/stable/2019-06-01/queue.json
- Microsoft.Storage/stable/2019-06-01/table.json

directive:
- from: storage.json
where: $.definitions.Identity.properties.type
transform: >
$['x-ms-enum'].modelAsString = true;

- suppress: R3018
reason: Existing boolean properties
approved-by: "@fearthecowboy"

- where:
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold"].post.operationId
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold"].post.operationId
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey"].post.operationId
suppress: R1003
reason: APIs return array of values, is not actually a 'list' operation
approved-by: "@fearthecowboy"
```
30 changes: 30 additions & 0 deletions specification/web/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,33 @@ java:
regenerate-manager: true
generate-interface: true
```

### Tag: profile-hybrid-2020-09-01 and java

These settings apply only when `--tag=profile-hybrid-2020-09-01 --java` is specified on the command line.
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.

``` yaml $(tag) == 'profile-hybrid-2020-09-01' && $(java)
input-file:
- Microsoft.CertificateRegistration/stable/2018-02-01/AppServiceCertificateOrders.json
- Microsoft.CertificateRegistration/stable/2018-02-01/CertificateRegistrationProvider.json
- Microsoft.DomainRegistration/stable/2018-02-01/Domains.json
- Microsoft.DomainRegistration/stable/2018-02-01/TopLevelDomains.json
- Microsoft.DomainRegistration/stable/2018-02-01/DomainRegistrationProvider.json
- Microsoft.Web/stable/2018-02-01/Certificates.json
- Microsoft.Web/stable/2018-02-01/CommonDefinitions.json
- Microsoft.Web/stable/2018-02-01/DeletedWebApps.json
- Microsoft.Web/stable/2018-02-01/Diagnostics.json
- Microsoft.Web/stable/2018-02-01/Provider.json
- Microsoft.Web/stable/2018-02-01/Recommendations.json
- Microsoft.Web/stable/2018-02-01/ResourceProvider.json
- Microsoft.Web/stable/2018-02-01/WebApps.json
- Microsoft.Web/stable/2018-02-01/AppServiceEnvironments.json
- Microsoft.Web/stable/2018-02-01/AppServicePlans.json
- Microsoft.Web/stable/2018-02-01/ResourceHealthMetadata.json
directive:
- from: CommonDefinitions.json
where: $.definitions.Identifier.properties.properties.properties.id
transform: >
$['x-ms-client-name'] = "value";
```