Merge pull request #4403 from Azure/daschult/servicefabric
Regenerate azure-servicefabric
This commit is contained in:
Коммит
1b3c017c09
|
@ -5,6 +5,7 @@ summary: *content
|
|||
---
|
||||
**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.**
|
||||
## Microsoft Azure SDK for Node.js - ServiceFabricClient
|
||||
|
||||
This project provides a Node.js package for accessing Azure. Right now it supports:
|
||||
- **Node.js version 6.x.x or higher**
|
||||
|
||||
|
@ -19,7 +20,7 @@ npm install azure-servicefabric
|
|||
|
||||
### How to use
|
||||
|
||||
#### Authentication, client creation and getClusterManifest as an example.
|
||||
#### Authentication, client creation, and getClusterManifest as an example.
|
||||
|
||||
```javascript
|
||||
const msRest = require("ms-rest");
|
||||
|
@ -29,6 +30,7 @@ const creds = new msRest.TokenCredentials(token);
|
|||
const subscriptionId = "<Subscription_Id>";
|
||||
const client = new ServiceFabricClient(creds, subscriptionId);
|
||||
const timeout = 1;
|
||||
|
||||
client.getClusterManifest(timeout).then((result) => {
|
||||
console.log("The result is:");
|
||||
console.log(result);
|
||||
|
@ -36,6 +38,7 @@ client.getClusterManifest(timeout).then((result) => {
|
|||
console.log('An error occurred:');
|
||||
console.dir(err, {depth: null, colors: true});
|
||||
});
|
||||
```
|
||||
|
||||
### Related projects
|
||||
|
||||
|
|
|
@ -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.
|
||||
* @property {number} minCount Minimum number of containers (scale down won't
|
||||
* be performed below this number).
|
||||
* @property {number} maxCount Maximum number of containers (scale up won't
|
||||
* be performed above this number).
|
||||
* @property {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;
|
|
@ -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.
|
||||
* @property {string} serviceName Name of Service.
|
||||
* @property {string} servicePackageName Name of Service package.
|
||||
* @property {string} servicePackageActivationId Activation Id of Service
|
||||
* package.
|
||||
* @property {boolean} isExclusive Indicates IsExclusive flag.
|
||||
* @property {string} codePackageName Name of Code package.
|
||||
* @property {string} entryPointType Type of EntryPoint.
|
||||
* @property {string} imageName Name of Container image.
|
||||
* @property {string} containerName Name of Container.
|
||||
* @property {string} hostId Host Id.
|
||||
* @property {number} exitCode Exit code of process.
|
||||
* @property {boolean} unexpectedTermination Indicates if termination is
|
||||
* unexpected.
|
||||
* @property {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;
|
|
@ -54,6 +54,13 @@ class ApplicationCreatedEvent extends models['ApplicationEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -53,6 +53,13 @@ class ApplicationDeletedEvent extends models['ApplicationEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -58,6 +58,13 @@ class ApplicationEvent extends models['FabricEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -61,8 +61,8 @@ class ApplicationHealthPolicy {
|
|||
* replicas. Default percentage is zero.
|
||||
* @property {number}
|
||||
* [defaultServiceTypeHealthPolicy.maxPercentUnhealthyServices] The maximum
|
||||
* maximum allowed percentage of unhealthy services. Allowed values are Byte
|
||||
* values from zero to 100.
|
||||
* allowed percentage of unhealthy services. Allowed values are Byte values
|
||||
* from zero to 100.
|
||||
*
|
||||
* The percentage represents the maximum tolerated percentage of services
|
||||
* that can be unhealthy before the application is considered in error.
|
||||
|
|
|
@ -64,8 +64,8 @@ class ApplicationHealthPolicyMapItem {
|
|||
* replicas. Default percentage is zero.
|
||||
* @property {number}
|
||||
* [value.defaultServiceTypeHealthPolicy.maxPercentUnhealthyServices] The
|
||||
* maximum maximum allowed percentage of unhealthy services. Allowed values
|
||||
* are Byte values from zero to 100.
|
||||
* maximum allowed percentage of unhealthy services. Allowed values are Byte
|
||||
* values from zero to 100.
|
||||
*
|
||||
* The percentage represents the maximum tolerated percentage of services
|
||||
* that can be unhealthy before the application is considered in error.
|
||||
|
|
|
@ -61,6 +61,13 @@ class ApplicationHealthReportExpiredEvent extends models['ApplicationEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -0,0 +1,169 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Application Health Report Created event.
|
||||
*
|
||||
* @extends models['ApplicationEvent']
|
||||
*/
|
||||
class ApplicationNewHealthReportEvent extends models['ApplicationEvent'] {
|
||||
/**
|
||||
* Create a ApplicationNewHealthReportEvent.
|
||||
* @property {number} applicationInstanceId Id of Application instance.
|
||||
* @property {string} sourceId Id of report source.
|
||||
* @property {string} property Describes the property.
|
||||
* @property {string} healthState Describes the property health state.
|
||||
* @property {number} timeToLiveMs Time to live in milli-seconds.
|
||||
* @property {number} sequenceNumber Sequence number of report.
|
||||
* @property {string} description Description of report.
|
||||
* @property {boolean} removeWhenExpired Indicates the removal when it
|
||||
* expires.
|
||||
* @property {date} sourceUtcTimestamp Source time.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ApplicationNewHealthReportEvent
|
||||
*
|
||||
* @returns {object} metadata of ApplicationNewHealthReportEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ApplicationNewHealthReport',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ApplicationNewHealthReportEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
applicationInstanceId: {
|
||||
required: true,
|
||||
serializedName: 'ApplicationInstanceId',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
sourceId: {
|
||||
required: true,
|
||||
serializedName: 'SourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
property: {
|
||||
required: true,
|
||||
serializedName: 'Property',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
healthState: {
|
||||
required: true,
|
||||
serializedName: 'HealthState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeToLiveMs: {
|
||||
required: true,
|
||||
serializedName: 'TimeToLiveMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
sequenceNumber: {
|
||||
required: true,
|
||||
serializedName: 'SequenceNumber',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
required: true,
|
||||
serializedName: 'Description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
removeWhenExpired: {
|
||||
required: true,
|
||||
serializedName: 'RemoveWhenExpired',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
sourceUtcTimestamp: {
|
||||
required: true,
|
||||
serializedName: 'SourceUtcTimestamp',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ApplicationNewHealthReportEvent;
|
|
@ -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');
|
||||
|
||||
/**
|
||||
* Process Exited event.
|
||||
*
|
||||
* @extends models['ApplicationEvent']
|
||||
*/
|
||||
class ApplicationProcessExitedEvent extends models['ApplicationEvent'] {
|
||||
/**
|
||||
* Create a ApplicationProcessExitedEvent.
|
||||
* @property {string} serviceName Name of Service.
|
||||
* @property {string} servicePackageName Name of Service package.
|
||||
* @property {string} servicePackageActivationId Activation Id of Service
|
||||
* package.
|
||||
* @property {boolean} isExclusive Indicates IsExclusive flag.
|
||||
* @property {string} codePackageName Name of Code package.
|
||||
* @property {string} entryPointType Type of EntryPoint.
|
||||
* @property {string} exeName Name of executable.
|
||||
* @property {number} processId Process Id.
|
||||
* @property {string} hostId Host Id.
|
||||
* @property {number} exitCode Exit code of process.
|
||||
* @property {boolean} unexpectedTermination Indicates if termination is
|
||||
* unexpected.
|
||||
* @property {date} startTime Start time of process.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ApplicationProcessExitedEvent
|
||||
*
|
||||
* @returns {object} metadata of ApplicationProcessExitedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ApplicationProcessExited',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ApplicationProcessExitedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
exeName: {
|
||||
required: true,
|
||||
serializedName: 'ExeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
processId: {
|
||||
required: true,
|
||||
serializedName: 'ProcessId',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
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 = ApplicationProcessExitedEvent;
|
|
@ -11,28 +11,19 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* Describes a service fabric application resource.
|
||||
* This type describes a application resource.
|
||||
*
|
||||
*/
|
||||
class ApplicationResourceDescription {
|
||||
/**
|
||||
* Create a ApplicationResourceDescription.
|
||||
* @property {string} name Name of the Application resource.
|
||||
* @property {string} [description] User readable description of the
|
||||
* application.
|
||||
* @property {string} [debugParams] Internal use.
|
||||
* @property {array} [services] describes the services in the application.
|
||||
* @property {string} [healthState] Describes the health state of an
|
||||
* application resource. Possible values include: 'Invalid', 'Ok', 'Warning',
|
||||
* 'Error', 'Unknown'
|
||||
* @property {string} [unhealthyEvaluation] When the application's health
|
||||
* state is not 'Ok', this additional details from service fabric Health
|
||||
* Manager for the user to know why the application is marked unhealthy.
|
||||
* @property {string} [status] Status of the application resource. Possible
|
||||
* values include: 'Invalid', 'Ready', 'Upgrading', 'Creating', 'Deleting',
|
||||
* 'Failed'
|
||||
* @property {string} [statusDetails] Gives additional information about the
|
||||
* current status of the application deployment.
|
||||
* @property {array} [serviceNames] Names of the services in the application.
|
||||
* @property {array} [services] Describes the services in the application.
|
||||
* This property is used to create or modify services of the application. On
|
||||
* get only the name of the service is returned. The service description can
|
||||
* be obtained by querying for the service resource.
|
||||
* @property {object} [diagnostics] Describes the diagnostics definition and
|
||||
* usage for an application resource.
|
||||
* @property {array} [diagnostics.sinks] List of supported sinks that can be
|
||||
|
@ -42,7 +33,19 @@ class ApplicationResourceDescription {
|
|||
* @property {array} [diagnostics.defaultSinkRefs] The sinks to be used if
|
||||
* diagnostics is enabled. Sink choices can be overridden at the service and
|
||||
* code package level.
|
||||
* @property {string} name Application resource name.
|
||||
* @property {string} [debugParams] Internal - used by Visual Studio to setup
|
||||
* the debugging session on the local development environment.
|
||||
* @property {array} [serviceNames] Names of the services in the application.
|
||||
* @property {string} [status] Status of the application. Possible values
|
||||
* include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
|
||||
* @property {string} [statusDetails] Gives additional information about the
|
||||
* current status of the application.
|
||||
* @property {string} [healthState] Describes the health state of an
|
||||
* application resource. Possible values include: 'Invalid', 'Ok', 'Warning',
|
||||
* 'Error', 'Unknown'
|
||||
* @property {string} [unhealthyEvaluation] When the application's health
|
||||
* state is not 'Ok', this additional details from service fabric Health
|
||||
* Manager for the user to know why the application is marked unhealthy.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -61,16 +64,16 @@ class ApplicationResourceDescription {
|
|||
name: 'Composite',
|
||||
className: 'ApplicationResourceDescription',
|
||||
modelProperties: {
|
||||
description: {
|
||||
required: false,
|
||||
serializedName: 'properties.description',
|
||||
name: {
|
||||
required: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
debugParams: {
|
||||
description: {
|
||||
required: false,
|
||||
serializedName: 'properties.debugParams',
|
||||
serializedName: 'properties.description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
|
@ -90,34 +93,17 @@ class ApplicationResourceDescription {
|
|||
}
|
||||
}
|
||||
},
|
||||
healthState: {
|
||||
diagnostics: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.healthState',
|
||||
serializedName: 'properties.diagnostics',
|
||||
type: {
|
||||
name: 'String'
|
||||
name: 'Composite',
|
||||
className: 'DiagnosticsDescription'
|
||||
}
|
||||
},
|
||||
unhealthyEvaluation: {
|
||||
debugParams: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.unhealthyEvaluation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
status: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.status',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
statusDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.statusDetails',
|
||||
serializedName: 'properties.debugParams',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
|
@ -137,17 +123,34 @@ class ApplicationResourceDescription {
|
|||
}
|
||||
}
|
||||
},
|
||||
diagnostics: {
|
||||
status: {
|
||||
required: false,
|
||||
serializedName: 'properties.diagnostics',
|
||||
readOnly: true,
|
||||
serializedName: 'properties.status',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DiagnosticsDescription'
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
required: true,
|
||||
serializedName: 'name',
|
||||
statusDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.statusDetails',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
healthState: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.healthState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
unhealthyEvaluation: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.unhealthyEvaluation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
|
|
|
@ -0,0 +1,87 @@
|
|||
/*
|
||||
* 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 a volume whose lifetime is scoped to the application's lifetime.
|
||||
*
|
||||
* @extends models['VolumeReference']
|
||||
*/
|
||||
class ApplicationScopedVolume extends models['VolumeReference'] {
|
||||
/**
|
||||
* Create a ApplicationScopedVolume.
|
||||
* @property {object} creationParameters Describes parameters for creating
|
||||
* application-scoped volumes.
|
||||
* @property {string} [creationParameters.description] User readable
|
||||
* description of the volume.
|
||||
* @property {string} [creationParameters.kind] Polymorphic Discriminator
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ApplicationScopedVolume
|
||||
*
|
||||
* @returns {object} metadata of ApplicationScopedVolume
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ApplicationScopedVolume',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ApplicationScopedVolume',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
readOnly: {
|
||||
required: false,
|
||||
serializedName: 'readOnly',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
destinationPath: {
|
||||
required: true,
|
||||
serializedName: 'destinationPath',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
creationParameters: {
|
||||
required: true,
|
||||
serializedName: 'creationParameters',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'ApplicationScopedVolumeCreationParameters',
|
||||
className: 'ApplicationScopedVolumeCreationParameters'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ApplicationScopedVolume;
|
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Describes parameters for creating application-scoped volumes.
|
||||
*
|
||||
*/
|
||||
class ApplicationScopedVolumeCreationParameters {
|
||||
/**
|
||||
* Create a ApplicationScopedVolumeCreationParameters.
|
||||
* @property {string} [description] User readable description of the volume.
|
||||
* @property {string} kind Polymorphic Discriminator
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ApplicationScopedVolumeCreationParameters
|
||||
*
|
||||
* @returns {object} metadata of ApplicationScopedVolumeCreationParameters
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ApplicationScopedVolumeCreationParameters',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'ApplicationScopedVolumeCreationParameters',
|
||||
className: 'ApplicationScopedVolumeCreationParameters',
|
||||
modelProperties: {
|
||||
description: {
|
||||
required: false,
|
||||
serializedName: 'description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
kind: {
|
||||
required: true,
|
||||
serializedName: 'kind',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ApplicationScopedVolumeCreationParameters;
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* 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 parameters for creating application-scoped volumes provided by
|
||||
* Service Fabric Volume Disks
|
||||
*
|
||||
* @extends models['ApplicationScopedVolumeCreationParameters']
|
||||
*/
|
||||
class ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk extends models['ApplicationScopedVolumeCreationParameters'] {
|
||||
/**
|
||||
* Create a ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk.
|
||||
* @property {string} sizeDisk Volume size. Possible values include: 'Small',
|
||||
* 'Medium', 'Large'
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk
|
||||
*
|
||||
* @returns {object} metadata of ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ServiceFabricVolumeDisk',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'ApplicationScopedVolumeCreationParameters',
|
||||
className: 'ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk',
|
||||
modelProperties: {
|
||||
description: {
|
||||
required: false,
|
||||
serializedName: 'description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
kind: {
|
||||
required: true,
|
||||
serializedName: 'kind',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
sizeDisk: {
|
||||
required: true,
|
||||
serializedName: 'sizeDisk',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk;
|
|
@ -0,0 +1,121 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Application Upgrade Completed event.
|
||||
*
|
||||
* @extends models['ApplicationEvent']
|
||||
*/
|
||||
class ApplicationUpgradeCompletedEvent extends models['ApplicationEvent'] {
|
||||
/**
|
||||
* Create a ApplicationUpgradeCompletedEvent.
|
||||
* @property {string} applicationTypeName Application type name.
|
||||
* @property {string} applicationTypeVersion Application type version.
|
||||
* @property {number} overallUpgradeElapsedTimeInMs Overall upgrade time in
|
||||
* milli-seconds.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ApplicationUpgradeCompletedEvent
|
||||
*
|
||||
* @returns {object} metadata of ApplicationUpgradeCompletedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ApplicationUpgradeCompleted',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ApplicationUpgradeCompletedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
applicationTypeName: {
|
||||
required: true,
|
||||
serializedName: 'ApplicationTypeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
applicationTypeVersion: {
|
||||
required: true,
|
||||
serializedName: 'ApplicationTypeVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
overallUpgradeElapsedTimeInMs: {
|
||||
required: true,
|
||||
serializedName: 'OverallUpgradeElapsedTimeInMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ApplicationUpgradeCompletedEvent;
|
|
@ -135,8 +135,8 @@ class ApplicationUpgradeDescription {
|
|||
* replicas. Default percentage is zero.
|
||||
* @property {number}
|
||||
* [applicationHealthPolicy.defaultServiceTypeHealthPolicy.maxPercentUnhealthyServices]
|
||||
* The maximum maximum allowed percentage of unhealthy services. Allowed
|
||||
* values are Byte values from zero to 100.
|
||||
* The maximum allowed percentage of unhealthy services. Allowed values are
|
||||
* Byte values from zero to 100.
|
||||
*
|
||||
* The percentage represents the maximum tolerated percentage of services
|
||||
* that can be unhealthy before the application is considered in error.
|
||||
|
|
|
@ -0,0 +1,146 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Application Upgrade Domain Completed event.
|
||||
*
|
||||
* @extends models['ApplicationEvent']
|
||||
*/
|
||||
class ApplicationUpgradeDomainCompletedEvent extends models['ApplicationEvent'] {
|
||||
/**
|
||||
* Create a ApplicationUpgradeDomainCompletedEvent.
|
||||
* @property {string} applicationTypeName Application type name.
|
||||
* @property {string} currentApplicationTypeVersion Current Application type
|
||||
* version.
|
||||
* @property {string} applicationTypeVersion Target Application type version.
|
||||
* @property {string} upgradeState State of upgrade.
|
||||
* @property {string} upgradeDomains Upgrade domains.
|
||||
* @property {number} upgradeDomainElapsedTimeInMs Upgrade time of domain in
|
||||
* milli-seconds.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ApplicationUpgradeDomainCompletedEvent
|
||||
*
|
||||
* @returns {object} metadata of ApplicationUpgradeDomainCompletedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ApplicationUpgradeDomainCompleted',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ApplicationUpgradeDomainCompletedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
applicationTypeName: {
|
||||
required: true,
|
||||
serializedName: 'ApplicationTypeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
currentApplicationTypeVersion: {
|
||||
required: true,
|
||||
serializedName: 'CurrentApplicationTypeVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
applicationTypeVersion: {
|
||||
required: true,
|
||||
serializedName: 'ApplicationTypeVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
upgradeState: {
|
||||
required: true,
|
||||
serializedName: 'UpgradeState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
upgradeDomains: {
|
||||
required: true,
|
||||
serializedName: 'UpgradeDomains',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
upgradeDomainElapsedTimeInMs: {
|
||||
required: true,
|
||||
serializedName: 'UpgradeDomainElapsedTimeInMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ApplicationUpgradeDomainCompletedEvent;
|
|
@ -163,8 +163,8 @@ class ApplicationUpgradeProgressInfo {
|
|||
* replicas. Default percentage is zero.
|
||||
* @property {number}
|
||||
* [upgradeDescription.applicationHealthPolicy.defaultServiceTypeHealthPolicy.maxPercentUnhealthyServices]
|
||||
* The maximum maximum allowed percentage of unhealthy services. Allowed
|
||||
* values are Byte values from zero to 100.
|
||||
* The maximum allowed percentage of unhealthy services. Allowed values are
|
||||
* Byte values from zero to 100.
|
||||
*
|
||||
* The percentage represents the maximum tolerated percentage of services
|
||||
* that can be unhealthy before the application is considered in error.
|
||||
|
|
|
@ -0,0 +1,129 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Application Upgrade Rollback Completed event.
|
||||
*
|
||||
* @extends models['ApplicationEvent']
|
||||
*/
|
||||
class ApplicationUpgradeRollbackCompletedEvent extends models['ApplicationEvent'] {
|
||||
/**
|
||||
* Create a ApplicationUpgradeRollbackCompletedEvent.
|
||||
* @property {string} applicationTypeName Application type name.
|
||||
* @property {string} applicationTypeVersion Application type version.
|
||||
* @property {string} failureReason Describes reason of failure.
|
||||
* @property {number} overallUpgradeElapsedTimeInMs Overall upgrade time in
|
||||
* milli-seconds.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ApplicationUpgradeRollbackCompletedEvent
|
||||
*
|
||||
* @returns {object} metadata of ApplicationUpgradeRollbackCompletedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ApplicationUpgradeRollbackCompleted',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ApplicationUpgradeRollbackCompletedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
applicationTypeName: {
|
||||
required: true,
|
||||
serializedName: 'ApplicationTypeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
applicationTypeVersion: {
|
||||
required: true,
|
||||
serializedName: 'ApplicationTypeVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
failureReason: {
|
||||
required: true,
|
||||
serializedName: 'FailureReason',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
overallUpgradeElapsedTimeInMs: {
|
||||
required: true,
|
||||
serializedName: 'OverallUpgradeElapsedTimeInMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ApplicationUpgradeRollbackCompletedEvent;
|
|
@ -0,0 +1,138 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Application Upgrade Rollback Started event.
|
||||
*
|
||||
* @extends models['ApplicationEvent']
|
||||
*/
|
||||
class ApplicationUpgradeRollbackStartedEvent extends models['ApplicationEvent'] {
|
||||
/**
|
||||
* Create a ApplicationUpgradeRollbackStartedEvent.
|
||||
* @property {string} applicationTypeName Application type name.
|
||||
* @property {string} currentApplicationTypeVersion Current Application type
|
||||
* version.
|
||||
* @property {string} applicationTypeVersion Target Application type version.
|
||||
* @property {string} failureReason Describes reason of failure.
|
||||
* @property {number} overallUpgradeElapsedTimeInMs Overall upgrade time in
|
||||
* milli-seconds.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ApplicationUpgradeRollbackStartedEvent
|
||||
*
|
||||
* @returns {object} metadata of ApplicationUpgradeRollbackStartedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ApplicationUpgradeRollbackStarted',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ApplicationUpgradeRollbackStartedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
applicationTypeName: {
|
||||
required: true,
|
||||
serializedName: 'ApplicationTypeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
currentApplicationTypeVersion: {
|
||||
required: true,
|
||||
serializedName: 'CurrentApplicationTypeVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
applicationTypeVersion: {
|
||||
required: true,
|
||||
serializedName: 'ApplicationTypeVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
failureReason: {
|
||||
required: true,
|
||||
serializedName: 'FailureReason',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
overallUpgradeElapsedTimeInMs: {
|
||||
required: true,
|
||||
serializedName: 'OverallUpgradeElapsedTimeInMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ApplicationUpgradeRollbackStartedEvent;
|
|
@ -0,0 +1,145 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Application Upgrade Started event.
|
||||
*
|
||||
* @extends models['ApplicationEvent']
|
||||
*/
|
||||
class ApplicationUpgradeStartedEvent extends models['ApplicationEvent'] {
|
||||
/**
|
||||
* Create a ApplicationUpgradeStartedEvent.
|
||||
* @property {string} applicationTypeName Application type name.
|
||||
* @property {string} currentApplicationTypeVersion Current Application type
|
||||
* version.
|
||||
* @property {string} applicationTypeVersion Target Application type version.
|
||||
* @property {string} upgradeType Type of upgrade.
|
||||
* @property {string} rollingUpgradeMode Mode of upgrade.
|
||||
* @property {string} failureAction Action if failed.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ApplicationUpgradeStartedEvent
|
||||
*
|
||||
* @returns {object} metadata of ApplicationUpgradeStartedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ApplicationUpgradeStarted',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ApplicationUpgradeStartedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
applicationTypeName: {
|
||||
required: true,
|
||||
serializedName: 'ApplicationTypeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
currentApplicationTypeVersion: {
|
||||
required: true,
|
||||
serializedName: 'CurrentApplicationTypeVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
applicationTypeVersion: {
|
||||
required: true,
|
||||
serializedName: 'ApplicationTypeVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
upgradeType: {
|
||||
required: true,
|
||||
serializedName: 'UpgradeType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
rollingUpgradeMode: {
|
||||
required: true,
|
||||
serializedName: 'RollingUpgradeMode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
failureAction: {
|
||||
required: true,
|
||||
serializedName: 'FailureAction',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ApplicationUpgradeStartedEvent;
|
|
@ -69,8 +69,8 @@ class ApplicationUpgradeUpdateDescription {
|
|||
* replicas. Default percentage is zero.
|
||||
* @property {number}
|
||||
* [applicationHealthPolicy.defaultServiceTypeHealthPolicy.maxPercentUnhealthyServices]
|
||||
* The maximum maximum allowed percentage of unhealthy services. Allowed
|
||||
* values are Byte values from zero to 100.
|
||||
* The maximum allowed percentage of unhealthy services. Allowed values are
|
||||
* Byte values from zero to 100.
|
||||
*
|
||||
* The percentage represents the maximum tolerated percentage of services
|
||||
* that can be unhealthy before the application is considered in error.
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Describes the mechanism for performing auto scaling operation. Derived
|
||||
* classes will describe the actual mechanism.
|
||||
*
|
||||
*/
|
||||
class AutoScalingMechanism {
|
||||
/**
|
||||
* Create a AutoScalingMechanism.
|
||||
* @property {string} kind Polymorphic Discriminator
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of AutoScalingMechanism
|
||||
*
|
||||
* @returns {object} metadata of AutoScalingMechanism
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'AutoScalingMechanism',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'AutoScalingMechanism',
|
||||
className: 'AutoScalingMechanism',
|
||||
modelProperties: {
|
||||
kind: {
|
||||
required: true,
|
||||
serializedName: 'kind',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AutoScalingMechanism;
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Describes the metric that is used for triggering auto scaling operation.
|
||||
* Derived classes will describe resources or metrics.
|
||||
*
|
||||
*/
|
||||
class AutoScalingMetric {
|
||||
/**
|
||||
* Create a AutoScalingMetric.
|
||||
* @property {string} kind Polymorphic Discriminator
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of AutoScalingMetric
|
||||
*
|
||||
* @returns {object} metadata of AutoScalingMetric
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'AutoScalingMetric',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'AutoScalingMetric',
|
||||
className: 'AutoScalingMetric',
|
||||
modelProperties: {
|
||||
kind: {
|
||||
required: true,
|
||||
serializedName: 'kind',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AutoScalingMetric;
|
|
@ -0,0 +1,84 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Describes the auto scaling policy
|
||||
*
|
||||
*/
|
||||
class AutoScalingPolicy {
|
||||
/**
|
||||
* Create a AutoScalingPolicy.
|
||||
* @property {string} name The name of the auto scaling policy.
|
||||
* @property {object} trigger Determines when auto scaling operation will be
|
||||
* invoked.
|
||||
* @property {string} [trigger.kind] Polymorphic Discriminator
|
||||
* @property {object} mechanism The mechanism that is used to scale when auto
|
||||
* scaling operation is invoked.
|
||||
* @property {string} [mechanism.kind] Polymorphic Discriminator
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of AutoScalingPolicy
|
||||
*
|
||||
* @returns {object} metadata of AutoScalingPolicy
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'AutoScalingPolicy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'AutoScalingPolicy',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
trigger: {
|
||||
required: true,
|
||||
serializedName: 'trigger',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'AutoScalingTrigger',
|
||||
className: 'AutoScalingTrigger'
|
||||
}
|
||||
},
|
||||
mechanism: {
|
||||
required: true,
|
||||
serializedName: 'mechanism',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'AutoScalingMechanism',
|
||||
className: 'AutoScalingMechanism'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AutoScalingPolicy;
|
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* 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 resource that is used for triggering auto scaling.
|
||||
*
|
||||
* @extends models['AutoScalingMetric']
|
||||
*/
|
||||
class AutoScalingResourceMetric extends models['AutoScalingMetric'] {
|
||||
/**
|
||||
* Create a AutoScalingResourceMetric.
|
||||
* @property {string} name Name of the resource. Possible values include:
|
||||
* 'cpu', 'memoryInGB'
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of AutoScalingResourceMetric
|
||||
*
|
||||
* @returns {object} metadata of AutoScalingResourceMetric
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'Resource',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'AutoScalingMetric',
|
||||
className: 'AutoScalingResourceMetric',
|
||||
modelProperties: {
|
||||
kind: {
|
||||
required: true,
|
||||
serializedName: 'kind',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
required: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AutoScalingResourceMetric;
|
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Describes the trigger for performing auto scaling operation.
|
||||
*
|
||||
*/
|
||||
class AutoScalingTrigger {
|
||||
/**
|
||||
* Create a AutoScalingTrigger.
|
||||
* @property {string} kind Polymorphic Discriminator
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of AutoScalingTrigger
|
||||
*
|
||||
* @returns {object} metadata of AutoScalingTrigger
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'AutoScalingTrigger',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'AutoScalingTrigger',
|
||||
className: 'AutoScalingTrigger',
|
||||
modelProperties: {
|
||||
kind: {
|
||||
required: true,
|
||||
serializedName: 'kind',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AutoScalingTrigger;
|
|
@ -0,0 +1,107 @@
|
|||
/*
|
||||
* 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 average load trigger used for auto scaling.
|
||||
*
|
||||
* @extends models['AutoScalingTrigger']
|
||||
*/
|
||||
class AverageLoadScalingTrigger extends models['AutoScalingTrigger'] {
|
||||
/**
|
||||
* Create a AverageLoadScalingTrigger.
|
||||
* @property {object} metric Description of the metric that is used for
|
||||
* scaling.
|
||||
* @property {string} [metric.kind] Polymorphic Discriminator
|
||||
* @property {number} lowerLoadThreshold Lower load threshold (if average
|
||||
* load is below this threshold, service will scale down).
|
||||
* @property {number} upperLoadThreshold Upper load threshold (if average
|
||||
* load is above this threshold, service will scale up).
|
||||
* @property {number} scaleIntervalInSeconds Scale interval that indicates
|
||||
* how often will this trigger be checked.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of AverageLoadScalingTrigger
|
||||
*
|
||||
* @returns {object} metadata of AverageLoadScalingTrigger
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'AverageLoad',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'AutoScalingTrigger',
|
||||
className: 'AverageLoadScalingTrigger',
|
||||
modelProperties: {
|
||||
kind: {
|
||||
required: true,
|
||||
serializedName: 'kind',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
metric: {
|
||||
required: true,
|
||||
serializedName: 'metric',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'AutoScalingMetric',
|
||||
className: 'AutoScalingMetric'
|
||||
}
|
||||
},
|
||||
lowerLoadThreshold: {
|
||||
required: true,
|
||||
serializedName: 'lowerLoadThreshold',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
upperLoadThreshold: {
|
||||
required: true,
|
||||
serializedName: 'upperLoadThreshold',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
scaleIntervalInSeconds: {
|
||||
required: true,
|
||||
serializedName: 'scaleIntervalInSeconds',
|
||||
constraints: {
|
||||
InclusiveMinimum: 60
|
||||
},
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AverageLoadScalingTrigger;
|
|
@ -0,0 +1,120 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Diagnostics settings for Geneva.
|
||||
*
|
||||
* @extends models['DiagnosticsSinkProperties']
|
||||
*/
|
||||
class AzureInternalMonitoringPipelineSinkDescription extends models['DiagnosticsSinkProperties'] {
|
||||
/**
|
||||
* Create a AzureInternalMonitoringPipelineSinkDescription.
|
||||
* @property {string} [accountName] Azure Internal monitoring pipeline
|
||||
* account.
|
||||
* @property {string} [namespace] Azure Internal monitoring pipeline account
|
||||
* namespace.
|
||||
* @property {string} [maConfigUrl] Azure Internal monitoring agent
|
||||
* configuration.
|
||||
* @property {object} [fluentdConfigUrl] Azure Internal monitoring agent
|
||||
* fluentd configuration.
|
||||
* @property {string} [autoKeyConfigUrl] Azure Internal monitoring pipeline
|
||||
* autokey associated with the certificate.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of AzureInternalMonitoringPipelineSinkDescription
|
||||
*
|
||||
* @returns {object} metadata of AzureInternalMonitoringPipelineSinkDescription
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'AzureInternalMonitoringPipeline',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'DiagnosticsSinkProperties',
|
||||
className: 'AzureInternalMonitoringPipelineSinkDescription',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: false,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
required: false,
|
||||
serializedName: 'description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
kind: {
|
||||
required: true,
|
||||
serializedName: 'kind',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountName: {
|
||||
required: false,
|
||||
serializedName: 'accountName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
namespace: {
|
||||
required: false,
|
||||
serializedName: 'namespace',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
maConfigUrl: {
|
||||
required: false,
|
||||
serializedName: 'maConfigUrl',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
fluentdConfigUrl: {
|
||||
required: false,
|
||||
serializedName: 'fluentdConfigUrl',
|
||||
type: {
|
||||
name: 'Object'
|
||||
}
|
||||
},
|
||||
autoKeyConfigUrl: {
|
||||
required: false,
|
||||
serializedName: 'autoKeyConfigUrl',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AzureInternalMonitoringPipelineSinkDescription;
|
|
@ -41,11 +41,11 @@ class BackupInfo {
|
|||
* 'Incremental'
|
||||
* @property {object} [epochOfLastBackupRecord] Epoch of the last record in
|
||||
* this backup.
|
||||
* @property {string} [epochOfLastBackupRecord.configurationNumber] The
|
||||
* @property {string} [epochOfLastBackupRecord.configurationVersion] The
|
||||
* current configuration number of this Epoch. The configuration number is an
|
||||
* increasing value that is updated whenever the configuration of this
|
||||
* replica set changes.
|
||||
* @property {string} [epochOfLastBackupRecord.dataLossNumber] The current
|
||||
* @property {string} [epochOfLastBackupRecord.dataLossVersion] The current
|
||||
* dataloss number of this Epoch. The data loss number property is an
|
||||
* increasing value which is updated whenever data loss is suspected, as when
|
||||
* loss of a quorum of replicas in the replica set that includes the Primary
|
||||
|
@ -54,6 +54,8 @@ class BackupInfo {
|
|||
* backup.
|
||||
* @property {date} [creationTimeUtc] The date time when this backup was
|
||||
* taken.
|
||||
* @property {string} [serviceManifestVersion] Manifest Version of the
|
||||
* service this partition backup belongs to.
|
||||
* @property {object} [failureError] Denotes the failure encountered in
|
||||
* getting backup point information.
|
||||
* @property {string} [failureError.code] Defines the fabric error codes that
|
||||
|
@ -106,6 +108,7 @@ class BackupInfo {
|
|||
* - "FABRIC_E_BACKUP_NOT_ENABLED"
|
||||
* - "FABRIC_E_BACKUP_POLICY_NOT_EXISTING"
|
||||
* - "FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING"
|
||||
* - "FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR"
|
||||
*
|
||||
* - Possible values of the error code for HTTP status code 409 (Conflict)
|
||||
* - "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS"
|
||||
|
@ -217,7 +220,7 @@ class BackupInfo {
|
|||
* 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS',
|
||||
* 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND',
|
||||
* 'FABRIC_E_VOLUME_ALREADY_EXISTS', 'FABRIC_E_VOLUME_NOT_FOUND',
|
||||
* 'SerializationError'
|
||||
* 'SerializationError', 'FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR'
|
||||
* @property {string} [failureError.message] Error message.
|
||||
*/
|
||||
constructor() {
|
||||
|
@ -297,7 +300,7 @@ class BackupInfo {
|
|||
serializedName: 'EpochOfLastBackupRecord',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'BackupEpoch'
|
||||
className: 'Epoch'
|
||||
}
|
||||
},
|
||||
lsnOfLastBackupRecord: {
|
||||
|
@ -314,6 +317,13 @@ class BackupInfo {
|
|||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
serviceManifestVersion: {
|
||||
required: false,
|
||||
serializedName: 'ServiceManifestVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
failureError: {
|
||||
required: false,
|
||||
serializedName: 'FailureError',
|
||||
|
|
|
@ -35,6 +35,10 @@ class BackupPolicyDescription {
|
|||
* @property {string} [storage.friendlyName] Friendly name for this backup
|
||||
* storage.
|
||||
* @property {string} [storage.storageKind] Polymorphic Discriminator
|
||||
* @property {object} [retentionPolicy] Describes the policy to retain
|
||||
* backups in storage.
|
||||
* @property {string} [retentionPolicy.retentionPolicyType] Polymorphic
|
||||
* Discriminator
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -103,6 +107,19 @@ class BackupPolicyDescription {
|
|||
uberParent: 'BackupStorageDescription',
|
||||
className: 'BackupStorageDescription'
|
||||
}
|
||||
},
|
||||
retentionPolicy: {
|
||||
required: false,
|
||||
serializedName: 'RetentionPolicy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'RetentionPolicyType',
|
||||
clientName: 'retentionPolicyType'
|
||||
},
|
||||
uberParent: 'RetentionPolicyDescription',
|
||||
className: 'RetentionPolicyDescription'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,11 +27,11 @@ class BackupProgressInfo {
|
|||
* store, of the newly created backup.
|
||||
* @property {object} [epochOfLastBackupRecord] Specifies the epoch of the
|
||||
* last record included in backup.
|
||||
* @property {string} [epochOfLastBackupRecord.configurationNumber] The
|
||||
* @property {string} [epochOfLastBackupRecord.configurationVersion] The
|
||||
* current configuration number of this Epoch. The configuration number is an
|
||||
* increasing value that is updated whenever the configuration of this
|
||||
* replica set changes.
|
||||
* @property {string} [epochOfLastBackupRecord.dataLossNumber] The current
|
||||
* @property {string} [epochOfLastBackupRecord.dataLossVersion] The current
|
||||
* dataloss number of this Epoch. The data loss number property is an
|
||||
* increasing value which is updated whenever data loss is suspected, as when
|
||||
* loss of a quorum of replicas in the replica set that includes the Primary
|
||||
|
@ -90,6 +90,7 @@ class BackupProgressInfo {
|
|||
* - "FABRIC_E_BACKUP_NOT_ENABLED"
|
||||
* - "FABRIC_E_BACKUP_POLICY_NOT_EXISTING"
|
||||
* - "FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING"
|
||||
* - "FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR"
|
||||
*
|
||||
* - Possible values of the error code for HTTP status code 409 (Conflict)
|
||||
* - "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS"
|
||||
|
@ -201,7 +202,7 @@ class BackupProgressInfo {
|
|||
* 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS',
|
||||
* 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND',
|
||||
* 'FABRIC_E_VOLUME_ALREADY_EXISTS', 'FABRIC_E_VOLUME_NOT_FOUND',
|
||||
* 'SerializationError'
|
||||
* 'SerializationError', 'FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR'
|
||||
* @property {string} [failureError.message] Error message.
|
||||
*/
|
||||
constructor() {
|
||||
|
@ -254,7 +255,7 @@ class BackupProgressInfo {
|
|||
serializedName: 'EpochOfLastBackupRecord',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'BackupEpoch'
|
||||
className: 'Epoch'
|
||||
}
|
||||
},
|
||||
lsnOfLastBackupRecord: {
|
||||
|
|
|
@ -0,0 +1,86 @@
|
|||
/*
|
||||
* 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 basic retention policy.
|
||||
*
|
||||
* @extends models['RetentionPolicyDescription']
|
||||
*/
|
||||
class BasicRetentionPolicyDescription extends models['RetentionPolicyDescription'] {
|
||||
/**
|
||||
* Create a BasicRetentionPolicyDescription.
|
||||
* @property {moment.duration} retentionDuration It is the minimum duration
|
||||
* for which a backup created, will remain stored in the storage and might
|
||||
* get deleted after that span of time. It should be specified in ISO8601
|
||||
* format.
|
||||
* @property {number} [minimumNumberOfBackups] It is the minimum number of
|
||||
* backups to be retained at any point of time. If specified with a non zero
|
||||
* value, backups will not be deleted even if the backups have gone past
|
||||
* retention duration and have number of backups less than or equal to it.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of BasicRetentionPolicyDescription
|
||||
*
|
||||
* @returns {object} metadata of BasicRetentionPolicyDescription
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'Basic',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'RetentionPolicyType',
|
||||
clientName: 'retentionPolicyType'
|
||||
},
|
||||
uberParent: 'RetentionPolicyDescription',
|
||||
className: 'BasicRetentionPolicyDescription',
|
||||
modelProperties: {
|
||||
retentionPolicyType: {
|
||||
required: true,
|
||||
serializedName: 'RetentionPolicyType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
retentionDuration: {
|
||||
required: true,
|
||||
serializedName: 'RetentionDuration',
|
||||
type: {
|
||||
name: 'TimeSpan'
|
||||
}
|
||||
},
|
||||
minimumNumberOfBackups: {
|
||||
required: false,
|
||||
serializedName: 'MinimumNumberOfBackups',
|
||||
constraints: {
|
||||
InclusiveMinimum: 0
|
||||
},
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = BasicRetentionPolicyDescription;
|
|
@ -0,0 +1,145 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Chaos Restart Code Package Fault Scheduled event.
|
||||
*
|
||||
* @extends models['ApplicationEvent']
|
||||
*/
|
||||
class ChaosCodePackageRestartScheduledEvent extends models['ApplicationEvent'] {
|
||||
/**
|
||||
* Create a ChaosCodePackageRestartScheduledEvent.
|
||||
* @property {uuid} faultGroupId Id of fault group.
|
||||
* @property {uuid} faultId Id of fault.
|
||||
* @property {string} nodeName The name of a Service Fabric node.
|
||||
* @property {string} serviceManifestName Service manifest name.
|
||||
* @property {string} codePackageName Code package name.
|
||||
* @property {string} servicePackageActivationId Id of Service package
|
||||
* activation.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ChaosCodePackageRestartScheduledEvent
|
||||
*
|
||||
* @returns {object} metadata of ChaosCodePackageRestartScheduledEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ChaosCodePackageRestartScheduled',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ChaosCodePackageRestartScheduledEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
faultGroupId: {
|
||||
required: true,
|
||||
serializedName: 'FaultGroupId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
faultId: {
|
||||
required: true,
|
||||
serializedName: 'FaultId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeName: {
|
||||
required: true,
|
||||
serializedName: 'NodeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
serviceManifestName: {
|
||||
required: true,
|
||||
serializedName: 'ServiceManifestName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
codePackageName: {
|
||||
required: true,
|
||||
serializedName: 'CodePackageName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
servicePackageActivationId: {
|
||||
required: true,
|
||||
serializedName: 'ServicePackageActivationId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ChaosCodePackageRestartScheduledEvent;
|
|
@ -0,0 +1,120 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Chaos Restart Node Fault Scheduled event.
|
||||
*
|
||||
* @extends models['NodeEvent']
|
||||
*/
|
||||
class ChaosNodeRestartScheduledEvent extends models['NodeEvent'] {
|
||||
/**
|
||||
* Create a ChaosNodeRestartScheduledEvent.
|
||||
* @property {number} nodeInstanceId Id of Node instance.
|
||||
* @property {uuid} faultGroupId Id of fault group.
|
||||
* @property {uuid} faultId Id of fault.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ChaosNodeRestartScheduledEvent
|
||||
*
|
||||
* @returns {object} metadata of ChaosNodeRestartScheduledEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ChaosNodeRestartScheduled',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ChaosNodeRestartScheduledEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
nodeName: {
|
||||
required: true,
|
||||
serializedName: 'NodeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeInstanceId: {
|
||||
required: true,
|
||||
serializedName: 'NodeInstanceId',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
faultGroupId: {
|
||||
required: true,
|
||||
serializedName: 'FaultGroupId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
faultId: {
|
||||
required: true,
|
||||
serializedName: 'FaultId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ChaosNodeRestartScheduledEvent;
|
|
@ -0,0 +1,136 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Chaos Move Primary Fault Scheduled event.
|
||||
*
|
||||
* @extends models['PartitionEvent']
|
||||
*/
|
||||
class ChaosPartitionPrimaryMoveScheduledEvent extends models['PartitionEvent'] {
|
||||
/**
|
||||
* Create a ChaosPartitionPrimaryMoveScheduledEvent.
|
||||
* @property {uuid} faultGroupId Id of fault group.
|
||||
* @property {uuid} faultId Id of fault.
|
||||
* @property {string} serviceName Service name.
|
||||
* @property {string} nodeTo The name of a Service Fabric node.
|
||||
* @property {boolean} forcedMove Indicates a forced move.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ChaosPartitionPrimaryMoveScheduledEvent
|
||||
*
|
||||
* @returns {object} metadata of ChaosPartitionPrimaryMoveScheduledEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ChaosPartitionPrimaryMoveScheduled',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ChaosPartitionPrimaryMoveScheduledEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
partitionId: {
|
||||
required: true,
|
||||
serializedName: 'PartitionId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
faultGroupId: {
|
||||
required: true,
|
||||
serializedName: 'FaultGroupId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
faultId: {
|
||||
required: true,
|
||||
serializedName: 'FaultId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
serviceName: {
|
||||
required: true,
|
||||
serializedName: 'ServiceName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeTo: {
|
||||
required: true,
|
||||
serializedName: 'NodeTo',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
forcedMove: {
|
||||
required: true,
|
||||
serializedName: 'ForcedMove',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ChaosPartitionPrimaryMoveScheduledEvent;
|
|
@ -0,0 +1,144 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Chaos Move Secondary Fault Scheduled event.
|
||||
*
|
||||
* @extends models['PartitionEvent']
|
||||
*/
|
||||
class ChaosPartitionSecondaryMoveScheduledEvent extends models['PartitionEvent'] {
|
||||
/**
|
||||
* Create a ChaosPartitionSecondaryMoveScheduledEvent.
|
||||
* @property {uuid} faultGroupId Id of fault group.
|
||||
* @property {uuid} faultId Id of fault.
|
||||
* @property {string} serviceName Service name.
|
||||
* @property {string} sourceNode The name of a Service Fabric node.
|
||||
* @property {string} destinationNode The name of a Service Fabric node.
|
||||
* @property {boolean} forcedMove Indicates a forced move.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ChaosPartitionSecondaryMoveScheduledEvent
|
||||
*
|
||||
* @returns {object} metadata of ChaosPartitionSecondaryMoveScheduledEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ChaosPartitionSecondaryMoveScheduled',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ChaosPartitionSecondaryMoveScheduledEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
partitionId: {
|
||||
required: true,
|
||||
serializedName: 'PartitionId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
faultGroupId: {
|
||||
required: true,
|
||||
serializedName: 'FaultGroupId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
faultId: {
|
||||
required: true,
|
||||
serializedName: 'FaultId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
serviceName: {
|
||||
required: true,
|
||||
serializedName: 'ServiceName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
sourceNode: {
|
||||
required: true,
|
||||
serializedName: 'SourceNode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
destinationNode: {
|
||||
required: true,
|
||||
serializedName: 'DestinationNode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
forcedMove: {
|
||||
required: true,
|
||||
serializedName: 'ForcedMove',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ChaosPartitionSecondaryMoveScheduledEvent;
|
|
@ -0,0 +1,127 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Chaos Remove Replica Fault Scheduled event.
|
||||
*
|
||||
* @extends models['ReplicaEvent']
|
||||
*/
|
||||
class ChaosReplicaRemovalScheduledEvent extends models['ReplicaEvent'] {
|
||||
/**
|
||||
* Create a ChaosReplicaRemovalScheduledEvent.
|
||||
* @property {uuid} faultGroupId Id of fault group.
|
||||
* @property {uuid} faultId Id of fault.
|
||||
* @property {string} serviceUri Service name.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ChaosReplicaRemovalScheduledEvent
|
||||
*
|
||||
* @returns {object} metadata of ChaosReplicaRemovalScheduledEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ChaosReplicaRemovalScheduled',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ChaosReplicaRemovalScheduledEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
partitionId: {
|
||||
required: true,
|
||||
serializedName: 'PartitionId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
replicaId: {
|
||||
required: true,
|
||||
serializedName: 'ReplicaId',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
faultGroupId: {
|
||||
required: true,
|
||||
serializedName: 'FaultGroupId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
faultId: {
|
||||
required: true,
|
||||
serializedName: 'FaultId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
serviceUri: {
|
||||
required: true,
|
||||
serializedName: 'ServiceUri',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ChaosReplicaRemovalScheduledEvent;
|
|
@ -0,0 +1,127 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Chaos Restart Replica Fault Scheduled event.
|
||||
*
|
||||
* @extends models['ReplicaEvent']
|
||||
*/
|
||||
class ChaosReplicaRestartScheduledEvent extends models['ReplicaEvent'] {
|
||||
/**
|
||||
* Create a ChaosReplicaRestartScheduledEvent.
|
||||
* @property {uuid} faultGroupId Id of fault group.
|
||||
* @property {uuid} faultId Id of fault.
|
||||
* @property {string} serviceUri Service name.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ChaosReplicaRestartScheduledEvent
|
||||
*
|
||||
* @returns {object} metadata of ChaosReplicaRestartScheduledEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ChaosReplicaRestartScheduled',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ChaosReplicaRestartScheduledEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
partitionId: {
|
||||
required: true,
|
||||
serializedName: 'PartitionId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
replicaId: {
|
||||
required: true,
|
||||
serializedName: 'ReplicaId',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
faultGroupId: {
|
||||
required: true,
|
||||
serializedName: 'FaultGroupId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
faultId: {
|
||||
required: true,
|
||||
serializedName: 'FaultId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
serviceUri: {
|
||||
required: true,
|
||||
serializedName: 'ServiceUri',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ChaosReplicaRestartScheduledEvent;
|
|
@ -66,6 +66,13 @@ class ChaosStartedEvent extends models['ClusterEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -52,6 +52,13 @@ class ChaosStoppedEvent extends models['ClusterEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -19,16 +19,21 @@ const moment = require('moment');
|
|||
class ClusterConfigurationUpgradeDescription {
|
||||
/**
|
||||
* Create a ClusterConfigurationUpgradeDescription.
|
||||
* @property {string} clusterConfig The cluster configuration.
|
||||
* @property {string} clusterConfig The cluster configuration as a JSON
|
||||
* string. For example, [this
|
||||
* file](https://github.com/Azure-Samples/service-fabric-dotnet-standalone-cluster-configuration/blob/master/Samples/ClusterConfig.Unsecure.DevCluster.json)
|
||||
* contains JSON describing the [nodes and other properties of the
|
||||
* cluster](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-manifest).
|
||||
* @property {moment.duration} [healthCheckRetryTimeout] The length of time
|
||||
* between attempts to perform a health checks if the application or cluster
|
||||
* is not healthy. Default value: moment.duration('PT0H0M0S') .
|
||||
* between attempts to perform health checks if the application or cluster is
|
||||
* not healthy. Default value: moment.duration('PT0H0M0S') .
|
||||
* @property {moment.duration} [healthCheckWaitDurationInSeconds] The length
|
||||
* of time to wait after completing an upgrade domain before starting the
|
||||
* health checks process. Default value: moment.duration('PT0H0M0S') .
|
||||
* @property {moment.duration} [healthCheckStableDurationInSeconds] The
|
||||
* length of time that the application or cluster must remain healthy.
|
||||
* Default value: moment.duration('PT0H0M0S') .
|
||||
* length of time that the application or cluster must remain healthy before
|
||||
* the upgrade proceeds to the next upgrade domain. Default value:
|
||||
* moment.duration('PT0H0M0S') .
|
||||
* @property {moment.duration} [upgradeDomainTimeoutInSeconds] The timeout
|
||||
* for the upgrade domain. Default value: moment.duration('PT0H0M0S') .
|
||||
* @property {moment.duration} [upgradeTimeoutInSeconds] The upgrade timeout.
|
||||
|
|
|
@ -51,6 +51,13 @@ class ClusterEvent extends models['FabricEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -60,6 +60,13 @@ class ClusterHealthReportExpiredEvent extends models['ClusterEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -0,0 +1,154 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Cluster Health Report Created event.
|
||||
*
|
||||
* @extends models['ClusterEvent']
|
||||
*/
|
||||
class ClusterNewHealthReportEvent extends models['ClusterEvent'] {
|
||||
/**
|
||||
* Create a ClusterNewHealthReportEvent.
|
||||
* @property {string} sourceId Id of report source.
|
||||
* @property {string} property Describes the property.
|
||||
* @property {string} healthState Describes the property health state.
|
||||
* @property {number} timeToLiveMs Time to live in milli-seconds.
|
||||
* @property {number} sequenceNumber Sequence number of report.
|
||||
* @property {string} description Description of report.
|
||||
* @property {boolean} removeWhenExpired Indicates the removal when it
|
||||
* expires.
|
||||
* @property {date} sourceUtcTimestamp Source time.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ClusterNewHealthReportEvent
|
||||
*
|
||||
* @returns {object} metadata of ClusterNewHealthReportEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ClusterNewHealthReport',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ClusterNewHealthReportEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
sourceId: {
|
||||
required: true,
|
||||
serializedName: 'SourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
property: {
|
||||
required: true,
|
||||
serializedName: 'Property',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
healthState: {
|
||||
required: true,
|
||||
serializedName: 'HealthState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeToLiveMs: {
|
||||
required: true,
|
||||
serializedName: 'TimeToLiveMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
sequenceNumber: {
|
||||
required: true,
|
||||
serializedName: 'SequenceNumber',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
required: true,
|
||||
serializedName: 'Description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
removeWhenExpired: {
|
||||
required: true,
|
||||
serializedName: 'RemoveWhenExpired',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
sourceUtcTimestamp: {
|
||||
required: true,
|
||||
serializedName: 'SourceUtcTimestamp',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ClusterNewHealthReportEvent;
|
|
@ -0,0 +1,106 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Cluster Upgrade Completed event.
|
||||
*
|
||||
* @extends models['ClusterEvent']
|
||||
*/
|
||||
class ClusterUpgradeCompletedEvent extends models['ClusterEvent'] {
|
||||
/**
|
||||
* Create a ClusterUpgradeCompletedEvent.
|
||||
* @property {string} targetClusterVersion Target Cluster version.
|
||||
* @property {number} overallUpgradeElapsedTimeInMs Overall duration of
|
||||
* upgrade in milli-seconds.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ClusterUpgradeCompletedEvent
|
||||
*
|
||||
* @returns {object} metadata of ClusterUpgradeCompletedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ClusterUpgradeCompleted',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ClusterUpgradeCompletedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
targetClusterVersion: {
|
||||
required: true,
|
||||
serializedName: 'TargetClusterVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
overallUpgradeElapsedTimeInMs: {
|
||||
required: true,
|
||||
serializedName: 'OverallUpgradeElapsedTimeInMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ClusterUpgradeCompletedEvent;
|
|
@ -0,0 +1,122 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Cluster Upgrade Domain Completed event.
|
||||
*
|
||||
* @extends models['ClusterEvent']
|
||||
*/
|
||||
class ClusterUpgradeDomainCompletedEvent extends models['ClusterEvent'] {
|
||||
/**
|
||||
* Create a ClusterUpgradeDomainCompletedEvent.
|
||||
* @property {string} targetClusterVersion Target Cluster version.
|
||||
* @property {string} upgradeState State of upgrade.
|
||||
* @property {string} upgradeDomains Upgrade domains.
|
||||
* @property {number} upgradeDomainElapsedTimeInMs Duration of domain upgrade
|
||||
* in milli-seconds.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ClusterUpgradeDomainCompletedEvent
|
||||
*
|
||||
* @returns {object} metadata of ClusterUpgradeDomainCompletedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ClusterUpgradeDomainCompleted',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ClusterUpgradeDomainCompletedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
targetClusterVersion: {
|
||||
required: true,
|
||||
serializedName: 'TargetClusterVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
upgradeState: {
|
||||
required: true,
|
||||
serializedName: 'UpgradeState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
upgradeDomains: {
|
||||
required: true,
|
||||
serializedName: 'UpgradeDomains',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
upgradeDomainElapsedTimeInMs: {
|
||||
required: true,
|
||||
serializedName: 'UpgradeDomainElapsedTimeInMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ClusterUpgradeDomainCompletedEvent;
|
|
@ -0,0 +1,114 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Cluster Upgrade Rollback Completed event.
|
||||
*
|
||||
* @extends models['ClusterEvent']
|
||||
*/
|
||||
class ClusterUpgradeRollbackCompletedEvent extends models['ClusterEvent'] {
|
||||
/**
|
||||
* Create a ClusterUpgradeRollbackCompletedEvent.
|
||||
* @property {string} targetClusterVersion Target Cluster version.
|
||||
* @property {string} failureReason Describes failure.
|
||||
* @property {number} overallUpgradeElapsedTimeInMs Overall duration of
|
||||
* upgrade in milli-seconds.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ClusterUpgradeRollbackCompletedEvent
|
||||
*
|
||||
* @returns {object} metadata of ClusterUpgradeRollbackCompletedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ClusterUpgradeRollbackCompleted',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ClusterUpgradeRollbackCompletedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
targetClusterVersion: {
|
||||
required: true,
|
||||
serializedName: 'TargetClusterVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
failureReason: {
|
||||
required: true,
|
||||
serializedName: 'FailureReason',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
overallUpgradeElapsedTimeInMs: {
|
||||
required: true,
|
||||
serializedName: 'OverallUpgradeElapsedTimeInMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ClusterUpgradeRollbackCompletedEvent;
|
|
@ -0,0 +1,114 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Cluster Upgrade Rollback Started event.
|
||||
*
|
||||
* @extends models['ClusterEvent']
|
||||
*/
|
||||
class ClusterUpgradeRollbackStartedEvent extends models['ClusterEvent'] {
|
||||
/**
|
||||
* Create a ClusterUpgradeRollbackStartedEvent.
|
||||
* @property {string} targetClusterVersion Target Cluster version.
|
||||
* @property {string} failureReason Describes failure.
|
||||
* @property {number} overallUpgradeElapsedTimeInMs Overall duration of
|
||||
* upgrade in milli-seconds.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ClusterUpgradeRollbackStartedEvent
|
||||
*
|
||||
* @returns {object} metadata of ClusterUpgradeRollbackStartedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ClusterUpgradeRollbackStarted',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ClusterUpgradeRollbackStartedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
targetClusterVersion: {
|
||||
required: true,
|
||||
serializedName: 'TargetClusterVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
failureReason: {
|
||||
required: true,
|
||||
serializedName: 'FailureReason',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
overallUpgradeElapsedTimeInMs: {
|
||||
required: true,
|
||||
serializedName: 'OverallUpgradeElapsedTimeInMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ClusterUpgradeRollbackStartedEvent;
|
|
@ -0,0 +1,129 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Cluster Upgrade Started event.
|
||||
*
|
||||
* @extends models['ClusterEvent']
|
||||
*/
|
||||
class ClusterUpgradeStartedEvent extends models['ClusterEvent'] {
|
||||
/**
|
||||
* Create a ClusterUpgradeStartedEvent.
|
||||
* @property {string} currentClusterVersion Current Cluster version.
|
||||
* @property {string} targetClusterVersion Target Cluster version.
|
||||
* @property {string} upgradeType Type of upgrade.
|
||||
* @property {string} rollingUpgradeMode Mode of upgrade.
|
||||
* @property {string} failureAction Action if failed.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ClusterUpgradeStartedEvent
|
||||
*
|
||||
* @returns {object} metadata of ClusterUpgradeStartedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ClusterUpgradeStarted',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'ClusterUpgradeStartedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
currentClusterVersion: {
|
||||
required: true,
|
||||
serializedName: 'CurrentClusterVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
targetClusterVersion: {
|
||||
required: true,
|
||||
serializedName: 'TargetClusterVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
upgradeType: {
|
||||
required: true,
|
||||
serializedName: 'UpgradeType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
rollingUpgradeMode: {
|
||||
required: true,
|
||||
serializedName: 'RollingUpgradeMode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
failureAction: {
|
||||
required: true,
|
||||
serializedName: 'FailureAction',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ClusterUpgradeStartedEvent;
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The cluster version.
|
||||
*
|
||||
*/
|
||||
class ClusterVersion {
|
||||
/**
|
||||
* Create a ClusterVersion.
|
||||
* @property {string} [version] The Service Fabric cluster runtime version.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ClusterVersion
|
||||
*
|
||||
* @returns {object} metadata of ClusterVersion
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ClusterVersion',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ClusterVersion',
|
||||
modelProperties: {
|
||||
version: {
|
||||
required: false,
|
||||
serializedName: 'Version',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ClusterVersion;
|
|
@ -130,8 +130,8 @@ class ComposeDeploymentUpgradeDescription {
|
|||
* replicas. Default percentage is zero.
|
||||
* @property {number}
|
||||
* [applicationHealthPolicy.defaultServiceTypeHealthPolicy.maxPercentUnhealthyServices]
|
||||
* The maximum maximum allowed percentage of unhealthy services. Allowed
|
||||
* values are Byte values from zero to 100.
|
||||
* The maximum allowed percentage of unhealthy services. Allowed values are
|
||||
* Byte values from zero to 100.
|
||||
*
|
||||
* The percentage represents the maximum tolerated percentage of services
|
||||
* that can be unhealthy before the application is considered in error.
|
||||
|
|
|
@ -130,8 +130,8 @@ class ComposeDeploymentUpgradeProgressInfo {
|
|||
* replicas. Default percentage is zero.
|
||||
* @property {number}
|
||||
* [applicationHealthPolicy.defaultServiceTypeHealthPolicy.maxPercentUnhealthyServices]
|
||||
* The maximum maximum allowed percentage of unhealthy services. Allowed
|
||||
* values are Byte values from zero to 100.
|
||||
* The maximum allowed percentage of unhealthy services. Allowed values are
|
||||
* Byte values from zero to 100.
|
||||
*
|
||||
* The percentage represents the maximum tolerated percentage of services
|
||||
* that can be unhealthy before the application is considered in error.
|
||||
|
|
|
@ -25,7 +25,8 @@ class ContainerCodePackageProperties {
|
|||
* @property {string} [imageRegistryCredential.username] The username for the
|
||||
* private registry.
|
||||
* @property {string} [imageRegistryCredential.password] The password for the
|
||||
* private registry.
|
||||
* private registry. The password is required for create or update
|
||||
* operations, however it is not returned in the get or list operations.
|
||||
* @property {string} [entrypoint] Override for the default entry point in
|
||||
* the container.
|
||||
* @property {array} [commands] Command array to execute within the container
|
||||
|
@ -38,8 +39,7 @@ class ContainerCodePackageProperties {
|
|||
* path for Linux container is "/var/secrets".
|
||||
* @property {array} [labels] The labels to set in this container.
|
||||
* @property {array} [endpoints] The endpoints exposed by this container.
|
||||
* @property {object} resources This type describes the resource requirements
|
||||
* for a container or a service.
|
||||
* @property {object} resources The resources required by this container.
|
||||
* @property {object} [resources.requests] Describes the requested resources
|
||||
* for a given container.
|
||||
* @property {number} [resources.requests.memoryInGB] The memory request in
|
||||
|
@ -51,8 +51,20 @@ class ContainerCodePackageProperties {
|
|||
* @property {number} [resources.limits.memoryInGB] The memory limit in GB.
|
||||
* @property {number} [resources.limits.cpu] CPU limits in cores. At present,
|
||||
* only full cores are supported.
|
||||
* @property {array} [volumeRefs] The volumes to be attached to the
|
||||
* container.
|
||||
* @property {array} [volumeRefs] Volumes to be attached to the container.
|
||||
* The lifetime of these volumes is independent of the application's
|
||||
* lifetime.
|
||||
* @property {array} [volumes] Volumes to be attached to the container. The
|
||||
* lifetime of these volumes is scoped to the application's lifetime.
|
||||
* @property {object} [diagnostics] Reference to sinks in
|
||||
* DiagnosticsDescription.
|
||||
* @property {boolean} [diagnostics.enabled] Status of whether or not sinks
|
||||
* are enabled.
|
||||
* @property {array} [diagnostics.sinkRefs] List of sinks to be used if
|
||||
* enabled. References the list of sinks in DiagnosticsDescription.
|
||||
* @property {array} [reliableCollectionsRefs] A list of ReliableCollection
|
||||
* resources used by this particular code package. Please refer to
|
||||
* ReliablecollectionsRef for more details.
|
||||
* @property {object} [instanceView] Runtime information of a container
|
||||
* instance.
|
||||
* @property {number} [instanceView.restartCount] The number of times the
|
||||
|
@ -83,12 +95,6 @@ class ContainerCodePackageProperties {
|
|||
* Human-readable status of this state.
|
||||
* @property {array} [instanceView.events] The events of this container
|
||||
* instance.
|
||||
* @property {object} [diagnostics] Reference to sinks in
|
||||
* DiagnosticsDescription.
|
||||
* @property {boolean} [diagnostics.enabled] Status of whether or not sinks
|
||||
* are enabled.
|
||||
* @property {array} [diagnostics.sinkRefs] List of sinks to be used if
|
||||
* enabled. References the list of sinks in DiagnosticsDescription.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -225,10 +231,48 @@ class ContainerCodePackageProperties {
|
|||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'ContainerVolumeElementType',
|
||||
serializedName: 'VolumeReferenceElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ContainerVolume'
|
||||
className: 'VolumeReference'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
volumes: {
|
||||
required: false,
|
||||
serializedName: 'volumes',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'ApplicationScopedVolumeElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ApplicationScopedVolume'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
diagnostics: {
|
||||
required: false,
|
||||
serializedName: 'diagnostics',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DiagnosticsRef'
|
||||
}
|
||||
},
|
||||
reliableCollectionsRefs: {
|
||||
required: false,
|
||||
serializedName: 'reliableCollectionsRefs',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'ReliableCollectionsRefElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ReliableCollectionsRef'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -241,14 +285,6 @@ class ContainerCodePackageProperties {
|
|||
name: 'Composite',
|
||||
className: 'ContainerInstanceView'
|
||||
}
|
||||
},
|
||||
diagnostics: {
|
||||
required: false,
|
||||
serializedName: 'diagnostics',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DiagnosticsRef'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,6 +51,13 @@ class ContainerInstanceEvent extends models['FabricEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -62,6 +62,13 @@ class DeployedApplicationHealthReportExpiredEvent extends models['ApplicationEve
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -0,0 +1,177 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Deployed Application Health Report Created event.
|
||||
*
|
||||
* @extends models['ApplicationEvent']
|
||||
*/
|
||||
class DeployedApplicationNewHealthReportEvent extends models['ApplicationEvent'] {
|
||||
/**
|
||||
* Create a DeployedApplicationNewHealthReportEvent.
|
||||
* @property {number} applicationInstanceId Id of Application instance.
|
||||
* @property {string} nodeName The name of a Service Fabric node.
|
||||
* @property {string} sourceId Id of report source.
|
||||
* @property {string} property Describes the property.
|
||||
* @property {string} healthState Describes the property health state.
|
||||
* @property {number} timeToLiveMs Time to live in milli-seconds.
|
||||
* @property {number} sequenceNumber Sequence number of report.
|
||||
* @property {string} description Description of report.
|
||||
* @property {boolean} removeWhenExpired Indicates the removal when it
|
||||
* expires.
|
||||
* @property {date} sourceUtcTimestamp Source time.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DeployedApplicationNewHealthReportEvent
|
||||
*
|
||||
* @returns {object} metadata of DeployedApplicationNewHealthReportEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DeployedApplicationNewHealthReport',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'DeployedApplicationNewHealthReportEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
applicationInstanceId: {
|
||||
required: true,
|
||||
serializedName: 'ApplicationInstanceId',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
nodeName: {
|
||||
required: true,
|
||||
serializedName: 'NodeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
sourceId: {
|
||||
required: true,
|
||||
serializedName: 'SourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
property: {
|
||||
required: true,
|
||||
serializedName: 'Property',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
healthState: {
|
||||
required: true,
|
||||
serializedName: 'HealthState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeToLiveMs: {
|
||||
required: true,
|
||||
serializedName: 'TimeToLiveMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
sequenceNumber: {
|
||||
required: true,
|
||||
serializedName: 'SequenceNumber',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
required: true,
|
||||
serializedName: 'Description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
removeWhenExpired: {
|
||||
required: true,
|
||||
serializedName: 'RemoveWhenExpired',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
sourceUtcTimestamp: {
|
||||
required: true,
|
||||
serializedName: 'SourceUtcTimestamp',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DeployedApplicationNewHealthReportEvent;
|
|
@ -0,0 +1,195 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Deployed Service Health Report Expired event.
|
||||
*
|
||||
* @extends models['ApplicationEvent']
|
||||
*/
|
||||
class DeployedServicePackageHealthReportExpiredEvent extends models['ApplicationEvent'] {
|
||||
/**
|
||||
* Create a DeployedServicePackageHealthReportExpiredEvent.
|
||||
* @property {string} serviceManifest Service manifest name.
|
||||
* @property {number} servicePackageInstanceId Id of Service package
|
||||
* instance.
|
||||
* @property {string} servicePackageActivationId Id of Service package
|
||||
* activation.
|
||||
* @property {string} nodeName The name of a Service Fabric node.
|
||||
* @property {string} sourceId Id of report source.
|
||||
* @property {string} property Describes the property.
|
||||
* @property {string} healthState Describes the property health state.
|
||||
* @property {number} timeToLiveMs Time to live in milli-seconds.
|
||||
* @property {number} sequenceNumber Sequence number of report.
|
||||
* @property {string} description Description of report.
|
||||
* @property {boolean} removeWhenExpired Indicates the removal when it
|
||||
* expires.
|
||||
* @property {date} sourceUtcTimestamp Source time.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DeployedServicePackageHealthReportExpiredEvent
|
||||
*
|
||||
* @returns {object} metadata of DeployedServicePackageHealthReportExpiredEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DeployedServicePackageHealthReportExpired',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'DeployedServicePackageHealthReportExpiredEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
serviceManifest: {
|
||||
required: true,
|
||||
serializedName: 'ServiceManifest',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
servicePackageInstanceId: {
|
||||
required: true,
|
||||
serializedName: 'ServicePackageInstanceId',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
servicePackageActivationId: {
|
||||
required: true,
|
||||
serializedName: 'ServicePackageActivationId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeName: {
|
||||
required: true,
|
||||
serializedName: 'NodeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
sourceId: {
|
||||
required: true,
|
||||
serializedName: 'SourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
property: {
|
||||
required: true,
|
||||
serializedName: 'Property',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
healthState: {
|
||||
required: true,
|
||||
serializedName: 'HealthState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeToLiveMs: {
|
||||
required: true,
|
||||
serializedName: 'TimeToLiveMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
sequenceNumber: {
|
||||
required: true,
|
||||
serializedName: 'SequenceNumber',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
required: true,
|
||||
serializedName: 'Description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
removeWhenExpired: {
|
||||
required: true,
|
||||
serializedName: 'RemoveWhenExpired',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
sourceUtcTimestamp: {
|
||||
required: true,
|
||||
serializedName: 'SourceUtcTimestamp',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DeployedServicePackageHealthReportExpiredEvent;
|
|
@ -0,0 +1,195 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Deployed Service Health Report Created event.
|
||||
*
|
||||
* @extends models['ApplicationEvent']
|
||||
*/
|
||||
class DeployedServicePackageNewHealthReportEvent extends models['ApplicationEvent'] {
|
||||
/**
|
||||
* Create a DeployedServicePackageNewHealthReportEvent.
|
||||
* @property {string} serviceManifestName Service manifest name.
|
||||
* @property {number} servicePackageInstanceId Id of Service package
|
||||
* instance.
|
||||
* @property {string} servicePackageActivationId Id of Service package
|
||||
* activation.
|
||||
* @property {string} nodeName The name of a Service Fabric node.
|
||||
* @property {string} sourceId Id of report source.
|
||||
* @property {string} property Describes the property.
|
||||
* @property {string} healthState Describes the property health state.
|
||||
* @property {number} timeToLiveMs Time to live in milli-seconds.
|
||||
* @property {number} sequenceNumber Sequence number of report.
|
||||
* @property {string} description Description of report.
|
||||
* @property {boolean} removeWhenExpired Indicates the removal when it
|
||||
* expires.
|
||||
* @property {date} sourceUtcTimestamp Source time.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DeployedServicePackageNewHealthReportEvent
|
||||
*
|
||||
* @returns {object} metadata of DeployedServicePackageNewHealthReportEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DeployedServicePackageNewHealthReport',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'DeployedServicePackageNewHealthReportEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
serviceManifestName: {
|
||||
required: true,
|
||||
serializedName: 'ServiceManifestName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
servicePackageInstanceId: {
|
||||
required: true,
|
||||
serializedName: 'ServicePackageInstanceId',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
servicePackageActivationId: {
|
||||
required: true,
|
||||
serializedName: 'ServicePackageActivationId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeName: {
|
||||
required: true,
|
||||
serializedName: 'NodeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
sourceId: {
|
||||
required: true,
|
||||
serializedName: 'SourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
property: {
|
||||
required: true,
|
||||
serializedName: 'Property',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
healthState: {
|
||||
required: true,
|
||||
serializedName: 'HealthState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeToLiveMs: {
|
||||
required: true,
|
||||
serializedName: 'TimeToLiveMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
sequenceNumber: {
|
||||
required: true,
|
||||
serializedName: 'SequenceNumber',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
required: true,
|
||||
serializedName: 'Description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
removeWhenExpired: {
|
||||
required: true,
|
||||
serializedName: 'RemoveWhenExpired',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
sourceUtcTimestamp: {
|
||||
required: true,
|
||||
serializedName: 'SourceUtcTimestamp',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DeployedServicePackageNewHealthReportEvent;
|
|
@ -0,0 +1,55 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* It describes the body parameters while disabling backup of a backup
|
||||
* entity(Application/Service/Partition).
|
||||
*
|
||||
*/
|
||||
class DisableBackupDescription {
|
||||
/**
|
||||
* Create a DisableBackupDescription.
|
||||
* @property {boolean} cleanBackup Boolean flag to delete backups. It can be
|
||||
* set to true for deleting all the backups which were created for the backup
|
||||
* entity that is getting disabled for backup.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DisableBackupDescription
|
||||
*
|
||||
* @returns {object} metadata of DisableBackupDescription
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DisableBackupDescription',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DisableBackupDescription',
|
||||
modelProperties: {
|
||||
cleanBackup: {
|
||||
required: true,
|
||||
serializedName: 'CleanBackup',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DisableBackupDescription;
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Describes a reference to a service endpoint.
|
||||
*
|
||||
*/
|
||||
class EndpointRef {
|
||||
/**
|
||||
* Create a EndpointRef.
|
||||
* @property {string} [name] Name of the endpoint.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of EndpointRef
|
||||
*
|
||||
* @returns {object} metadata of EndpointRef
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'EndpointRef',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'EndpointRef',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: false,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = EndpointRef;
|
|
@ -71,6 +71,7 @@ class FabricError {
|
|||
* - "FABRIC_E_BACKUP_NOT_ENABLED"
|
||||
* - "FABRIC_E_BACKUP_POLICY_NOT_EXISTING"
|
||||
* - "FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING"
|
||||
* - "FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR"
|
||||
*
|
||||
* - Possible values of the error code for HTTP status code 409 (Conflict)
|
||||
* - "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS"
|
||||
|
@ -182,7 +183,7 @@ class FabricError {
|
|||
* 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS',
|
||||
* 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND',
|
||||
* 'FABRIC_E_VOLUME_ALREADY_EXISTS', 'FABRIC_E_VOLUME_NOT_FOUND',
|
||||
* 'SerializationError'
|
||||
* 'SerializationError', 'FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR'
|
||||
* @property {string} [error.message] Error message.
|
||||
*/
|
||||
constructor() {
|
||||
|
|
|
@ -67,6 +67,7 @@ class FabricErrorError {
|
|||
* - "FABRIC_E_BACKUP_NOT_ENABLED"
|
||||
* - "FABRIC_E_BACKUP_POLICY_NOT_EXISTING"
|
||||
* - "FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING"
|
||||
* - "FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR"
|
||||
*
|
||||
* - Possible values of the error code for HTTP status code 409 (Conflict)
|
||||
* - "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS"
|
||||
|
@ -178,7 +179,7 @@ class FabricErrorError {
|
|||
* 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS',
|
||||
* 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND',
|
||||
* 'FABRIC_E_VOLUME_ALREADY_EXISTS', 'FABRIC_E_VOLUME_NOT_FOUND',
|
||||
* 'SerializationError'
|
||||
* 'SerializationError', 'FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR'
|
||||
* @property {string} [message] Error message.
|
||||
*/
|
||||
constructor() {
|
||||
|
|
|
@ -19,6 +19,7 @@ class FabricEvent {
|
|||
* Create a FabricEvent.
|
||||
* @property {uuid} eventInstanceId The identifier for the FabricEvent
|
||||
* instance.
|
||||
* @property {string} [category] The category of event.
|
||||
* @property {date} timeStamp The time event was logged.
|
||||
* @property {boolean} [hasCorrelatedEvents] Shows there is existing related
|
||||
* events available.
|
||||
|
@ -53,6 +54,13 @@ class FabricEvent {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -0,0 +1,69 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Describes destination endpoint for routing traffic.
|
||||
*
|
||||
*/
|
||||
class GatewayDestination {
|
||||
/**
|
||||
* Create a GatewayDestination.
|
||||
* @property {string} applicationName Name of the service fabric Mesh
|
||||
* application.
|
||||
* @property {string} serviceName service that contains the endpoint.
|
||||
* @property {string} endpointName name of the endpoint in the service.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of GatewayDestination
|
||||
*
|
||||
* @returns {object} metadata of GatewayDestination
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'GatewayDestination',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'GatewayDestination',
|
||||
modelProperties: {
|
||||
applicationName: {
|
||||
required: true,
|
||||
serializedName: 'applicationName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
serviceName: {
|
||||
required: true,
|
||||
serializedName: 'serviceName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
endpointName: {
|
||||
required: true,
|
||||
serializedName: 'endpointName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = GatewayDestination;
|
|
@ -0,0 +1,150 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* This type describes a gateway resource.
|
||||
*
|
||||
*/
|
||||
class GatewayResourceDescription {
|
||||
/**
|
||||
* Create a GatewayResourceDescription.
|
||||
* @property {string} name Name of the Gateway resource.
|
||||
* @property {string} [description] User readable description of the gateway.
|
||||
* @property {object} sourceNetwork Network the gateway should listen on for
|
||||
* requests.
|
||||
* @property {string} [sourceNetwork.name] Name of the network
|
||||
* @property {array} [sourceNetwork.endpointRefs] A list of endpoints that
|
||||
* are exposed on this network.
|
||||
* @property {object} destinationNetwork Network that the Application is
|
||||
* using.
|
||||
* @property {string} [destinationNetwork.name] Name of the network
|
||||
* @property {array} [destinationNetwork.endpointRefs] A list of endpoints
|
||||
* that are exposed on this network.
|
||||
* @property {array} [tcp] Configuration for tcp connectivity for this
|
||||
* gateway.
|
||||
* @property {array} [http] Configuration for http connectivity for this
|
||||
* gateway.
|
||||
* @property {string} [status] Status of the resource. Possible values
|
||||
* include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
|
||||
* @property {string} [statusDetails] Gives additional information about the
|
||||
* current status of the gateway.
|
||||
* @property {string} [ipAddress] IP address of the gateway. This is
|
||||
* populated in the response and is ignored for incoming requests.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of GatewayResourceDescription
|
||||
*
|
||||
* @returns {object} metadata of GatewayResourceDescription
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'GatewayResourceDescription',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'GatewayResourceDescription',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
required: false,
|
||||
serializedName: 'properties.description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
sourceNetwork: {
|
||||
required: true,
|
||||
serializedName: 'properties.sourceNetwork',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'NetworkRef'
|
||||
}
|
||||
},
|
||||
destinationNetwork: {
|
||||
required: true,
|
||||
serializedName: 'properties.destinationNetwork',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'NetworkRef'
|
||||
}
|
||||
},
|
||||
tcp: {
|
||||
required: false,
|
||||
serializedName: 'properties.tcp',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'TcpConfigElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'TcpConfig'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
http: {
|
||||
required: false,
|
||||
serializedName: 'properties.http',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'HttpConfigElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'HttpConfig'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
status: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.status',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
statusDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.statusDetails',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
ipAddress: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.ipAddress',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = GatewayResourceDescription;
|
|
@ -75,7 +75,7 @@ class HealthInformation {
|
|||
* of this property is false by default.
|
||||
* When clients report periodically, they should set RemoveWhenExpired false
|
||||
* (default).
|
||||
* This way, is the reporter has issues (eg. deadlock) and can't report, the
|
||||
* This way, if the reporter has issues (e.g. deadlock) and can't report, the
|
||||
* entity is evaluated at error when the health report expires.
|
||||
* This flags the entity as being in Error health state.
|
||||
*/
|
||||
|
|
|
@ -0,0 +1,77 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Describes the http configuration for external connectivity for this network.
|
||||
*
|
||||
*/
|
||||
class HttpConfig {
|
||||
/**
|
||||
* Create a HttpConfig.
|
||||
* @property {string} name http gateway config name.
|
||||
* @property {number} port Specifies the port at which the service endpoint
|
||||
* below needs to be exposed.
|
||||
* @property {array} hosts description for routing.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of HttpConfig
|
||||
*
|
||||
* @returns {object} metadata of HttpConfig
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'HttpConfig',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'HttpConfig',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
port: {
|
||||
required: true,
|
||||
serializedName: 'port',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
hosts: {
|
||||
required: true,
|
||||
serializedName: 'hosts',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'HttpHostConfigElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'HttpHostConfig'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = HttpConfig;
|
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Describes the hostname properties for http routing.
|
||||
*
|
||||
*/
|
||||
class HttpHostConfig {
|
||||
/**
|
||||
* Create a HttpHostConfig.
|
||||
* @property {string} name http hostname config name.
|
||||
* @property {array} routes Route information to use for routing. Routes are
|
||||
* processed in the order they are specified. Specify routes that are more
|
||||
* specific before routes that can hamdle general cases.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of HttpHostConfig
|
||||
*
|
||||
* @returns {object} metadata of HttpHostConfig
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'HttpHostConfig',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'HttpHostConfig',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
routes: {
|
||||
required: true,
|
||||
serializedName: 'routes',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'HttpRouteConfigElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'HttpRouteConfig'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = HttpHostConfig;
|
|
@ -0,0 +1,84 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Describes the hostname properties for http routing.
|
||||
*
|
||||
*/
|
||||
class HttpRouteConfig {
|
||||
/**
|
||||
* Create a HttpRouteConfig.
|
||||
* @property {string} name http route name.
|
||||
* @property {object} match Describes a rule for http route matching.
|
||||
* @property {object} [match.path] Path to match for routing.
|
||||
* @property {string} [match.path.value] Uri path to match for request.
|
||||
* @property {string} [match.path.rewrite] replacement string for matched
|
||||
* part of the Uri.
|
||||
* @property {array} [match.headers] headers and their values to match in
|
||||
* request.
|
||||
* @property {object} destination Describes destination endpoint for routing
|
||||
* traffic.
|
||||
* @property {string} [destination.applicationName] Name of the service
|
||||
* fabric Mesh application.
|
||||
* @property {string} [destination.serviceName] service that contains the
|
||||
* endpoint.
|
||||
* @property {string} [destination.endpointName] name of the endpoint in the
|
||||
* service.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of HttpRouteConfig
|
||||
*
|
||||
* @returns {object} metadata of HttpRouteConfig
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'HttpRouteConfig',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'HttpRouteConfig',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
match: {
|
||||
required: true,
|
||||
serializedName: 'match',
|
||||
defaultValue: {},
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'HttpRouteMatchRule'
|
||||
}
|
||||
},
|
||||
destination: {
|
||||
required: true,
|
||||
serializedName: 'destination',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'GatewayDestination'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = HttpRouteConfig;
|
|
@ -0,0 +1,69 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Describes header information for http route matching.
|
||||
*
|
||||
*/
|
||||
class HttpRouteMatchHeader {
|
||||
/**
|
||||
* Create a HttpRouteMatchHeader.
|
||||
* @property {string} name Name of header to match in request.
|
||||
* @property {string} [value] Value of header to match in request.
|
||||
* @property {string} [type] how to match header value. Possible values
|
||||
* include: 'exact'
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of HttpRouteMatchHeader
|
||||
*
|
||||
* @returns {object} metadata of HttpRouteMatchHeader
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'HttpRouteMatchHeader',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'HttpRouteMatchHeader',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
value: {
|
||||
required: false,
|
||||
serializedName: 'value',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
required: false,
|
||||
serializedName: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = HttpRouteMatchHeader;
|
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Path to match for routing.
|
||||
*
|
||||
*/
|
||||
class HttpRouteMatchPath {
|
||||
/**
|
||||
* Create a HttpRouteMatchPath.
|
||||
* @property {string} value Uri path to match for request.
|
||||
* @property {string} [rewrite] replacement string for matched part of the
|
||||
* Uri.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of HttpRouteMatchPath
|
||||
*
|
||||
* @returns {object} metadata of HttpRouteMatchPath
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'HttpRouteMatchPath',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'HttpRouteMatchPath',
|
||||
modelProperties: {
|
||||
value: {
|
||||
required: true,
|
||||
serializedName: 'value',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
rewrite: {
|
||||
required: false,
|
||||
serializedName: 'rewrite',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
required: true,
|
||||
isConstant: true,
|
||||
serializedName: 'type',
|
||||
defaultValue: 'prefix',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = HttpRouteMatchPath;
|
|
@ -0,0 +1,73 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Describes a rule for http route matching.
|
||||
*
|
||||
*/
|
||||
class HttpRouteMatchRule {
|
||||
/**
|
||||
* Create a HttpRouteMatchRule.
|
||||
* @property {object} path Path to match for routing.
|
||||
* @property {string} [path.value] Uri path to match for request.
|
||||
* @property {string} [path.rewrite] replacement string for matched part of
|
||||
* the Uri.
|
||||
* @property {array} [headers] headers and their values to match in request.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of HttpRouteMatchRule
|
||||
*
|
||||
* @returns {object} metadata of HttpRouteMatchRule
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'HttpRouteMatchRule',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'HttpRouteMatchRule',
|
||||
modelProperties: {
|
||||
path: {
|
||||
required: true,
|
||||
serializedName: 'path',
|
||||
defaultValue: {},
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'HttpRouteMatchPath'
|
||||
}
|
||||
},
|
||||
headers: {
|
||||
required: false,
|
||||
serializedName: 'headers',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'HttpRouteMatchHeaderElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'HttpRouteMatchHeader'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = HttpRouteMatchRule;
|
|
@ -20,7 +20,9 @@ class ImageRegistryCredential {
|
|||
* @property {string} server Docker image registry server, without protocol
|
||||
* such as `http` and `https`.
|
||||
* @property {string} username The username for the private registry.
|
||||
* @property {string} [password] The password for the private registry.
|
||||
* @property {string} [password] The password for the private registry. The
|
||||
* password is required for create or update operations, however it is not
|
||||
* returned in the get or list operations.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -14,6 +14,9 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
exports.FabricErrorError = require('./fabricErrorError');
|
||||
exports.FabricError = require('./fabricError');
|
||||
exports.ContainerLogs = require('./containerLogs');
|
||||
exports.AadMetadata = require('./aadMetadata');
|
||||
exports.AadMetadataObject = require('./aadMetadataObject');
|
||||
exports.AnalysisEventMetadata = require('./analysisEventMetadata');
|
||||
|
@ -86,6 +89,7 @@ exports.ClusterHealthPolicy = require('./clusterHealthPolicy');
|
|||
exports.ClusterHealthChunkQueryDescription = require('./clusterHealthChunkQueryDescription');
|
||||
exports.ClusterHealthPolicies = require('./clusterHealthPolicies');
|
||||
exports.ClusterManifest = require('./clusterManifest');
|
||||
exports.ClusterVersion = require('./clusterVersion');
|
||||
exports.ContainerApiRequestBody = require('./containerApiRequestBody');
|
||||
exports.ContainerApiResult = require('./containerApiResult');
|
||||
exports.ContainerApiResponse = require('./containerApiResponse');
|
||||
|
@ -110,12 +114,9 @@ exports.HealthStateCount = require('./healthStateCount');
|
|||
exports.EntityKindHealthStateCount = require('./entityKindHealthStateCount');
|
||||
exports.HealthStatistics = require('./healthStatistics');
|
||||
exports.Epoch = require('./epoch');
|
||||
exports.BackupEpoch = require('./backupEpoch');
|
||||
exports.EventHealthEvaluation = require('./eventHealthEvaluation');
|
||||
exports.FabricCodeVersionInfo = require('./fabricCodeVersionInfo');
|
||||
exports.FabricConfigVersionInfo = require('./fabricConfigVersionInfo');
|
||||
exports.FabricErrorError = require('./fabricErrorError');
|
||||
exports.FabricError = require('./fabricError');
|
||||
exports.ClusterConfigurationUpgradeStatusInfo = require('./clusterConfigurationUpgradeStatusInfo');
|
||||
exports.PartitionInformation = require('./partitionInformation');
|
||||
exports.Int64RangePartitionInformation = require('./int64RangePartitionInformation');
|
||||
|
@ -322,8 +323,11 @@ exports.SuccessfulPropertyBatchInfo = require('./successfulPropertyBatchInfo');
|
|||
exports.FailedPropertyBatchInfo = require('./failedPropertyBatchInfo');
|
||||
exports.BackupScheduleDescription = require('./backupScheduleDescription');
|
||||
exports.BackupStorageDescription = require('./backupStorageDescription');
|
||||
exports.RetentionPolicyDescription = require('./retentionPolicyDescription');
|
||||
exports.BackupPolicyDescription = require('./backupPolicyDescription');
|
||||
exports.PagedBackupPolicyDescriptionList = require('./pagedBackupPolicyDescriptionList');
|
||||
exports.BasicRetentionPolicyDescription = require('./basicRetentionPolicyDescription');
|
||||
exports.DisableBackupDescription = require('./disableBackupDescription');
|
||||
exports.BackupConfigurationInfo = require('./backupConfigurationInfo');
|
||||
exports.ApplicationBackupConfigurationInfo = require('./applicationBackupConfigurationInfo');
|
||||
exports.ServiceBackupConfigurationInfo = require('./serviceBackupConfigurationInfo');
|
||||
|
@ -362,81 +366,97 @@ exports.RepairTaskUpdateInfo = require('./repairTaskUpdateInfo');
|
|||
exports.UploadChunkRange = require('./uploadChunkRange');
|
||||
exports.UploadSessionInfo = require('./uploadSessionInfo');
|
||||
exports.UploadSession = require('./uploadSession');
|
||||
exports.ContainerLogs = require('./containerLogs');
|
||||
exports.AveragePartitionLoadScalingTrigger = require('./averagePartitionLoadScalingTrigger');
|
||||
exports.AverageServiceLoadScalingTrigger = require('./averageServiceLoadScalingTrigger');
|
||||
exports.PartitionInstanceCountScaleMechanism = require('./partitionInstanceCountScaleMechanism');
|
||||
exports.AddRemoveIncrementalNamedPartitionScalingMechanism = require('./addRemoveIncrementalNamedPartitionScalingMechanism');
|
||||
exports.ApplicationCreatedEvent = require('./applicationCreatedEvent');
|
||||
exports.ApplicationDeletedEvent = require('./applicationDeletedEvent');
|
||||
exports.ApplicationHealthReportCreatedEvent = require('./applicationHealthReportCreatedEvent');
|
||||
exports.ApplicationNewHealthReportEvent = require('./applicationNewHealthReportEvent');
|
||||
exports.ApplicationHealthReportExpiredEvent = require('./applicationHealthReportExpiredEvent');
|
||||
exports.ApplicationUpgradeCompleteEvent = require('./applicationUpgradeCompleteEvent');
|
||||
exports.ApplicationUpgradeDomainCompleteEvent = require('./applicationUpgradeDomainCompleteEvent');
|
||||
exports.ApplicationUpgradeRollbackCompleteEvent = require('./applicationUpgradeRollbackCompleteEvent');
|
||||
exports.ApplicationUpgradeRollbackStartEvent = require('./applicationUpgradeRollbackStartEvent');
|
||||
exports.ApplicationUpgradeStartEvent = require('./applicationUpgradeStartEvent');
|
||||
exports.DeployedApplicationHealthReportCreatedEvent = require('./deployedApplicationHealthReportCreatedEvent');
|
||||
exports.ApplicationUpgradeCompletedEvent = require('./applicationUpgradeCompletedEvent');
|
||||
exports.ApplicationUpgradeDomainCompletedEvent = require('./applicationUpgradeDomainCompletedEvent');
|
||||
exports.ApplicationUpgradeRollbackCompletedEvent = require('./applicationUpgradeRollbackCompletedEvent');
|
||||
exports.ApplicationUpgradeRollbackStartedEvent = require('./applicationUpgradeRollbackStartedEvent');
|
||||
exports.ApplicationUpgradeStartedEvent = require('./applicationUpgradeStartedEvent');
|
||||
exports.DeployedApplicationNewHealthReportEvent = require('./deployedApplicationNewHealthReportEvent');
|
||||
exports.DeployedApplicationHealthReportExpiredEvent = require('./deployedApplicationHealthReportExpiredEvent');
|
||||
exports.ProcessDeactivatedEvent = require('./processDeactivatedEvent');
|
||||
exports.ContainerDeactivatedEvent = require('./containerDeactivatedEvent');
|
||||
exports.ApplicationProcessExitedEvent = require('./applicationProcessExitedEvent');
|
||||
exports.ApplicationContainerInstanceExitedEvent = require('./applicationContainerInstanceExitedEvent');
|
||||
exports.NodeAbortedEvent = require('./nodeAbortedEvent');
|
||||
exports.NodeAbortingEvent = require('./nodeAbortingEvent');
|
||||
exports.NodeAddedEvent = require('./nodeAddedEvent');
|
||||
exports.NodeCloseEvent = require('./nodeCloseEvent');
|
||||
exports.NodeClosingEvent = require('./nodeClosingEvent');
|
||||
exports.NodeDeactivateCompleteEvent = require('./nodeDeactivateCompleteEvent');
|
||||
exports.NodeDeactivateStartEvent = require('./nodeDeactivateStartEvent');
|
||||
exports.NodeAddedToClusterEvent = require('./nodeAddedToClusterEvent');
|
||||
exports.NodeClosedEvent = require('./nodeClosedEvent');
|
||||
exports.NodeDeactivateCompletedEvent = require('./nodeDeactivateCompletedEvent');
|
||||
exports.NodeDeactivateStartedEvent = require('./nodeDeactivateStartedEvent');
|
||||
exports.NodeDownEvent = require('./nodeDownEvent');
|
||||
exports.NodeHealthReportCreatedEvent = require('./nodeHealthReportCreatedEvent');
|
||||
exports.NodeNewHealthReportEvent = require('./nodeNewHealthReportEvent');
|
||||
exports.NodeHealthReportExpiredEvent = require('./nodeHealthReportExpiredEvent');
|
||||
exports.NodeOpenedSuccessEvent = require('./nodeOpenedSuccessEvent');
|
||||
exports.NodeOpenSucceededEvent = require('./nodeOpenSucceededEvent');
|
||||
exports.NodeOpenFailedEvent = require('./nodeOpenFailedEvent');
|
||||
exports.NodeOpeningEvent = require('./nodeOpeningEvent');
|
||||
exports.NodeRemovedEvent = require('./nodeRemovedEvent');
|
||||
exports.NodeRemovedFromClusterEvent = require('./nodeRemovedFromClusterEvent');
|
||||
exports.NodeUpEvent = require('./nodeUpEvent');
|
||||
exports.PartitionHealthReportCreatedEvent = require('./partitionHealthReportCreatedEvent');
|
||||
exports.PartitionNewHealthReportEvent = require('./partitionNewHealthReportEvent');
|
||||
exports.PartitionHealthReportExpiredEvent = require('./partitionHealthReportExpiredEvent');
|
||||
exports.PartitionReconfigurationCompletedEvent = require('./partitionReconfigurationCompletedEvent');
|
||||
exports.PartitionReconfiguredEvent = require('./partitionReconfiguredEvent');
|
||||
exports.PartitionPrimaryMoveAnalysisEvent = require('./partitionPrimaryMoveAnalysisEvent');
|
||||
exports.ServiceCreatedEvent = require('./serviceCreatedEvent');
|
||||
exports.ServiceDeletedEvent = require('./serviceDeletedEvent');
|
||||
exports.ServiceHealthReportCreatedEvent = require('./serviceHealthReportCreatedEvent');
|
||||
exports.ServiceNewHealthReportEvent = require('./serviceNewHealthReportEvent');
|
||||
exports.ServiceHealthReportExpiredEvent = require('./serviceHealthReportExpiredEvent');
|
||||
exports.DeployedServiceHealthReportCreatedEvent = require('./deployedServiceHealthReportCreatedEvent');
|
||||
exports.DeployedServiceHealthReportExpiredEvent = require('./deployedServiceHealthReportExpiredEvent');
|
||||
exports.StatefulReplicaHealthReportCreatedEvent = require('./statefulReplicaHealthReportCreatedEvent');
|
||||
exports.DeployedServicePackageNewHealthReportEvent = require('./deployedServicePackageNewHealthReportEvent');
|
||||
exports.DeployedServicePackageHealthReportExpiredEvent = require('./deployedServicePackageHealthReportExpiredEvent');
|
||||
exports.StatefulReplicaNewHealthReportEvent = require('./statefulReplicaNewHealthReportEvent');
|
||||
exports.StatefulReplicaHealthReportExpiredEvent = require('./statefulReplicaHealthReportExpiredEvent');
|
||||
exports.StatelessReplicaHealthReportCreatedEvent = require('./statelessReplicaHealthReportCreatedEvent');
|
||||
exports.StatelessReplicaNewHealthReportEvent = require('./statelessReplicaNewHealthReportEvent');
|
||||
exports.StatelessReplicaHealthReportExpiredEvent = require('./statelessReplicaHealthReportExpiredEvent');
|
||||
exports.ClusterHealthReportCreatedEvent = require('./clusterHealthReportCreatedEvent');
|
||||
exports.ClusterNewHealthReportEvent = require('./clusterNewHealthReportEvent');
|
||||
exports.ClusterHealthReportExpiredEvent = require('./clusterHealthReportExpiredEvent');
|
||||
exports.ClusterUpgradeCompleteEvent = require('./clusterUpgradeCompleteEvent');
|
||||
exports.ClusterUpgradeDomainCompleteEvent = require('./clusterUpgradeDomainCompleteEvent');
|
||||
exports.ClusterUpgradeRollbackCompleteEvent = require('./clusterUpgradeRollbackCompleteEvent');
|
||||
exports.ClusterUpgradeRollbackStartEvent = require('./clusterUpgradeRollbackStartEvent');
|
||||
exports.ClusterUpgradeStartEvent = require('./clusterUpgradeStartEvent');
|
||||
exports.ClusterUpgradeCompletedEvent = require('./clusterUpgradeCompletedEvent');
|
||||
exports.ClusterUpgradeDomainCompletedEvent = require('./clusterUpgradeDomainCompletedEvent');
|
||||
exports.ClusterUpgradeRollbackCompletedEvent = require('./clusterUpgradeRollbackCompletedEvent');
|
||||
exports.ClusterUpgradeRollbackStartedEvent = require('./clusterUpgradeRollbackStartedEvent');
|
||||
exports.ClusterUpgradeStartedEvent = require('./clusterUpgradeStartedEvent');
|
||||
exports.ChaosStoppedEvent = require('./chaosStoppedEvent');
|
||||
exports.ChaosStartedEvent = require('./chaosStartedEvent');
|
||||
exports.ChaosRestartNodeFaultCompletedEvent = require('./chaosRestartNodeFaultCompletedEvent');
|
||||
exports.ChaosRestartCodePackageFaultScheduledEvent = require('./chaosRestartCodePackageFaultScheduledEvent');
|
||||
exports.ChaosRestartCodePackageFaultCompletedEvent = require('./chaosRestartCodePackageFaultCompletedEvent');
|
||||
exports.ChaosRemoveReplicaFaultScheduledEvent = require('./chaosRemoveReplicaFaultScheduledEvent');
|
||||
exports.ChaosRemoveReplicaFaultCompletedEvent = require('./chaosRemoveReplicaFaultCompletedEvent');
|
||||
exports.ChaosMoveSecondaryFaultScheduledEvent = require('./chaosMoveSecondaryFaultScheduledEvent');
|
||||
exports.ChaosMovePrimaryFaultScheduledEvent = require('./chaosMovePrimaryFaultScheduledEvent');
|
||||
exports.ChaosRestartReplicaFaultScheduledEvent = require('./chaosRestartReplicaFaultScheduledEvent');
|
||||
exports.ChaosRestartNodeFaultScheduledEvent = require('./chaosRestartNodeFaultScheduledEvent');
|
||||
exports.ServiceResourceDescription = require('./serviceResourceDescription');
|
||||
exports.DiagnosticsSinkProperties = require('./diagnosticsSinkProperties');
|
||||
exports.DiagnosticsDescription = require('./diagnosticsDescription');
|
||||
exports.ApplicationResourceDescription = require('./applicationResourceDescription');
|
||||
exports.PagedServiceResourceDescriptionList = require('./pagedServiceResourceDescriptionList');
|
||||
exports.ServiceReplicaProperties = require('./serviceReplicaProperties');
|
||||
exports.ServiceResourceReplicaDescription = require('./serviceResourceReplicaDescription');
|
||||
exports.PagedServiceResourceReplicaDescriptionList = require('./pagedServiceResourceReplicaDescriptionList');
|
||||
exports.ChaosCodePackageRestartScheduledEvent = require('./chaosCodePackageRestartScheduledEvent');
|
||||
exports.ChaosReplicaRemovalScheduledEvent = require('./chaosReplicaRemovalScheduledEvent');
|
||||
exports.ChaosPartitionSecondaryMoveScheduledEvent = require('./chaosPartitionSecondaryMoveScheduledEvent');
|
||||
exports.ChaosPartitionPrimaryMoveScheduledEvent = require('./chaosPartitionPrimaryMoveScheduledEvent');
|
||||
exports.ChaosReplicaRestartScheduledEvent = require('./chaosReplicaRestartScheduledEvent');
|
||||
exports.ChaosNodeRestartScheduledEvent = require('./chaosNodeRestartScheduledEvent');
|
||||
exports.SecretResourcePropertiesBase = require('./secretResourcePropertiesBase');
|
||||
exports.SecretResourceProperties = require('./secretResourceProperties');
|
||||
exports.InlinedValueSecretResourceProperties = require('./inlinedValueSecretResourceProperties');
|
||||
exports.SecretResourceDescription = require('./secretResourceDescription');
|
||||
exports.PagedSecretResourceDescriptionList = require('./pagedSecretResourceDescriptionList');
|
||||
exports.SecretValue = require('./secretValue');
|
||||
exports.SecretValueProperties = require('./secretValueProperties');
|
||||
exports.SecretValueResourceDescription = require('./secretValueResourceDescription');
|
||||
exports.PagedSecretValueResourceDescriptionList = require('./pagedSecretValueResourceDescriptionList');
|
||||
exports.VolumeProviderParametersAzureFile = require('./volumeProviderParametersAzureFile');
|
||||
exports.VolumeReference = require('./volumeReference');
|
||||
exports.ApplicationScopedVolumeCreationParameters = require('./applicationScopedVolumeCreationParameters');
|
||||
exports.ApplicationScopedVolume = require('./applicationScopedVolume');
|
||||
exports.ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk = require('./applicationScopedVolumeCreationParametersServiceFabricVolumeDisk');
|
||||
exports.VolumeResourceDescription = require('./volumeResourceDescription');
|
||||
exports.PagedVolumeResourceDescriptionList = require('./pagedVolumeResourceDescriptionList');
|
||||
exports.NetworkResourcePropertiesBase = require('./networkResourcePropertiesBase');
|
||||
exports.NetworkResourceProperties = require('./networkResourceProperties');
|
||||
exports.LocalNetworkResourceProperties = require('./localNetworkResourceProperties');
|
||||
exports.EndpointRef = require('./endpointRef');
|
||||
exports.NetworkRef = require('./networkRef');
|
||||
exports.NetworkResourceDescription = require('./networkResourceDescription');
|
||||
exports.PagedNetworkResourceDescriptionList = require('./pagedNetworkResourceDescriptionList');
|
||||
exports.GatewayDestination = require('./gatewayDestination');
|
||||
exports.TcpConfig = require('./tcpConfig');
|
||||
exports.HttpRouteMatchPath = require('./httpRouteMatchPath');
|
||||
exports.HttpRouteMatchHeader = require('./httpRouteMatchHeader');
|
||||
exports.HttpRouteMatchRule = require('./httpRouteMatchRule');
|
||||
exports.HttpRouteConfig = require('./httpRouteConfig');
|
||||
exports.HttpHostConfig = require('./httpHostConfig');
|
||||
exports.HttpConfig = require('./httpConfig');
|
||||
exports.GatewayResourceDescription = require('./gatewayResourceDescription');
|
||||
exports.PagedGatewayResourceDescriptionList = require('./pagedGatewayResourceDescriptionList');
|
||||
exports.ImageRegistryCredential = require('./imageRegistryCredential');
|
||||
exports.EnvironmentVariable = require('./environmentVariable');
|
||||
exports.Setting = require('./setting');
|
||||
|
@ -445,13 +465,30 @@ exports.EndpointProperties = require('./endpointProperties');
|
|||
exports.ResourceRequests = require('./resourceRequests');
|
||||
exports.ResourceLimits = require('./resourceLimits');
|
||||
exports.ResourceRequirements = require('./resourceRequirements');
|
||||
exports.ContainerVolume = require('./containerVolume');
|
||||
exports.DiagnosticsRef = require('./diagnosticsRef');
|
||||
exports.ReliableCollectionsRef = require('./reliableCollectionsRef');
|
||||
exports.ContainerState = require('./containerState');
|
||||
exports.ContainerEvent = require('./containerEvent');
|
||||
exports.ContainerInstanceView = require('./containerInstanceView');
|
||||
exports.DiagnosticsRef = require('./diagnosticsRef');
|
||||
exports.ContainerCodePackageProperties = require('./containerCodePackageProperties');
|
||||
exports.NetworkRef = require('./networkRef');
|
||||
exports.AutoScalingTrigger = require('./autoScalingTrigger');
|
||||
exports.AutoScalingMechanism = require('./autoScalingMechanism');
|
||||
exports.AutoScalingPolicy = require('./autoScalingPolicy');
|
||||
exports.ServiceResourceDescription = require('./serviceResourceDescription');
|
||||
exports.DiagnosticsSinkProperties = require('./diagnosticsSinkProperties');
|
||||
exports.DiagnosticsDescription = require('./diagnosticsDescription');
|
||||
exports.AzureInternalMonitoringPipelineSinkDescription = require('./azureInternalMonitoringPipelineSinkDescription');
|
||||
exports.AddRemoveReplicaScalingMechanism = require('./addRemoveReplicaScalingMechanism');
|
||||
exports.AutoScalingMetric = require('./autoScalingMetric');
|
||||
exports.AutoScalingResourceMetric = require('./autoScalingResourceMetric');
|
||||
exports.ServiceProperties = require('./serviceProperties');
|
||||
exports.ServiceReplicaProperties = require('./serviceReplicaProperties');
|
||||
exports.ServiceReplicaDescription = require('./serviceReplicaDescription');
|
||||
exports.AverageLoadScalingTrigger = require('./averageLoadScalingTrigger');
|
||||
exports.PagedServiceResourceDescriptionList = require('./pagedServiceResourceDescriptionList');
|
||||
exports.PagedServiceReplicaDescriptionList = require('./pagedServiceReplicaDescriptionList');
|
||||
exports.ApplicationResourceDescription = require('./applicationResourceDescription');
|
||||
exports.PagedApplicationResourceDescriptionList = require('./pagedApplicationResourceDescriptionList');
|
||||
exports.discriminators = {
|
||||
'FabricEvent.ApplicationEvent' : exports.ApplicationEvent,
|
||||
'HealthEvaluation' : exports.HealthEvaluation,
|
||||
|
@ -573,6 +610,8 @@ exports.discriminators = {
|
|||
'PropertyBatchInfo.Failed' : exports.FailedPropertyBatchInfo,
|
||||
'BackupScheduleDescription' : exports.BackupScheduleDescription,
|
||||
'BackupStorageDescription' : exports.BackupStorageDescription,
|
||||
'RetentionPolicyDescription' : exports.RetentionPolicyDescription,
|
||||
'RetentionPolicyDescription.Basic' : exports.BasicRetentionPolicyDescription,
|
||||
'BackupConfigurationInfo.Application' : exports.ApplicationBackupConfigurationInfo,
|
||||
'BackupConfigurationInfo.Service' : exports.ServiceBackupConfigurationInfo,
|
||||
'BackupConfigurationInfo' : exports.BackupConfigurationInfo,
|
||||
|
@ -595,63 +634,72 @@ exports.discriminators = {
|
|||
'ScalingMechanismDescription.AddRemoveIncrementalNamedPartition' : exports.AddRemoveIncrementalNamedPartitionScalingMechanism,
|
||||
'FabricEvent.ApplicationCreated' : exports.ApplicationCreatedEvent,
|
||||
'FabricEvent.ApplicationDeleted' : exports.ApplicationDeletedEvent,
|
||||
'FabricEvent.ApplicationHealthReportCreated' : exports.ApplicationHealthReportCreatedEvent,
|
||||
'FabricEvent.ApplicationNewHealthReport' : exports.ApplicationNewHealthReportEvent,
|
||||
'FabricEvent.ApplicationHealthReportExpired' : exports.ApplicationHealthReportExpiredEvent,
|
||||
'FabricEvent.ApplicationUpgradeComplete' : exports.ApplicationUpgradeCompleteEvent,
|
||||
'FabricEvent.ApplicationUpgradeDomainComplete' : exports.ApplicationUpgradeDomainCompleteEvent,
|
||||
'FabricEvent.ApplicationUpgradeRollbackComplete' : exports.ApplicationUpgradeRollbackCompleteEvent,
|
||||
'FabricEvent.ApplicationUpgradeRollbackStart' : exports.ApplicationUpgradeRollbackStartEvent,
|
||||
'FabricEvent.ApplicationUpgradeStart' : exports.ApplicationUpgradeStartEvent,
|
||||
'FabricEvent.DeployedApplicationHealthReportCreated' : exports.DeployedApplicationHealthReportCreatedEvent,
|
||||
'FabricEvent.ApplicationUpgradeCompleted' : exports.ApplicationUpgradeCompletedEvent,
|
||||
'FabricEvent.ApplicationUpgradeDomainCompleted' : exports.ApplicationUpgradeDomainCompletedEvent,
|
||||
'FabricEvent.ApplicationUpgradeRollbackCompleted' : exports.ApplicationUpgradeRollbackCompletedEvent,
|
||||
'FabricEvent.ApplicationUpgradeRollbackStarted' : exports.ApplicationUpgradeRollbackStartedEvent,
|
||||
'FabricEvent.ApplicationUpgradeStarted' : exports.ApplicationUpgradeStartedEvent,
|
||||
'FabricEvent.DeployedApplicationNewHealthReport' : exports.DeployedApplicationNewHealthReportEvent,
|
||||
'FabricEvent.DeployedApplicationHealthReportExpired' : exports.DeployedApplicationHealthReportExpiredEvent,
|
||||
'FabricEvent.ProcessDeactivated' : exports.ProcessDeactivatedEvent,
|
||||
'FabricEvent.ContainerDeactivated' : exports.ContainerDeactivatedEvent,
|
||||
'FabricEvent.ApplicationProcessExited' : exports.ApplicationProcessExitedEvent,
|
||||
'FabricEvent.ApplicationContainerInstanceExited' : exports.ApplicationContainerInstanceExitedEvent,
|
||||
'FabricEvent.NodeAborted' : exports.NodeAbortedEvent,
|
||||
'FabricEvent.NodeAborting' : exports.NodeAbortingEvent,
|
||||
'FabricEvent.NodeAdded' : exports.NodeAddedEvent,
|
||||
'FabricEvent.NodeClose' : exports.NodeCloseEvent,
|
||||
'FabricEvent.NodeClosing' : exports.NodeClosingEvent,
|
||||
'FabricEvent.NodeDeactivateComplete' : exports.NodeDeactivateCompleteEvent,
|
||||
'FabricEvent.NodeDeactivateStart' : exports.NodeDeactivateStartEvent,
|
||||
'FabricEvent.NodeAddedToCluster' : exports.NodeAddedToClusterEvent,
|
||||
'FabricEvent.NodeClosed' : exports.NodeClosedEvent,
|
||||
'FabricEvent.NodeDeactivateCompleted' : exports.NodeDeactivateCompletedEvent,
|
||||
'FabricEvent.NodeDeactivateStarted' : exports.NodeDeactivateStartedEvent,
|
||||
'FabricEvent.NodeDown' : exports.NodeDownEvent,
|
||||
'FabricEvent.NodeHealthReportCreated' : exports.NodeHealthReportCreatedEvent,
|
||||
'FabricEvent.NodeNewHealthReport' : exports.NodeNewHealthReportEvent,
|
||||
'FabricEvent.NodeHealthReportExpired' : exports.NodeHealthReportExpiredEvent,
|
||||
'FabricEvent.NodeOpenedSuccess' : exports.NodeOpenedSuccessEvent,
|
||||
'FabricEvent.NodeOpenSucceeded' : exports.NodeOpenSucceededEvent,
|
||||
'FabricEvent.NodeOpenFailed' : exports.NodeOpenFailedEvent,
|
||||
'FabricEvent.NodeOpening' : exports.NodeOpeningEvent,
|
||||
'FabricEvent.NodeRemoved' : exports.NodeRemovedEvent,
|
||||
'FabricEvent.NodeRemovedFromCluster' : exports.NodeRemovedFromClusterEvent,
|
||||
'FabricEvent.NodeUp' : exports.NodeUpEvent,
|
||||
'FabricEvent.PartitionHealthReportCreated' : exports.PartitionHealthReportCreatedEvent,
|
||||
'FabricEvent.PartitionNewHealthReport' : exports.PartitionNewHealthReportEvent,
|
||||
'FabricEvent.PartitionHealthReportExpired' : exports.PartitionHealthReportExpiredEvent,
|
||||
'FabricEvent.PartitionReconfigurationCompleted' : exports.PartitionReconfigurationCompletedEvent,
|
||||
'FabricEvent.PartitionReconfigured' : exports.PartitionReconfiguredEvent,
|
||||
'FabricEvent.PartitionPrimaryMoveAnalysis' : exports.PartitionPrimaryMoveAnalysisEvent,
|
||||
'FabricEvent.ServiceCreated' : exports.ServiceCreatedEvent,
|
||||
'FabricEvent.ServiceDeleted' : exports.ServiceDeletedEvent,
|
||||
'FabricEvent.ServiceHealthReportCreated' : exports.ServiceHealthReportCreatedEvent,
|
||||
'FabricEvent.ServiceNewHealthReport' : exports.ServiceNewHealthReportEvent,
|
||||
'FabricEvent.ServiceHealthReportExpired' : exports.ServiceHealthReportExpiredEvent,
|
||||
'FabricEvent.DeployedServiceHealthReportCreated' : exports.DeployedServiceHealthReportCreatedEvent,
|
||||
'FabricEvent.DeployedServiceHealthReportExpired' : exports.DeployedServiceHealthReportExpiredEvent,
|
||||
'FabricEvent.StatefulReplicaHealthReportCreated' : exports.StatefulReplicaHealthReportCreatedEvent,
|
||||
'FabricEvent.DeployedServicePackageNewHealthReport' : exports.DeployedServicePackageNewHealthReportEvent,
|
||||
'FabricEvent.DeployedServicePackageHealthReportExpired' : exports.DeployedServicePackageHealthReportExpiredEvent,
|
||||
'FabricEvent.StatefulReplicaNewHealthReport' : exports.StatefulReplicaNewHealthReportEvent,
|
||||
'FabricEvent.StatefulReplicaHealthReportExpired' : exports.StatefulReplicaHealthReportExpiredEvent,
|
||||
'FabricEvent.StatelessReplicaHealthReportCreated' : exports.StatelessReplicaHealthReportCreatedEvent,
|
||||
'FabricEvent.StatelessReplicaNewHealthReport' : exports.StatelessReplicaNewHealthReportEvent,
|
||||
'FabricEvent.StatelessReplicaHealthReportExpired' : exports.StatelessReplicaHealthReportExpiredEvent,
|
||||
'FabricEvent.ClusterHealthReportCreated' : exports.ClusterHealthReportCreatedEvent,
|
||||
'FabricEvent.ClusterNewHealthReport' : exports.ClusterNewHealthReportEvent,
|
||||
'FabricEvent.ClusterHealthReportExpired' : exports.ClusterHealthReportExpiredEvent,
|
||||
'FabricEvent.ClusterUpgradeComplete' : exports.ClusterUpgradeCompleteEvent,
|
||||
'FabricEvent.ClusterUpgradeDomainComplete' : exports.ClusterUpgradeDomainCompleteEvent,
|
||||
'FabricEvent.ClusterUpgradeRollbackComplete' : exports.ClusterUpgradeRollbackCompleteEvent,
|
||||
'FabricEvent.ClusterUpgradeRollbackStart' : exports.ClusterUpgradeRollbackStartEvent,
|
||||
'FabricEvent.ClusterUpgradeStart' : exports.ClusterUpgradeStartEvent,
|
||||
'FabricEvent.ClusterUpgradeCompleted' : exports.ClusterUpgradeCompletedEvent,
|
||||
'FabricEvent.ClusterUpgradeDomainCompleted' : exports.ClusterUpgradeDomainCompletedEvent,
|
||||
'FabricEvent.ClusterUpgradeRollbackCompleted' : exports.ClusterUpgradeRollbackCompletedEvent,
|
||||
'FabricEvent.ClusterUpgradeRollbackStarted' : exports.ClusterUpgradeRollbackStartedEvent,
|
||||
'FabricEvent.ClusterUpgradeStarted' : exports.ClusterUpgradeStartedEvent,
|
||||
'FabricEvent.ChaosStopped' : exports.ChaosStoppedEvent,
|
||||
'FabricEvent.ChaosStarted' : exports.ChaosStartedEvent,
|
||||
'FabricEvent.ChaosRestartNodeFaultCompleted' : exports.ChaosRestartNodeFaultCompletedEvent,
|
||||
'FabricEvent.ChaosRestartCodePackageFaultScheduled' : exports.ChaosRestartCodePackageFaultScheduledEvent,
|
||||
'FabricEvent.ChaosRestartCodePackageFaultCompleted' : exports.ChaosRestartCodePackageFaultCompletedEvent,
|
||||
'FabricEvent.ChaosRemoveReplicaFaultScheduled' : exports.ChaosRemoveReplicaFaultScheduledEvent,
|
||||
'FabricEvent.ChaosRemoveReplicaFaultCompleted' : exports.ChaosRemoveReplicaFaultCompletedEvent,
|
||||
'FabricEvent.ChaosMoveSecondaryFaultScheduled' : exports.ChaosMoveSecondaryFaultScheduledEvent,
|
||||
'FabricEvent.ChaosMovePrimaryFaultScheduled' : exports.ChaosMovePrimaryFaultScheduledEvent,
|
||||
'FabricEvent.ChaosRestartReplicaFaultScheduled' : exports.ChaosRestartReplicaFaultScheduledEvent,
|
||||
'FabricEvent.ChaosRestartNodeFaultScheduled' : exports.ChaosRestartNodeFaultScheduledEvent,
|
||||
'DiagnosticsSinkProperties' : exports.DiagnosticsSinkProperties
|
||||
'FabricEvent.ChaosCodePackageRestartScheduled' : exports.ChaosCodePackageRestartScheduledEvent,
|
||||
'FabricEvent.ChaosReplicaRemovalScheduled' : exports.ChaosReplicaRemovalScheduledEvent,
|
||||
'FabricEvent.ChaosPartitionSecondaryMoveScheduled' : exports.ChaosPartitionSecondaryMoveScheduledEvent,
|
||||
'FabricEvent.ChaosPartitionPrimaryMoveScheduled' : exports.ChaosPartitionPrimaryMoveScheduledEvent,
|
||||
'FabricEvent.ChaosReplicaRestartScheduled' : exports.ChaosReplicaRestartScheduledEvent,
|
||||
'FabricEvent.ChaosNodeRestartScheduled' : exports.ChaosNodeRestartScheduledEvent,
|
||||
'SecretResourcePropertiesBase.SecretResourceProperties' : exports.SecretResourceProperties,
|
||||
'SecretResourcePropertiesBase.inlinedValue' : exports.InlinedValueSecretResourceProperties,
|
||||
'SecretResourcePropertiesBase' : exports.SecretResourcePropertiesBase,
|
||||
'ApplicationScopedVolumeCreationParameters' : exports.ApplicationScopedVolumeCreationParameters,
|
||||
'ApplicationScopedVolumeCreationParameters.ServiceFabricVolumeDisk' : exports.ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk,
|
||||
'NetworkResourcePropertiesBase.NetworkResourceProperties' : exports.NetworkResourceProperties,
|
||||
'NetworkResourcePropertiesBase.Local' : exports.LocalNetworkResourceProperties,
|
||||
'NetworkResourcePropertiesBase' : exports.NetworkResourcePropertiesBase,
|
||||
'AutoScalingTrigger' : exports.AutoScalingTrigger,
|
||||
'AutoScalingMechanism' : exports.AutoScalingMechanism,
|
||||
'DiagnosticsSinkProperties' : exports.DiagnosticsSinkProperties,
|
||||
'DiagnosticsSinkProperties.AzureInternalMonitoringPipeline' : exports.AzureInternalMonitoringPipelineSinkDescription,
|
||||
'AutoScalingMechanism.AddRemoveReplica' : exports.AddRemoveReplicaScalingMechanism,
|
||||
'AutoScalingMetric' : exports.AutoScalingMetric,
|
||||
'AutoScalingMetric.Resource' : exports.AutoScalingResourceMetric,
|
||||
'AutoScalingTrigger.AverageLoad' : exports.AverageLoadScalingTrigger
|
||||
};
|
||||
|
|
|
@ -0,0 +1,95 @@
|
|||
/*
|
||||
* 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 properties of a secret resource whose value is provided
|
||||
* explicitly as plaintext. The secret resource may have multiple values, each
|
||||
* being uniquely versioned. The secret value of each version is stored
|
||||
* encrypted, and delivered as plaintext into the context of applications
|
||||
* referencing it.
|
||||
*
|
||||
* @extends models['SecretResourceProperties']
|
||||
*/
|
||||
class InlinedValueSecretResourceProperties extends models['SecretResourceProperties'] {
|
||||
/**
|
||||
* Create a InlinedValueSecretResourceProperties.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of InlinedValueSecretResourceProperties
|
||||
*
|
||||
* @returns {object} metadata of InlinedValueSecretResourceProperties
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'inlinedValue',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'SecretResourcePropertiesBase',
|
||||
className: 'InlinedValueSecretResourceProperties',
|
||||
modelProperties: {
|
||||
kind: {
|
||||
required: true,
|
||||
serializedName: 'kind',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
required: false,
|
||||
serializedName: 'description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
status: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'status',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
statusDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'statusDetails',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
contentType: {
|
||||
required: false,
|
||||
serializedName: 'contentType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = InlinedValueSecretResourceProperties;
|
|
@ -21,7 +21,10 @@ class LoadMetricReport {
|
|||
* @property {date} [lastReportedUtc] Gets the UTC time when the load was
|
||||
* reported.
|
||||
* @property {string} [name] The name of the load metric.
|
||||
* @property {string} [value] The value of the load metric.
|
||||
* @property {string} [value] The value of the load metric. In future
|
||||
* releases of Service Fabric this parameter will be deprecated in favor of
|
||||
* CurrentValue.
|
||||
* @property {string} [currentValue] The value of the load metric.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -60,6 +63,13 @@ class LoadMetricReport {
|
|||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
currentValue: {
|
||||
required: false,
|
||||
serializedName: 'CurrentValue',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,11 @@ class LoadMetricReportInfo {
|
|||
/**
|
||||
* Create a LoadMetricReportInfo.
|
||||
* @property {string} [name] The name of the metric.
|
||||
* @property {number} [value] The value of the load for the metric..
|
||||
* @property {number} [value] The value of the load for the metric. In future
|
||||
* releases of Service Fabric this parameter will be deprecated in favor of
|
||||
* CurrentValue.
|
||||
* @property {string} [currentValue] The double value of the load for the
|
||||
* metric.
|
||||
* @property {date} [lastReportedUtc] The UTC time when the load is reported.
|
||||
*/
|
||||
constructor() {
|
||||
|
@ -52,6 +56,13 @@ class LoadMetricReportInfo {
|
|||
name: 'Number'
|
||||
}
|
||||
},
|
||||
currentValue: {
|
||||
required: false,
|
||||
serializedName: 'CurrentValue',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
lastReportedUtc: {
|
||||
required: false,
|
||||
serializedName: 'LastReportedUtc',
|
||||
|
|
|
@ -0,0 +1,94 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Information about a Service Fabric container network local to a single
|
||||
* Service Fabric cluster.
|
||||
*
|
||||
* @extends models['NetworkResourceProperties']
|
||||
*/
|
||||
class LocalNetworkResourceProperties extends models['NetworkResourceProperties'] {
|
||||
/**
|
||||
* Create a LocalNetworkResourceProperties.
|
||||
* @property {string} [networkAddressPrefix] Address space for the local
|
||||
* container network.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of LocalNetworkResourceProperties
|
||||
*
|
||||
* @returns {object} metadata of LocalNetworkResourceProperties
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'Local',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'NetworkResourcePropertiesBase',
|
||||
className: 'LocalNetworkResourceProperties',
|
||||
modelProperties: {
|
||||
kind: {
|
||||
required: true,
|
||||
serializedName: 'kind',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
required: false,
|
||||
serializedName: 'description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
status: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'status',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
statusDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'statusDetails',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
networkAddressPrefix: {
|
||||
required: false,
|
||||
serializedName: 'networkAddressPrefix',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = LocalNetworkResourceProperties;
|
|
@ -17,7 +17,9 @@
|
|||
class NetworkRef {
|
||||
/**
|
||||
* Create a NetworkRef.
|
||||
* @property {string} [name] Name of the network.
|
||||
* @property {string} [name] Name of the network
|
||||
* @property {array} [endpointRefs] A list of endpoints that are exposed on
|
||||
* this network.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -42,6 +44,21 @@ class NetworkRef {
|
|||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
endpointRefs: {
|
||||
required: false,
|
||||
serializedName: 'endpointRefs',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'EndpointRefElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'EndpointRef'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,73 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* This type describes a network resource.
|
||||
*
|
||||
*/
|
||||
class NetworkResourceDescription {
|
||||
/**
|
||||
* Create a NetworkResourceDescription.
|
||||
* @property {string} name Name of the Network resource.
|
||||
* @property {object} properties Describes properties of a network resource.
|
||||
* @property {string} [properties.description] User readable description of
|
||||
* the network.
|
||||
* @property {string} [properties.status] Status of the network. Possible
|
||||
* values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting',
|
||||
* 'Failed'
|
||||
* @property {string} [properties.statusDetails] Gives additional information
|
||||
* about the current status of the network.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of NetworkResourceDescription
|
||||
*
|
||||
* @returns {object} metadata of NetworkResourceDescription
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'NetworkResourceDescription',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'NetworkResourceDescription',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
properties: {
|
||||
required: true,
|
||||
serializedName: 'properties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'NetworkResourcePropertiesBase',
|
||||
className: 'NetworkResourceProperties'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NetworkResourceDescription;
|
|
@ -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 properties of a network resource.
|
||||
*
|
||||
* @extends models['NetworkResourcePropertiesBase']
|
||||
*/
|
||||
class NetworkResourceProperties extends models['NetworkResourcePropertiesBase'] {
|
||||
/**
|
||||
* Create a NetworkResourceProperties.
|
||||
* @property {string} [description] User readable description of the network.
|
||||
* @property {string} [status] Status of the network. Possible values
|
||||
* include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
|
||||
* @property {string} [statusDetails] Gives additional information about the
|
||||
* current status of the network.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of NetworkResourceProperties
|
||||
*
|
||||
* @returns {object} metadata of NetworkResourceProperties
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'NetworkResourceProperties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'NetworkResourcePropertiesBase',
|
||||
className: 'NetworkResourceProperties',
|
||||
modelProperties: {
|
||||
kind: {
|
||||
required: true,
|
||||
serializedName: 'kind',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
required: false,
|
||||
serializedName: 'description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
status: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'status',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
statusDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'statusDetails',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NetworkResourceProperties;
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* This type describes the properties of a network resource, including its
|
||||
* kind.
|
||||
*
|
||||
*/
|
||||
class NetworkResourcePropertiesBase {
|
||||
/**
|
||||
* Create a NetworkResourcePropertiesBase.
|
||||
* @property {string} kind Polymorphic Discriminator
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of NetworkResourcePropertiesBase
|
||||
*
|
||||
* @returns {object} metadata of NetworkResourcePropertiesBase
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'NetworkResourcePropertiesBase',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'NetworkResourcePropertiesBase',
|
||||
className: 'NetworkResourcePropertiesBase',
|
||||
modelProperties: {
|
||||
kind: {
|
||||
required: true,
|
||||
serializedName: 'kind',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NetworkResourcePropertiesBase;
|
|
@ -59,6 +59,13 @@ class NodeAbortedEvent extends models['NodeEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -0,0 +1,144 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Node Added event.
|
||||
*
|
||||
* @extends models['NodeEvent']
|
||||
*/
|
||||
class NodeAddedToClusterEvent extends models['NodeEvent'] {
|
||||
/**
|
||||
* Create a NodeAddedToClusterEvent.
|
||||
* @property {string} nodeId Id of Node.
|
||||
* @property {number} nodeInstance Id of Node instance.
|
||||
* @property {string} nodeType Type of Node.
|
||||
* @property {string} fabricVersion Fabric version.
|
||||
* @property {string} ipAddressOrFQDN IP address or FQDN.
|
||||
* @property {string} nodeCapacities Capacities.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of NodeAddedToClusterEvent
|
||||
*
|
||||
* @returns {object} metadata of NodeAddedToClusterEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'NodeAddedToCluster',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'NodeAddedToClusterEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
nodeName: {
|
||||
required: true,
|
||||
serializedName: 'NodeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeId: {
|
||||
required: true,
|
||||
serializedName: 'NodeId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeInstance: {
|
||||
required: true,
|
||||
serializedName: 'NodeInstance',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
nodeType: {
|
||||
required: true,
|
||||
serializedName: 'NodeType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
fabricVersion: {
|
||||
required: true,
|
||||
serializedName: 'FabricVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
ipAddressOrFQDN: {
|
||||
required: true,
|
||||
serializedName: 'IpAddressOrFQDN',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeCapacities: {
|
||||
required: true,
|
||||
serializedName: 'NodeCapacities',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NodeAddedToClusterEvent;
|
|
@ -0,0 +1,120 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Node Closed event.
|
||||
*
|
||||
* @extends models['NodeEvent']
|
||||
*/
|
||||
class NodeClosedEvent extends models['NodeEvent'] {
|
||||
/**
|
||||
* Create a NodeClosedEvent.
|
||||
* @property {string} nodeId Id of Node.
|
||||
* @property {number} nodeInstance Id of Node instance.
|
||||
* @property {string} error Describes error.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of NodeClosedEvent
|
||||
*
|
||||
* @returns {object} metadata of NodeClosedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'NodeClosed',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'NodeClosedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
nodeName: {
|
||||
required: true,
|
||||
serializedName: 'NodeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeId: {
|
||||
required: true,
|
||||
serializedName: 'NodeId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeInstance: {
|
||||
required: true,
|
||||
serializedName: 'NodeInstance',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
error: {
|
||||
required: true,
|
||||
serializedName: 'Error',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NodeClosedEvent;
|
|
@ -0,0 +1,128 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Node Deactivate Completed event.
|
||||
*
|
||||
* @extends models['NodeEvent']
|
||||
*/
|
||||
class NodeDeactivateCompletedEvent extends models['NodeEvent'] {
|
||||
/**
|
||||
* Create a NodeDeactivateCompletedEvent.
|
||||
* @property {number} nodeInstance Id of Node instance.
|
||||
* @property {string} effectiveDeactivateIntent Describes deactivate intent.
|
||||
* @property {string} batchIdsWithDeactivateIntent Batch Ids.
|
||||
* @property {date} startTime Start time.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of NodeDeactivateCompletedEvent
|
||||
*
|
||||
* @returns {object} metadata of NodeDeactivateCompletedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'NodeDeactivateCompleted',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'NodeDeactivateCompletedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
nodeName: {
|
||||
required: true,
|
||||
serializedName: 'NodeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeInstance: {
|
||||
required: true,
|
||||
serializedName: 'NodeInstance',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
effectiveDeactivateIntent: {
|
||||
required: true,
|
||||
serializedName: 'EffectiveDeactivateIntent',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
batchIdsWithDeactivateIntent: {
|
||||
required: true,
|
||||
serializedName: 'BatchIdsWithDeactivateIntent',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
startTime: {
|
||||
required: true,
|
||||
serializedName: 'StartTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NodeDeactivateCompletedEvent;
|
|
@ -0,0 +1,120 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Node Deactivate Started event.
|
||||
*
|
||||
* @extends models['NodeEvent']
|
||||
*/
|
||||
class NodeDeactivateStartedEvent extends models['NodeEvent'] {
|
||||
/**
|
||||
* Create a NodeDeactivateStartedEvent.
|
||||
* @property {number} nodeInstance Id of Node instance.
|
||||
* @property {string} batchId Batch Id.
|
||||
* @property {string} deactivateIntent Describes deactivate intent.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of NodeDeactivateStartedEvent
|
||||
*
|
||||
* @returns {object} metadata of NodeDeactivateStartedEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'NodeDeactivateStarted',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'NodeDeactivateStartedEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
nodeName: {
|
||||
required: true,
|
||||
serializedName: 'NodeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeInstance: {
|
||||
required: true,
|
||||
serializedName: 'NodeInstance',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
batchId: {
|
||||
required: true,
|
||||
serializedName: 'BatchId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
deactivateIntent: {
|
||||
required: true,
|
||||
serializedName: 'DeactivateIntent',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NodeDeactivateStartedEvent;
|
|
@ -53,6 +53,13 @@ class NodeDownEvent extends models['NodeEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -52,6 +52,13 @@ class NodeEvent extends models['FabricEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -61,6 +61,13 @@ class NodeHealthReportExpiredEvent extends models['NodeEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -0,0 +1,169 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Node Health Report Created event.
|
||||
*
|
||||
* @extends models['NodeEvent']
|
||||
*/
|
||||
class NodeNewHealthReportEvent extends models['NodeEvent'] {
|
||||
/**
|
||||
* Create a NodeNewHealthReportEvent.
|
||||
* @property {number} nodeInstanceId Id of Node instance.
|
||||
* @property {string} sourceId Id of report source.
|
||||
* @property {string} property Describes the property.
|
||||
* @property {string} healthState Describes the property health state.
|
||||
* @property {number} timeToLiveMs Time to live in milli-seconds.
|
||||
* @property {number} sequenceNumber Sequence number of report.
|
||||
* @property {string} description Description of report.
|
||||
* @property {boolean} removeWhenExpired Indicates the removal when it
|
||||
* expires.
|
||||
* @property {date} sourceUtcTimestamp Source time.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of NodeNewHealthReportEvent
|
||||
*
|
||||
* @returns {object} metadata of NodeNewHealthReportEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'NodeNewHealthReport',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'NodeNewHealthReportEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
nodeName: {
|
||||
required: true,
|
||||
serializedName: 'NodeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeInstanceId: {
|
||||
required: true,
|
||||
serializedName: 'NodeInstanceId',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
sourceId: {
|
||||
required: true,
|
||||
serializedName: 'SourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
property: {
|
||||
required: true,
|
||||
serializedName: 'Property',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
healthState: {
|
||||
required: true,
|
||||
serializedName: 'HealthState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeToLiveMs: {
|
||||
required: true,
|
||||
serializedName: 'TimeToLiveMs',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
sequenceNumber: {
|
||||
required: true,
|
||||
serializedName: 'SequenceNumber',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
required: true,
|
||||
serializedName: 'Description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
removeWhenExpired: {
|
||||
required: true,
|
||||
serializedName: 'RemoveWhenExpired',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
sourceUtcTimestamp: {
|
||||
required: true,
|
||||
serializedName: 'SourceUtcTimestamp',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NodeNewHealthReportEvent;
|
|
@ -60,6 +60,13 @@ class NodeOpenFailedEvent extends models['NodeEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -0,0 +1,160 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Node Opened Succeeded event.
|
||||
*
|
||||
* @extends models['NodeEvent']
|
||||
*/
|
||||
class NodeOpenSucceededEvent extends models['NodeEvent'] {
|
||||
/**
|
||||
* Create a NodeOpenSucceededEvent.
|
||||
* @property {number} nodeInstance Id of Node instance.
|
||||
* @property {string} nodeId Id of Node.
|
||||
* @property {string} upgradeDomain Upgrade domain of Node.
|
||||
* @property {string} faultDomain Fault domain of Node.
|
||||
* @property {string} ipAddressOrFQDN IP address or FQDN.
|
||||
* @property {string} hostname Name of Host.
|
||||
* @property {boolean} isSeedNode Indicates if it is seed node.
|
||||
* @property {string} nodeVersion Version of Node.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of NodeOpenSucceededEvent
|
||||
*
|
||||
* @returns {object} metadata of NodeOpenSucceededEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'NodeOpenSucceeded',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'NodeOpenSucceededEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
nodeName: {
|
||||
required: true,
|
||||
serializedName: 'NodeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeInstance: {
|
||||
required: true,
|
||||
serializedName: 'NodeInstance',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
nodeId: {
|
||||
required: true,
|
||||
serializedName: 'NodeId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
upgradeDomain: {
|
||||
required: true,
|
||||
serializedName: 'UpgradeDomain',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
faultDomain: {
|
||||
required: true,
|
||||
serializedName: 'FaultDomain',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
ipAddressOrFQDN: {
|
||||
required: true,
|
||||
serializedName: 'IpAddressOrFQDN',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
hostname: {
|
||||
required: true,
|
||||
serializedName: 'Hostname',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
isSeedNode: {
|
||||
required: true,
|
||||
serializedName: 'IsSeedNode',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
nodeVersion: {
|
||||
required: true,
|
||||
serializedName: 'NodeVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NodeOpenSucceededEvent;
|
|
@ -0,0 +1,144 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Node Removed event.
|
||||
*
|
||||
* @extends models['NodeEvent']
|
||||
*/
|
||||
class NodeRemovedFromClusterEvent extends models['NodeEvent'] {
|
||||
/**
|
||||
* Create a NodeRemovedFromClusterEvent.
|
||||
* @property {string} nodeId Id of Node.
|
||||
* @property {number} nodeInstance Id of Node instance.
|
||||
* @property {string} nodeType Type of Node.
|
||||
* @property {string} fabricVersion Fabric version.
|
||||
* @property {string} ipAddressOrFQDN IP address or FQDN.
|
||||
* @property {string} nodeCapacities Capacities.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of NodeRemovedFromClusterEvent
|
||||
*
|
||||
* @returns {object} metadata of NodeRemovedFromClusterEvent
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'NodeRemovedFromCluster',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'Kind',
|
||||
clientName: 'kind'
|
||||
},
|
||||
uberParent: 'FabricEvent',
|
||||
className: 'NodeRemovedFromClusterEvent',
|
||||
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'
|
||||
}
|
||||
},
|
||||
nodeName: {
|
||||
required: true,
|
||||
serializedName: 'NodeName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeId: {
|
||||
required: true,
|
||||
serializedName: 'NodeId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeInstance: {
|
||||
required: true,
|
||||
serializedName: 'NodeInstance',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
nodeType: {
|
||||
required: true,
|
||||
serializedName: 'NodeType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
fabricVersion: {
|
||||
required: true,
|
||||
serializedName: 'FabricVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
ipAddressOrFQDN: {
|
||||
required: true,
|
||||
serializedName: 'IpAddressOrFQDN',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
nodeCapacities: {
|
||||
required: true,
|
||||
serializedName: 'NodeCapacities',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NodeRemovedFromClusterEvent;
|
|
@ -53,6 +53,13 @@ class NodeUpEvent extends models['NodeEvent'] {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
required: false,
|
||||
serializedName: 'Category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
timeStamp: {
|
||||
required: true,
|
||||
serializedName: 'TimeStamp',
|
||||
|
|
|
@ -0,0 +1,75 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The list of application resources. The list is paged when all of the results
|
||||
* cannot fit in a single message. The next set of results can be obtained by
|
||||
* executing the same query with the continuation token provided in this list.
|
||||
*
|
||||
*/
|
||||
class PagedApplicationResourceDescriptionList {
|
||||
/**
|
||||
* Create a PagedApplicationResourceDescriptionList.
|
||||
* @property {string} [continuationToken] The continuation token parameter is
|
||||
* used to obtain next set of results. The continuation token is included in
|
||||
* the response of the API when the results from the system do not fit in a
|
||||
* single response. When this value is passed to the next API call, the API
|
||||
* returns next set of results. If there are no further results, then the
|
||||
* continuation token is not included in the response.
|
||||
* @property {array} [items] One page of the list.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of PagedApplicationResourceDescriptionList
|
||||
*
|
||||
* @returns {object} metadata of PagedApplicationResourceDescriptionList
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'PagedApplicationResourceDescriptionList',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PagedApplicationResourceDescriptionList',
|
||||
modelProperties: {
|
||||
continuationToken: {
|
||||
required: false,
|
||||
serializedName: 'ContinuationToken',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
items: {
|
||||
required: false,
|
||||
serializedName: 'Items',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'ApplicationResourceDescriptionElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ApplicationResourceDescription'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PagedApplicationResourceDescriptionList;
|
|
@ -0,0 +1,75 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The list of gateway resources. The list is paged when all of the results
|
||||
* cannot fit in a single message. The next set of results can be obtained by
|
||||
* executing the same query with the continuation token provided in this list.
|
||||
*
|
||||
*/
|
||||
class PagedGatewayResourceDescriptionList {
|
||||
/**
|
||||
* Create a PagedGatewayResourceDescriptionList.
|
||||
* @property {string} [continuationToken] The continuation token parameter is
|
||||
* used to obtain next set of results. The continuation token is included in
|
||||
* the response of the API when the results from the system do not fit in a
|
||||
* single response. When this value is passed to the next API call, the API
|
||||
* returns next set of results. If there are no further results, then the
|
||||
* continuation token is not included in the response.
|
||||
* @property {array} [items] One page of the list.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of PagedGatewayResourceDescriptionList
|
||||
*
|
||||
* @returns {object} metadata of PagedGatewayResourceDescriptionList
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'PagedGatewayResourceDescriptionList',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PagedGatewayResourceDescriptionList',
|
||||
modelProperties: {
|
||||
continuationToken: {
|
||||
required: false,
|
||||
serializedName: 'ContinuationToken',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
items: {
|
||||
required: false,
|
||||
serializedName: 'Items',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'GatewayResourceDescriptionElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'GatewayResourceDescription'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PagedGatewayResourceDescriptionList;
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче