Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
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
42 changes: 21 additions & 21 deletions lib/services/logicManagement/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.
80 changes: 42 additions & 38 deletions lib/services/logicManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,42 @@
# Microsoft Azure SDK for Node.js - LogicManagement

This project provides a Node.js package that makes it easy to manage Microsoft Azure Logic.
## API-Version: 2016-06-01
## Minimum node.js version >= 6.x.x

## How to Install

```bash
npm install azure-arm-logic
```

## How to Use

### Authentication, client creation and listing workflows as an example

```javascript
const msRestAzure = require('ms-rest-azure');
const LogicManagement = require("azure-arm-logic");

// Interactive Login
// It provides a url and code that needs to be copied and pasted in a browser and authenticated over there. If successful,
// the user will get a DeviceTokenCredentials object.
msRestAzure.interactiveLogin().then((credentials) => {
let client = new LogicManagement(credentials, 'your-subscription-id');
return client.workflows.listBySubscription();
}).then((workflows) => {
console.log('List of workflows:');
console.dir(workflows, {depth: null, colors: true});
}).catch((err) => {
console.log('An error ocurred');
console.dir(err, {depth: null, colors: true});
});
```

## Related projects

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
---
uid: azure-arm-logic
summary: *content

---
# Microsoft Azure SDK for Node.js - LogicManagementClient
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-logic
```

## How to use

### Authentication, client creation and listBySubscription workflows as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const LogicManagementClient = require("azure-arm-logic");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new LogicManagementClient(creds, subscriptionId);
const top = 1;
const filter = "testfilter";
return client.workflows.listBySubscription(top, filter).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)
15 changes: 10 additions & 5 deletions lib/services/logicManagement/lib/logicManagementClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as models from "./models";
import * as operations from "./operations";

declare class LogicManagementClient extends AzureServiceClient {
export default class LogicManagementClient extends AzureServiceClient {
/**
* Initializes a new instance of the LogicManagementClient class.
* @constructor
Expand All @@ -34,11 +34,11 @@ declare class LogicManagementClient extends AzureServiceClient {
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);
Expand All @@ -62,7 +62,12 @@ declare class LogicManagementClient extends AzureServiceClient {
workflowTriggerHistories: operations.WorkflowTriggerHistories;
workflowRuns: operations.WorkflowRuns;
workflowRunActions: operations.WorkflowRunActions;
workflowRunActionRepetitions: operations.WorkflowRunActionRepetitions;
workflowRunActionScopedRepetitions: operations.WorkflowRunActionScopedRepetitions;
workflowRunOperations: operations.WorkflowRunOperations;
integrationAccounts: operations.IntegrationAccounts;
integrationAccountAssemblies: operations.IntegrationAccountAssemblies;
integrationAccountBatchConfigurations: operations.IntegrationAccountBatchConfigurations;
schemas: operations.Schemas;
maps: operations.Maps;
partners: operations.Partners;
Expand Down Expand Up @@ -179,4 +184,4 @@ declare class LogicManagementClient extends AzureServiceClient {
listOperationsNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.OperationListResult>): void;
}

export = LogicManagementClient;
export { LogicManagementClient, models as LogicManagementModels };
14 changes: 11 additions & 3 deletions lib/services/logicManagement/lib/logicManagementClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ class LogicManagementClient extends ServiceClient {
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {
if (credentials === null || credentials === undefined) {
Expand Down Expand Up @@ -337,7 +337,12 @@ class LogicManagementClient extends ServiceClient {
this.workflowTriggerHistories = new operations.WorkflowTriggerHistories(this);
this.workflowRuns = new operations.WorkflowRuns(this);
this.workflowRunActions = new operations.WorkflowRunActions(this);
this.workflowRunActionRepetitions = new operations.WorkflowRunActionRepetitions(this);
this.workflowRunActionScopedRepetitions = new operations.WorkflowRunActionScopedRepetitions(this);
this.workflowRunOperations = new operations.WorkflowRunOperations(this);
this.integrationAccounts = new operations.IntegrationAccounts(this);
this.integrationAccountAssemblies = new operations.IntegrationAccountAssemblies(this);
this.integrationAccountBatchConfigurations = new operations.IntegrationAccountBatchConfigurations(this);
this.schemas = new operations.Schemas(this);
this.maps = new operations.Maps(this);
this.partners = new operations.Partners(this);
Expand Down Expand Up @@ -515,3 +520,6 @@ class LogicManagementClient extends ServiceClient {
}

module.exports = LogicManagementClient;
module.exports['default'] = LogicManagementClient;
module.exports.LogicManagementClient = LogicManagementClient;
module.exports.LogicManagementModels = models;
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'use strict';

/**
* The AS2 agreement acknowledegment connection settings.
* The AS2 agreement acknowledgement connection settings.
*
*/
class AS2AcknowledgementConnectionSettings {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const models = require('./index');

/**
* The integration account AS2 oneway agreement.
* The integration account AS2 one-way agreement.
*
*/
class AS2OneWayAgreement {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* 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';

/**
* Class representing a AccessKeyRegenerateActionDefinition.
*/
class AccessKeyRegenerateActionDefinition {
/**
* Create a AccessKeyRegenerateActionDefinition.
* @member {string} keyType Possible values include: 'NotSpecified',
* 'Primary', 'Secondary'
*/
constructor() {
}

/**
* Defines the metadata of AccessKeyRegenerateActionDefinition
*
* @returns {object} metadata of AccessKeyRegenerateActionDefinition
*
*/
mapper() {
return {
required: false,
serializedName: 'AccessKeyRegenerateActionDefinition',
type: {
name: 'Composite',
className: 'AccessKeyRegenerateActionDefinition',
modelProperties: {
keyType: {
required: true,
serializedName: 'keyType',
type: {
name: 'Enum',
allowedValues: [ 'NotSpecified', 'Primary', 'Secondary' ]
}
}
}
}
};
}
}

module.exports = AccessKeyRegenerateActionDefinition;
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/*
* 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');

/**
* The artifact content properties definition.
*
* @extends models['ArtifactProperties']
*/
class ArtifactContentPropertiesDefinition extends models['ArtifactProperties'] {
/**
* Create a ArtifactContentPropertiesDefinition.
* @member {object} [content]
* @member {string} [contentType] The content type.
* @member {object} [contentLink] The content link.
* @member {string} [contentLink.uri] The content link URI.
* @member {string} [contentLink.contentVersion] The content version.
* @member {number} [contentLink.contentSize] The content size.
* @member {object} [contentLink.contentHash] The content hash.
* @member {string} [contentLink.contentHash.algorithm] The algorithm of the
* content hash.
* @member {string} [contentLink.contentHash.value] The value of the content
* hash.
* @member {object} [contentLink.metadata] The metadata.
*/
constructor() {
super();
}

/**
* Defines the metadata of ArtifactContentPropertiesDefinition
*
* @returns {object} metadata of ArtifactContentPropertiesDefinition
*
*/
mapper() {
return {
required: false,
serializedName: 'ArtifactContentPropertiesDefinition',
type: {
name: 'Composite',
className: 'ArtifactContentPropertiesDefinition',
modelProperties: {
createdTime: {
required: false,
serializedName: 'createdTime',
type: {
name: 'DateTime'
}
},
changedTime: {
required: false,
serializedName: 'changedTime',
type: {
name: 'DateTime'
}
},
metadata: {
required: false,
serializedName: 'metadata',
type: {
name: 'Object'
}
},
content: {
required: false,
serializedName: 'content',
type: {
name: 'Object'
}
},
contentType: {
required: false,
serializedName: 'contentType',
type: {
name: 'String'
}
},
contentLink: {
required: false,
serializedName: 'contentLink',
type: {
name: 'Composite',
className: 'ContentLink'
}
}
}
}
};
}
}

module.exports = ArtifactContentPropertiesDefinition;
Loading