Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR eventgrid/resource-manager] Event Grid 2019-01-01 API Version: Swagger and related test examples #4445

Merged
merged 2 commits into from
Dec 17, 2018
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
8 changes: 4 additions & 4 deletions lib/services/eventgridManagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ npm install azure-arm-eventgrid

## How to use

### Authentication, client creation and get domains as an example.
### Authentication, client creation and get eventSubscriptions as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const EventGridManagementClient = require("azure-arm-eventgrid");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new EventGridManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const domainName = "testdomainName";
return client.domains.get(resourceGroupName, domainName).then((result) => {
const scope = "testscope";
const eventSubscriptionName = "testeventSubscriptionName";
return client.eventSubscriptions.get(scope, eventSubscriptionName).then((result) => {
console.log("The result is:");
console.log(result);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ export default class EventGridManagementClient extends AzureServiceClient {
generateClientRequestId: boolean;

// Operation groups
domains: operations.Domains;
domainTopics: operations.DomainTopics;
eventSubscriptions: operations.EventSubscriptions;
operations: operations.Operations;
topics: operations.Topics;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class EventGridManagementClient extends ServiceClient {

super(credentials, options);

this.apiVersion = '2018-09-15-preview';
this.apiVersion = '2019-01-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
Expand All @@ -72,8 +72,6 @@ class EventGridManagementClient extends ServiceClient {
if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
this.generateClientRequestId = options.generateClientRequestId;
}
this.domains = new operations.Domains(this);
this.domainTopics = new operations.DomainTopics(this);
this.eventSubscriptions = new operations.EventSubscriptions(this);
this.operations = new operations.Operations(this);
this.topics = new operations.Topics(this);
Expand Down
20 changes: 0 additions & 20 deletions lib/services/eventgridManagement/lib/models/eventSubscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@ class EventSubscription extends models['Resource'] {
* @member {boolean} [filter.isSubjectCaseSensitive] Specifies if the
* SubjectBeginsWith and SubjectEndsWith properties of the filter
* should be compared in a case sensitive manner.
* @member {array} [filter.advancedFilters] A list of advanced filters.
* @member {array} [labels] List of user defined labels.
* @member {date} [expirationTimeUtc] Expiration time of the event
* subscription.
* @member {string} [eventDeliverySchema] The event delivery schema for the
* event subscription. Possible values include: 'EventGridSchema',
* 'CloudEventV01Schema', 'CustomInputSchema'
* @member {object} [retryPolicy] The retry policy for events. This can be
* used to configure maximum number of delivery attempts and time to live for
* events.
Expand Down Expand Up @@ -155,20 +149,6 @@ class EventSubscription extends models['Resource'] {
}
}
},
expirationTimeUtc: {
required: false,
serializedName: 'properties.expirationTimeUtc',
type: {
name: 'DateTime'
}
},
eventDeliverySchema: {
required: false,
serializedName: 'properties.eventDeliverySchema',
type: {
name: 'String'
}
},
retryPolicy: {
required: false,
serializedName: 'properties.retryPolicy',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class EventSubscriptionFilter {
* @member {boolean} [isSubjectCaseSensitive] Specifies if the
* SubjectBeginsWith and SubjectEndsWith properties of the filter
* should be compared in a case sensitive manner. Default value: false .
* @member {array} [advancedFilters] A list of advanced filters.
*/
constructor() {
}
Expand Down Expand Up @@ -85,26 +84,6 @@ class EventSubscriptionFilter {
type: {
name: 'Boolean'
}
},
advancedFilters: {
required: false,
serializedName: 'advancedFilters',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AdvancedFilterElementType',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'operatorType',
clientName: 'operatorType'
},
uberParent: 'AdvancedFilter',
className: 'AdvancedFilter'
}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,7 @@ class EventSubscriptionUpdateParameters {
* @member {boolean} [filter.isSubjectCaseSensitive] Specifies if the
* SubjectBeginsWith and SubjectEndsWith properties of the filter
* should be compared in a case sensitive manner.
* @member {array} [filter.advancedFilters] A list of advanced filters.
* @member {array} [labels] List of user defined labels.
* @member {date} [expirationTimeUtc] Information about the expiration time
* for the event subscription.
* @member {string} [eventDeliverySchema] The event delivery schema for the
* event subscription. Possible values include: 'EventGridSchema',
* 'CloudEventV01Schema', 'CustomInputSchema'
* @member {object} [retryPolicy] The retry policy for events. This can be
* used to configure maximum number of delivery attempts and time to live for
* events.
Expand Down Expand Up @@ -107,20 +101,6 @@ class EventSubscriptionUpdateParameters {
}
}
},
expirationTimeUtc: {
required: false,
serializedName: 'expirationTimeUtc',
type: {
name: 'DateTime'
}
},
eventDeliverySchema: {
required: false,
serializedName: 'eventDeliverySchema',
type: {
name: 'String'
}
},
retryPolicy: {
required: false,
serializedName: 'retryPolicy',
Expand Down
Loading