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

Commit

Permalink
[AutoPR servicefabric/data-plane] Swagger specification for Service F…
Browse files Browse the repository at this point in the history
…abric runtime version 6.4 (#4204)

* Generated from 6415c5920fc51ac978815e71c12089643a219c49

Swagger specification for Service Fabric runtime version 6.4

* Generated from c69b3d22ae7f74ae4932d3fdce146ff567441664

fix typos specificed -> specified, sucessful -> successful, resturns -> returns, commited -> committed, Double word "maximum", Double word "with"

* Generated from 494e01db96f17beb1d349ab74358274971b26d08

remove invalid character
  • Loading branch information
AutorestCI authored Dec 5, 2018
1 parent f03371a commit c8432a1
Show file tree
Hide file tree
Showing 147 changed files with 38,294 additions and 20,987 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

const models = require('./index');

/**
* Describes the horizontal auto scaling mechanism that adds or removes
* replicas (containers or container groups).
*
* @extends models['AutoScalingMechanism']
*/
class AddRemoveReplicaScalingMechanism extends models['AutoScalingMechanism'] {
/**
* Create a AddRemoveReplicaScalingMechanism.
* @member {number} minCount Minimum number of containers (scale down won't
* be performed below this number).
* @member {number} maxCount Maximum number of containers (scale up won't be
* performed above this number).
* @member {number} scaleIncrement Each time auto scaling is performed, this
* number of containers will be added or removed.
*/
constructor() {
super();
}

/**
* Defines the metadata of AddRemoveReplicaScalingMechanism
*
* @returns {object} metadata of AddRemoveReplicaScalingMechanism
*
*/
mapper() {
return {
required: false,
serializedName: 'AddRemoveReplica',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'kind',
clientName: 'kind'
},
uberParent: 'AutoScalingMechanism',
className: 'AddRemoveReplicaScalingMechanism',
modelProperties: {
kind: {
required: true,
serializedName: 'kind',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
minCount: {
required: true,
serializedName: 'minCount',
type: {
name: 'Number'
}
},
maxCount: {
required: true,
serializedName: 'maxCount',
type: {
name: 'Number'
}
},
scaleIncrement: {
required: true,
serializedName: 'scaleIncrement',
type: {
name: 'Number'
}
}
}
}
};
}
}

module.exports = AddRemoveReplicaScalingMechanism;
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

const models = require('./index');

/**
* Container Exited event.
*
* @extends models['ApplicationEvent']
*/
class ApplicationContainerInstanceExitedEvent extends models['ApplicationEvent'] {
/**
* Create a ApplicationContainerInstanceExitedEvent.
* @member {string} serviceName Name of Service.
* @member {string} servicePackageName Name of Service package.
* @member {string} servicePackageActivationId Activation Id of Service
* package.
* @member {boolean} isExclusive Indicates IsExclusive flag.
* @member {string} codePackageName Name of Code package.
* @member {string} entryPointType Type of EntryPoint.
* @member {string} imageName Name of Container image.
* @member {string} containerName Name of Container.
* @member {string} hostId Host Id.
* @member {number} exitCode Exit code of process.
* @member {boolean} unexpectedTermination Indicates if termination is
* unexpected.
* @member {date} startTime Start time of process.
*/
constructor() {
super();
}

/**
* Defines the metadata of ApplicationContainerInstanceExitedEvent
*
* @returns {object} metadata of ApplicationContainerInstanceExitedEvent
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationContainerInstanceExited',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'Kind',
clientName: 'kind'
},
uberParent: 'FabricEvent',
className: 'ApplicationContainerInstanceExitedEvent',
modelProperties: {
eventInstanceId: {
required: true,
serializedName: 'EventInstanceId',
type: {
name: 'String'
}
},
category: {
required: false,
serializedName: 'Category',
type: {
name: 'String'
}
},
timeStamp: {
required: true,
serializedName: 'TimeStamp',
type: {
name: 'DateTime'
}
},
hasCorrelatedEvents: {
required: false,
serializedName: 'HasCorrelatedEvents',
type: {
name: 'Boolean'
}
},
kind: {
required: true,
serializedName: 'Kind',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
applicationId: {
required: true,
serializedName: 'ApplicationId',
type: {
name: 'String'
}
},
serviceName: {
required: true,
serializedName: 'ServiceName',
type: {
name: 'String'
}
},
servicePackageName: {
required: true,
serializedName: 'ServicePackageName',
type: {
name: 'String'
}
},
servicePackageActivationId: {
required: true,
serializedName: 'ServicePackageActivationId',
type: {
name: 'String'
}
},
isExclusive: {
required: true,
serializedName: 'IsExclusive',
type: {
name: 'Boolean'
}
},
codePackageName: {
required: true,
serializedName: 'CodePackageName',
type: {
name: 'String'
}
},
entryPointType: {
required: true,
serializedName: 'EntryPointType',
type: {
name: 'String'
}
},
imageName: {
required: true,
serializedName: 'ImageName',
type: {
name: 'String'
}
},
containerName: {
required: true,
serializedName: 'ContainerName',
type: {
name: 'String'
}
},
hostId: {
required: true,
serializedName: 'HostId',
type: {
name: 'String'
}
},
exitCode: {
required: true,
serializedName: 'ExitCode',
type: {
name: 'Number'
}
},
unexpectedTermination: {
required: true,
serializedName: 'UnexpectedTermination',
type: {
name: 'Boolean'
}
},
startTime: {
required: true,
serializedName: 'StartTime',
type: {
name: 'DateTime'
}
}
}
}
};
}
}

module.exports = ApplicationContainerInstanceExitedEvent;
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ class ApplicationCreatedEvent extends models['ApplicationEvent'] {
name: 'String'
}
},
category: {
required: false,
serializedName: 'Category',
type: {
name: 'String'
}
},
timeStamp: {
required: true,
serializedName: 'TimeStamp',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ class ApplicationDeletedEvent extends models['ApplicationEvent'] {
name: 'String'
}
},
category: {
required: false,
serializedName: 'Category',
type: {
name: 'String'
}
},
timeStamp: {
required: true,
serializedName: 'TimeStamp',
Expand Down
7 changes: 7 additions & 0 deletions lib/services/serviceFabric/lib/models/applicationEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ class ApplicationEvent extends models['FabricEvent'] {
name: 'String'
}
},
category: {
required: false,
serializedName: 'Category',
type: {
name: 'String'
}
},
timeStamp: {
required: true,
serializedName: 'TimeStamp',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ class ApplicationHealthReportExpiredEvent extends models['ApplicationEvent'] {
name: 'String'
}
},
category: {
required: false,
serializedName: 'Category',
type: {
name: 'String'
}
},
timeStamp: {
required: true,
serializedName: 'TimeStamp',
Expand Down
Loading

0 comments on commit c8432a1

Please sign in to comment.