Skip to content

Commit

Permalink
EventGrid: Updated README.MD configuration to include the new preview…
Browse files Browse the repository at this point in the history
… API version. (#3830)

* 1) Fix for linter error "Properties of a PATCH request body must not be default-valued. PATCH operation: 'EventSubscriptions_Update' Model Definition: 'EventSubscriptionUpdateParameters' Property: 'eventDeliverySchema'".
2) Updated the default value of EventDeliverySchema to the correct value used by the service.

* Initial version of 2018-09-15-preview API version (clone of 2018-05-01-preview to make it easier to view the diffs).

* Swagger changes for 2018-09-15-preview API version.

* Update README.MD configuration for EventGrid to include the new preview API version.

* Added two new operatorTypes to AdvancedFilter + marked a couple of properties readOnly.
  • Loading branch information
kalyanaj authored and sarangan12 committed Sep 11, 2018
1 parent 4c2be7a commit 01d6f87
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2101,14 +2101,16 @@
"Failed"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "DomainProvisioningState",
"modelAsString": true
}
},
"endpoint": {
"description": "Endpoint for the domain.",
"type": "string"
"type": "string",
"readOnly": true
},
"inputSchema": {
"description": "This determines the format that Event Grid should expect for incoming events published to the domain.",
Expand Down Expand Up @@ -2428,6 +2430,26 @@
},
"x-ms-discriminator-value": "StorageBlob"
},
"NumberNotInAdvancedFilter": {
"description": "NumberNotIn Filter",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AdvancedFilter"
}
],
"properties": {
"values": {
"description": "The set of filter values",
"type": "array",
"items": {
"format": "double",
"type": "number"
}
}
},
"x-ms-discriminator-value": "NumberNotIn"
},
"NumberLessThanAdvancedFilter": {
"description": "NumberLessThan Filter",
"type": "object",
Expand Down Expand Up @@ -2588,6 +2610,25 @@
},
"x-ms-discriminator-value": "StringEndsWith"
},
"StringContainsAdvancedFilter": {
"description": "StringContains Filter",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AdvancedFilter"
}
],
"properties": {
"values": {
"description": "The set of filter values",
"type": "array",
"items": {
"type": "string"
}
}
},
"x-ms-discriminator-value": "StringContains"
},
"AdvancedFilter": {
"description": "Represents an advanced filter that can be used to filter events based on various event envelope/data fields.",
"type": "object",
Expand All @@ -2599,6 +2640,7 @@
"description": "Represents the filter operator",
"enum": [
"NumberIn",
"NumberNotIn",
"NumberLessThan",
"NumberGreaterThan",
"NumberLessThanOrEquals",
Expand All @@ -2607,7 +2649,8 @@
"StringIn",
"StringNotIn",
"StringBeginsWith",
"StringEndsWith"
"StringEndsWith",
"StringContains"
],
"type": "string",
"x-ms-enum": {
Expand Down
36 changes: 35 additions & 1 deletion specification/eventgrid/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@ These are the global settings for the Azure EventGrid API.

``` yaml
openapi-type: arm
tag: package-2018-05-preview
tag: package-2018-09-preview
```
### Tag: package-2018-09-preview
These settings apply only when `--tag=package-2018-09-preview` is specified on the command line.

``` yaml $(tag) == 'package-2018-09-preview'
input-file:
- Microsoft.EventGrid/preview/2018-09-15-preview/EventGrid.json
```


Expand Down Expand Up @@ -149,12 +159,22 @@ go:

``` yaml $(go) && $(multiapi)
batch:
- tag: package-2018-09-preview
- tag: package-2018-05-preview
- tag: package-2018-01
- tag: package-2017-09-preview
- tag: package-2017-06-preview
```

### Tag: package-2018-09-preview and go

These settings apply only when `--tag=package-2018-09-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2018-09-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid
```

### Tag: package-2018-05-preview and go

These settings apply only when `--tag=package-2018-05-preview --go` is specified on the command line.
Expand Down Expand Up @@ -210,10 +230,24 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-eventgrid

``` yaml $(java) && $(multiapi)
batch:
- tag: package-2018-09-preview
- tag: package-2018-05-preview
- tag: package-2018-01
```

### Tag: package-2018-09-preview and java

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

``` yaml $(tag) == 'package-2018-09-preview' && $(java) && $(multiapi)
java:
namespace: com.microsoft.azure.management.eventgrid.v2018_09_15_preview
output-folder: $(azure-libraries-for-java-folder)/eventgrid/resource-manager/v2018_09_15_preview
regenerate-manager: true
generate-interface: true
```

### Tag: package-2018-05-preview and java

These settings apply only when `--tag=package-2018-05-preview --java` is specified on the command line.
Expand Down
12 changes: 12 additions & 0 deletions specification/eventgrid/resource-manager/readme.ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,24 @@ azure-arm: true
``` yaml $(ruby) && $(multiapi)
batch:
- tag: package-2018-09-preview
- tag: package-2018-05-preview
- tag: package-2018-01
- tag: package-2017-09-preview
- tag: package-2017-06-preview
```
### Tag: package-2018-09-preview and ruby
These settings apply only when `--tag=package-2018-09-preview --ruby` is specified on the command line.
Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`.

``` yaml $(tag) == 'package-2018-09-preview' && $(ruby)
namespace: "Azure::EventGrid::Mgmt::V2018_09_15_preview"
output-folder: $(ruby-sdks-folder)/management/azure_mgmt_event_grid/lib
```


### Tag: package-2018-05-preview and ruby

These settings apply only when `--tag=package-2018-05-preview --ruby` is specified on the command line.
Expand Down

0 comments on commit 01d6f87

Please sign in to comment.