Skip to content

Commit

Permalink
Generated from ccccdf9a10b178c5c3b1e17b96c49916e1d7e9ff
Browse files Browse the repository at this point in the history
Merge pull request #1 from avranju/update-cg-props

Update consumer group properties PUT schema
  • Loading branch information
SDK Automation committed Jul 30, 2020
1 parent c75ff75 commit 5eb4206
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 19 deletions.
2 changes: 1 addition & 1 deletion sdk/iothub/arm-iothub/src/iotHubClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class IotHubClientContext extends msRestAzure.AzureServiceClient {

super(credentials, options);

this.apiVersion = '2020-04-01';
this.apiVersion = '2020-06-15';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
1 change: 0 additions & 1 deletion sdk/iothub/arm-iothub/src/models/certificatesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

export {
BaseResource,
CertificateBodyDescription,
CertificateDescription,
CertificateListDescription,
CertificateProperties,
Expand Down
29 changes: 25 additions & 4 deletions sdk/iothub/arm-iothub/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,23 @@ export interface EventHubConsumerGroupInfo extends BaseResource {
readonly etag?: string;
}

/**
* The EventHub consumer group name.
*/
export interface EventHubConsumerGroupName {
/**
* EventHub consumer group name
*/
name?: string;
}

/**
* The EventHub consumer group.
*/
export interface EventHubConsumerGroupBodyDescription {
properties?: EventHubConsumerGroupName;
}

/**
* Input values.
*/
Expand Down Expand Up @@ -1561,6 +1578,13 @@ export interface IotHubResourceUpdateOptionalParams extends msRest.RequestOption
tags?: { [propertyName: string]: string };
}

/**
* Optional Parameters.
*/
export interface IotHubResourceCreateEventHubConsumerGroupOptionalParams extends msRest.RequestOptionsBase {
properties?: EventHubConsumerGroupName;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -1591,10 +1615,7 @@ export interface CertificatesCreateOrUpdateOptionalParams extends msRest.Request
* update an existing certificate.
*/
ifMatch?: string;
/**
* base-64 representation of the X509 leaf certificate .cer file or just .pem file content.
*/
certificate?: string;
properties?: CertificateProperties;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions sdk/iothub/arm-iothub/src/models/iotHubResourceMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export {
EndpointHealthDataListResult,
EnrichmentProperties,
ErrorDetails,
EventHubConsumerGroupBodyDescription,
EventHubConsumerGroupInfo,
EventHubConsumerGroupName,
EventHubConsumerGroupsListResult,
EventHubProperties,
ExportDevicesRequest,
Expand Down
33 changes: 33 additions & 0 deletions sdk/iothub/arm-iothub/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2034,6 +2034,39 @@ export const EventHubConsumerGroupInfo: msRest.CompositeMapper = {
}
};

export const EventHubConsumerGroupName: msRest.CompositeMapper = {
serializedName: "EventHubConsumerGroupName",
type: {
name: "Composite",
className: "EventHubConsumerGroupName",
modelProperties: {
name: {
serializedName: "name",
type: {
name: "String"
}
}
}
}
};

export const EventHubConsumerGroupBodyDescription: msRest.CompositeMapper = {
serializedName: "EventHubConsumerGroupBodyDescription",
type: {
name: "Composite",
className: "EventHubConsumerGroupBodyDescription",
modelProperties: {
properties: {
serializedName: "properties",
type: {
name: "Composite",
className: "EventHubConsumerGroupName"
}
}
}
}
};

export const OperationInputs: msRest.CompositeMapper = {
serializedName: "OperationInputs",
type: {
Expand Down
6 changes: 3 additions & 3 deletions sdk/iothub/arm-iothub/src/operations/certificates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,13 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
],
requestBody: {
parameterPath: {
certificate: [
properties: [
"options",
"certificate"
"properties"
]
},
mapper: {
...Mappers.CertificateBodyDescription,
...Mappers.CertificateDescription,
required: true
}
},
Expand Down
27 changes: 17 additions & 10 deletions sdk/iothub/arm-iothub/src/operations/iotHubResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,35 +309,31 @@ export class IotHubResource {
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub.
* @param name The name of the consumer group to add.
* @param [options] The optional parameters
* @returns Promise<Models.IotHubResourceCreateEventHubConsumerGroupResponse>
*/
createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceCreateEventHubConsumerGroupResponse>;
createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, options?: Models.IotHubResourceCreateEventHubConsumerGroupOptionalParams): Promise<Models.IotHubResourceCreateEventHubConsumerGroupResponse>;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub.
* @param name The name of the consumer group to add.
* @param callback The callback
*/
createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, callback: msRest.ServiceCallback<Models.EventHubConsumerGroupInfo>): void;
createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, callback: msRest.ServiceCallback<Models.EventHubConsumerGroupInfo>): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub.
* @param name The name of the consumer group to add.
* @param options The optional parameters
* @param callback The callback
*/
createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.EventHubConsumerGroupInfo>): void;
createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.EventHubConsumerGroupInfo>, callback?: msRest.ServiceCallback<Models.EventHubConsumerGroupInfo>): Promise<Models.IotHubResourceCreateEventHubConsumerGroupResponse> {
createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, options: Models.IotHubResourceCreateEventHubConsumerGroupOptionalParams, callback: msRest.ServiceCallback<Models.EventHubConsumerGroupInfo>): void;
createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, options?: Models.IotHubResourceCreateEventHubConsumerGroupOptionalParams | msRest.ServiceCallback<Models.EventHubConsumerGroupInfo>, callback?: msRest.ServiceCallback<Models.EventHubConsumerGroupInfo>): Promise<Models.IotHubResourceCreateEventHubConsumerGroupResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
resourceName,
eventHubEndpointName,
name,
options
},
createEventHubConsumerGroupOperationSpec,
Expand Down Expand Up @@ -1268,15 +1264,26 @@ const createEventHubConsumerGroupOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.resourceName,
Parameters.eventHubEndpointName,
Parameters.name
Parameters.eventHubEndpointName
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
requestBody: {
parameterPath: {
properties: [
"options",
"properties"
]
},
mapper: {
...Mappers.EventHubConsumerGroupBodyDescription,
required: true
}
},
responses: {
200: {
bodyMapper: Mappers.EventHubConsumerGroupInfo
Expand Down

0 comments on commit 5eb4206

Please sign in to comment.