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

Commit

Permalink
[AutoPR servicefabric/data-plane] Service Fabric REST API specificati…
Browse files Browse the repository at this point in the history
…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
AutorestCI authored Apr 20, 2018
1 parent 84eb1f6 commit af0c8bf
Show file tree
Hide file tree
Showing 396 changed files with 70,293 additions and 18,444 deletions.
42 changes: 21 additions & 21 deletions lib/services/serviceFabric/LICENSE.txt
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.
59 changes: 41 additions & 18 deletions lib/services/serviceFabric/README.md
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)
3 changes: 2 additions & 1 deletion lib/services/serviceFabric/lib/models/aadMetadataObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class AadMetadataObject {
/**
* Create a AadMetadataObject.
* @member {string} [type] The client authentication method.
* @member {object} [metadata]
* @member {object} [metadata] Azure Active Directory metadata used for
* secured connection to cluster.
* @member {string} [metadata.authority] The AAD authority url.
* @member {string} [metadata.client] The AAD client application Id.
* @member {string} [metadata.cluster] The AAD cluster application Id.
Expand Down
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 lib/services/serviceFabric/lib/models/analysisEventMetadata.js
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;
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;
Loading

0 comments on commit af0c8bf

Please sign in to comment.