This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR servicefabric/data-plane] Service Fabric REST API specificati…
…on version 6.2 RTO (#2720) * Generated from 4cffa20a5783aab5b2d2f0268d922c6b9a6a21ba Service Fabric REST API specification version 6.2 RTO * Generated from 9ceed58fbab00d8902f075bda8fa948e27a99c0f fix the bugs in the specification and examples as surfaced by the example validation * Generated from dff9557eeb14fa3ed9b82e8dcfa1312a2b67a4ab example updates * Generated from 813b94529da22628561e9a804adb53710d08e967 remove newlines from the end of the description
- Loading branch information
1 parent
84eb1f6
commit af0c8bf
Showing
396 changed files
with
70,293 additions
and
18,444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2017 Microsoft | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
The MIT License (MIT) | ||
Copyright (c) 2018 Microsoft | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,41 @@ | ||
# Microsoft Azure SDK for Node.js - Service Fabric | ||
|
||
This project provides a Node.js package for accessing the Azure Service Fabric. Right now it supports: | ||
- **Node.js version: 6.x.x or higher** | ||
|
||
## Features | ||
|
||
|
||
## How to Install | ||
|
||
```bash | ||
npm install azure-servicefabric | ||
``` | ||
|
||
## Related projects | ||
|
||
- [Microsoft Azure SDK for Node.js](https://github.com/WindowsAzure/azure-sdk-for-node) | ||
|
||
--- | ||
uid: azure-servicefabric | ||
summary: *content | ||
|
||
--- | ||
# 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** | ||
|
||
## Features | ||
|
||
|
||
## How to Install | ||
|
||
```bash | ||
npm install azure-servicefabric | ||
``` | ||
|
||
## How to use | ||
|
||
### Authentication, client creation and getClusterManifest as an example. | ||
|
||
```javascript | ||
const msRest = require("ms-rest"); | ||
const ServiceFabricClient = require("azure-servicefabric"); | ||
const token = "<access_token>"; | ||
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); | ||
}).catch((err) => { | ||
console.log('An error occurred:'); | ||
console.dir(err, {depth: null, colors: true}); | ||
}); | ||
|
||
## Related projects | ||
|
||
- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
lib/services/serviceFabric/lib/models/addRemoveIncrementalNamedPartitionScalingMechanism.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const models = require('./index'); | ||
|
||
/** | ||
* Represents a scaling mechanism for adding or removing named partitions of a | ||
* stateless service. Partition names are in the format '0','1''N-1' | ||
* | ||
* @extends models['ScalingMechanismDescription'] | ||
*/ | ||
class AddRemoveIncrementalNamedPartitionScalingMechanism extends models['ScalingMechanismDescription'] { | ||
/** | ||
* Create a AddRemoveIncrementalNamedPartitionScalingMechanism. | ||
* @member {number} minPartitionCount Minimum number of named partitions of | ||
* the service. | ||
* @member {number} maxPartitionCount Maximum number of named partitions of | ||
* the service. | ||
* @member {number} scaleIncrement The number of instances to add or remove | ||
* during a scaling operation. | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of AddRemoveIncrementalNamedPartitionScalingMechanism | ||
* | ||
* @returns {object} metadata of AddRemoveIncrementalNamedPartitionScalingMechanism | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'AddRemoveIncrementalNamedPartition', | ||
type: { | ||
name: 'Composite', | ||
polymorphicDiscriminator: { | ||
serializedName: 'Kind', | ||
clientName: 'kind' | ||
}, | ||
uberParent: 'ScalingMechanismDescription', | ||
className: 'AddRemoveIncrementalNamedPartitionScalingMechanism', | ||
modelProperties: { | ||
kind: { | ||
required: true, | ||
serializedName: 'Kind', | ||
isPolymorphicDiscriminator: true, | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
minPartitionCount: { | ||
required: true, | ||
serializedName: 'MinPartitionCount', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
maxPartitionCount: { | ||
required: true, | ||
serializedName: 'MaxPartitionCount', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
scaleIncrement: { | ||
required: true, | ||
serializedName: 'ScaleIncrement', | ||
type: { | ||
name: 'Number' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = AddRemoveIncrementalNamedPartitionScalingMechanism; |
60 changes: 60 additions & 0 deletions
60
lib/services/serviceFabric/lib/models/analysisEventMetadata.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* 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'; | ||
|
||
/** | ||
* Metadata about an Analysis Event. | ||
* | ||
*/ | ||
class AnalysisEventMetadata { | ||
/** | ||
* Create a AnalysisEventMetadata. | ||
* @member {moment.duration} [delay] The analysis delay. | ||
* @member {moment.duration} [duration] The duration of analysis. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of AnalysisEventMetadata | ||
* | ||
* @returns {object} metadata of AnalysisEventMetadata | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'AnalysisEventMetadata', | ||
type: { | ||
name: 'Composite', | ||
className: 'AnalysisEventMetadata', | ||
modelProperties: { | ||
delay: { | ||
required: false, | ||
serializedName: 'Delay', | ||
type: { | ||
name: 'TimeSpan' | ||
} | ||
}, | ||
duration: { | ||
required: false, | ||
serializedName: 'Duration', | ||
type: { | ||
name: 'TimeSpan' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = AnalysisEventMetadata; |
94 changes: 94 additions & 0 deletions
94
lib/services/serviceFabric/lib/models/applicationBackupConfigurationInfo.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
|
||
/** | ||
* Backup configuration information for a specific Service Fabric application | ||
* specifying what backup policy is being applied and suspend description, if | ||
* any. | ||
* | ||
* @extends models['BackupConfigurationInfo'] | ||
*/ | ||
class ApplicationBackupConfigurationInfo extends models['BackupConfigurationInfo'] { | ||
/** | ||
* Create a ApplicationBackupConfigurationInfo. | ||
* @member {string} [applicationName] The name of the application, including | ||
* the 'fabric:' URI scheme. | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of ApplicationBackupConfigurationInfo | ||
* | ||
* @returns {object} metadata of ApplicationBackupConfigurationInfo | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'Application', | ||
type: { | ||
name: 'Composite', | ||
polymorphicDiscriminator: { | ||
serializedName: 'Kind', | ||
clientName: 'kind' | ||
}, | ||
uberParent: 'BackupConfigurationInfo', | ||
className: 'ApplicationBackupConfigurationInfo', | ||
modelProperties: { | ||
policyName: { | ||
required: false, | ||
serializedName: 'PolicyName', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
policyInheritedFrom: { | ||
required: false, | ||
serializedName: 'PolicyInheritedFrom', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
suspensionInfo: { | ||
required: false, | ||
serializedName: 'SuspensionInfo', | ||
type: { | ||
name: 'Composite', | ||
className: 'BackupSuspensionInfo' | ||
} | ||
}, | ||
kind: { | ||
required: true, | ||
serializedName: 'Kind', | ||
isPolymorphicDiscriminator: true, | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
applicationName: { | ||
required: false, | ||
serializedName: 'ApplicationName', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = ApplicationBackupConfigurationInfo; |
Oops, something went wrong.