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

[AutoPR] servicefabricmesh/resource-manager #3190

Merged
3 commits merged into from
Aug 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions lib/services/serviceFabricMeshManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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.
42 changes: 42 additions & 0 deletions lib/services/serviceFabricMeshManagement/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
uid: azure-arm-servicefabricmesh
summary: *content

---
# Microsoft Azure SDK for Node.js - ServiceFabricMeshManagementClient
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-arm-servicefabricmesh
```

## How to use

### Authentication, client creation and get application as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const ServiceFabricMeshManagementClient = require("azure-arm-servicefabricmesh");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new ServiceFabricMeshManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const applicationName = "testapplicationName";
return client.application.get(resourceGroupName, applicationName).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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
/*
* 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 properties of an application resource.
*
*/
class ApplicationProperties {
/**
* Create a ApplicationProperties.
* @member {string} [description] User readable description of the
* application.
* @member {string} [debugParams] Internal use.
* @member {array} [services] describes the services in the application.
* @member {string} [healthState] Describes the health state of an
* application resource. Possible values include: 'Invalid', 'Ok', 'Warning',
* 'Error', 'Unknown'
* @member {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.
* @member {string} [status] Status of the application resource. Possible
* values include: 'Invalid', 'Ready', 'Upgrading', 'Creating', 'Deleting',
* 'Failed'
* @member {string} [statusDetails] Gives additional information about the
* current status of the application deployment.
* @member {array} [serviceNames] Names of the services in the application.
* @member {object} [diagnostics] Describes the diagnostics definition and
* usage for an application resource.
* @member {array} [diagnostics.sinks] List of supported sinks that can be
* referenced.
* @member {boolean} [diagnostics.enabled] Status of whether or not sinks are
* enabled.
* @member {array} [diagnostics.defaultSinkRefs] The sinks to be used if
* diagnostics is enabled. Sink choices can be overridden at the service and
* code package level.
*/
constructor() {
}

/**
* Defines the metadata of ApplicationProperties
*
* @returns {object} metadata of ApplicationProperties
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationProperties',
type: {
name: 'Composite',
className: 'ApplicationProperties',
modelProperties: {
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
debugParams: {
required: false,
serializedName: 'debugParams',
type: {
name: 'String'
}
},
services: {
required: false,
serializedName: 'services',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ServiceResourceDescriptionElementType',
type: {
name: 'Composite',
className: 'ServiceResourceDescription'
}
}
}
},
healthState: {
required: false,
readOnly: true,
serializedName: 'healthState',
type: {
name: 'String'
}
},
unhealthyEvaluation: {
required: false,
readOnly: true,
serializedName: 'unhealthyEvaluation',
type: {
name: 'String'
}
},
status: {
required: false,
readOnly: true,
serializedName: 'status',
type: {
name: 'String'
}
},
statusDetails: {
required: false,
readOnly: true,
serializedName: 'statusDetails',
type: {
name: 'String'
}
},
serviceNames: {
required: false,
readOnly: true,
serializedName: 'serviceNames',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
diagnostics: {
required: false,
serializedName: 'diagnostics',
type: {
name: 'Composite',
className: 'DiagnosticsDescription'
}
}
}
}
};
}
}

module.exports = ApplicationProperties;
Loading