This is the AutoRest configuration file for Azure EventGrid.
To build the SDK for Azure EventGrid, simply Install AutoRest and in this folder, run:
autorest
To see additional help and options, run:
autorest --help
These are the global settings for the Azure EventGrid API.
openapi-type: arm
tag: package-2020-10-preview
These settings apply only when --tag=package-2020-10-preview
is specified on the command line.
input-file:
- Microsoft.EventGrid/preview/2020-10-15-preview/EventGrid.json
These settings apply only when --tag=package-2020-06
is specified on the command line.
input-file:
- Microsoft.EventGrid/stable/2020-06-01/EventGrid.json
These settings apply only when --tag=package-2020-04-preview
is specified on the command line.
input-file:
- Microsoft.EventGrid/preview/2020-04-01-preview/EventGrid.json
These settings apply only when --tag=package-2020-01-preview
is specified on the command line.
input-file:
- Microsoft.EventGrid/preview/2020-01-01-preview/EventGrid.json
These settings apply only when --tag=package-2019-06
is specified on the command line.
input-file:
- Microsoft.EventGrid/stable/2019-06-01/EventGrid.json
These settings apply only when --tag=package-2019-02-preview
is specified on the command line.
input-file:
- Microsoft.EventGrid/preview/2019-02-01-preview/EventGrid.json
These settings apply only when --tag=package-2019-01
is specified on the command line.
input-file:
- Microsoft.EventGrid/stable/2019-01-01/EventGrid.json
directive:
- suppress: TrackedResourcePatchOperation
from: EventGrid.json
reason: PATCH operation already exists in the json file but this is known issue in the ARM validation.
These settings apply only when --tag=package-2018-09-preview
is specified on the command line.
input-file:
- Microsoft.EventGrid/preview/2018-09-15-preview/EventGrid.json
directive:
- suppress: TrackedResourcePatchOperation
from: EventGrid.json
reason: PATCH operation already exists in the json file but this is known issue in the ARM validation.
- suppress: ONE_OF_MULTIPLE
from: EventGrid.json
where: $.definitions.EventSubscriptionProperties.properties.destination
reason: |-
This is a false positive. We have multiple EventSubscriptionDestination types (EventHubEventSubscriptionDestination, HybridConnectionEventSubscriptionDestination etc.) and each of them has corresponding property classes e.g. EventHubEventSubscriptionDestinationProperties and HybridConnectionEventSubscriptionDestinationProperties have both a property called resourceId which is why the validation appears to be flagging this.
However, the discriminator value (endpointType) is separate for each of these destinations, hence based on the discriminator it will get deserialized into the appropriate type.
These settings apply only when --tag=package-2018-05-preview
is specified on the command line.
input-file:
- Microsoft.EventGrid/preview/2018-05-01-preview/EventGrid.json
These settings apply only when --tag=package-2018-01
is specified on the command line.
input-file:
- Microsoft.EventGrid/stable/2018-01-01/EventGrid.json
These settings apply only when --tag=package-2017-09-preview
is specified on the command line.
input-file:
- Microsoft.EventGrid/preview/2017-09-15-preview/EventGrid.json
These settings apply only when --tag=package-2017-06-preview
is specified on the command line.
input-file:
- Microsoft.EventGrid/preview/2017-06-15-preview/EventGrid.json
This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself.
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-python
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_event_grid']
- repo: azure-resource-manager-schemas
after_scripts:
- node sdkauto_afterscript.js eventgrid/resource-manager
These settings apply only when --csharp
is specified on the command line.
Please also specify --csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>
.
csharp:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.EventGrid
payload-flattening-threshold: 1
output-folder: $(csharp-sdks-folder)/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated
clear-output-folder: true
See configuration in readme.go.md
See configuration in readme.java.md
See configuration in readme.azureresourceschema.md