Skip to content

Commit

Permalink
CodeGen from PR 12491 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
add origin and proerties (Azure#12491)
  • Loading branch information
SDKAuto committed Jan 22, 2021
1 parent ace0b79 commit cc983b0
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 9 deletions.
6 changes: 3 additions & 3 deletions sdk/iotcentral/arm-iotcentral/src/iotCentralClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class IotCentralClientContext extends msRestAzure.AzureServiceClient {
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
Expand All @@ -51,10 +51,10 @@ export class IotCentralClientContext extends msRestAzure.AzureServiceClient {
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
Expand Down
10 changes: 10 additions & 0 deletions sdk/iotcentral/arm-iotcentral/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,16 @@ export interface Operation {
* The object that represents the operation.
*/
display?: OperationDisplay;
/**
* The intended executor of the operation.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly origin?: string;
/**
* Additional descriptions for the operation.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly properties?: any;
}

/**
Expand Down
14 changes: 14 additions & 0 deletions sdk/iotcentral/arm-iotcentral/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,20 @@ export const Operation: msRest.CompositeMapper = {
name: "Composite",
className: "OperationDisplay"
}
},
origin: {
readOnly: true,
serializedName: "origin",
type: {
name: "String"
}
},
properties: {
readOnly: true,
serializedName: "properties",
type: {
name: "Object"
}
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions sdk/iotcentral/arm-iotcentral/src/operations/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export class Apps {
const serializer = new msRest.Serializer(Mappers);
const getOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Expand All @@ -422,7 +422,7 @@ const getOperationSpec: msRest.OperationSpec = {

const listBySubscriptionOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTApps",
path: "subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/iotApps",
urlParameters: [
Parameters.subscriptionId
],
Expand All @@ -445,7 +445,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {

const listByResourceGroupOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName
Expand Down Expand Up @@ -552,7 +552,7 @@ const listTemplatesOperationSpec: msRest.OperationSpec = {

const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
httpMethod: "PUT",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Expand Down Expand Up @@ -588,7 +588,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {

const beginUpdateOperationSpec: msRest.OperationSpec = {
httpMethod: "PATCH",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Expand Down Expand Up @@ -621,7 +621,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = {

const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
httpMethod: "DELETE",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Expand Down

0 comments on commit cc983b0

Please sign in to comment.