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

[AutoPR storagesync/resource-manager] Update storagesync management Node.js package version to 1.0.0 #3380

Closed
wants to merge 3 commits into from
Closed
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/storagesyncManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +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.
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: 40 additions & 40 deletions lib/services/storagesyncManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
---
uid: azure-arm-storagesync
summary: *content

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

## How to use

### Authentication, client creation and list operations as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const StorageSyncManagementClient = require("azure-arm-storagesync");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new StorageSyncManagementClient(creds, subscriptionId);
return client.operations.list().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)
---
uid: azure-arm-storagesync
summary: *content
---
# Microsoft Azure SDK for Node.js - StorageSyncManagementClient
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-storagesync
```
## How to use
### Authentication, client creation and list operations as an example.
```javascript
const msRestAzure = require("ms-rest-azure");
const StorageSyncManagementClient = require("azure-arm-storagesync");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new StorageSyncManagementClient(creds, subscriptionId);
return client.operations.list().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,82 @@
/*
* 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 resource model definition for a Azure Resource Manager resource with an
* etag.
*
* @extends models['Resource']
*/
class AzureEntityResource extends models['Resource'] {
/**
* Create a AzureEntityResource.
* @member {string} [etag] Resource Etag.
*/
constructor() {
super();
}

/**
* Defines the metadata of AzureEntityResource
*
* @returns {object} metadata of AzureEntityResource
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureEntityResource',
type: {
name: 'Composite',
className: 'AzureEntityResource',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
etag: {
required: false,
readOnly: true,
serializedName: 'etag',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = AzureEntityResource;
24 changes: 16 additions & 8 deletions lib/services/storagesyncManagement/lib/models/cloudEndpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ const models = require('./index');
/**
* Cloud Endpoint object.
*
* @extends models['BaseResource']
* @extends models['ProxyResource']
*/
class CloudEndpoint extends models['BaseResource'] {
class CloudEndpoint extends models['ProxyResource'] {
/**
* Create a CloudEndpoint.
* @member {string} [storageAccountKey] Storage Account access key.
* @member {string} [storageAccount] Storage Account name.
* @member {string} [storageAccountResourceId] Storage Account Resource Id
* @member {string} [storageAccountShareName] Storage Account Share name
* @member {string} [storageAccountTenantId] Storage Account Tenant Id
Expand Down Expand Up @@ -50,16 +48,26 @@ class CloudEndpoint extends models['BaseResource'] {
name: 'Composite',
className: 'CloudEndpoint',
modelProperties: {
storageAccountKey: {
id: {
required: false,
serializedName: 'properties.storageAccountKey',
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
storageAccount: {
type: {
required: false,
serializedName: 'properties.storageAccount',
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/*
* 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 parameters used when creating a cloud endpoint.
*
* @extends models['ProxyResource']
*/
class CloudEndpointCreateParameters extends models['ProxyResource'] {
/**
* Create a CloudEndpointCreateParameters.
* @member {string} [storageAccountResourceId] Storage Account Resource Id
* @member {string} [storageAccountShareName] Storage Account Share name
* @member {string} [storageAccountTenantId] Storage Account Tenant Id
*/
constructor() {
super();
}

/**
* Defines the metadata of CloudEndpointCreateParameters
*
* @returns {object} metadata of CloudEndpointCreateParameters
*
*/
mapper() {
return {
required: false,
serializedName: 'CloudEndpointCreateParameters',
type: {
name: 'Composite',
className: 'CloudEndpointCreateParameters',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
storageAccountResourceId: {
required: false,
serializedName: 'properties.storageAccountResourceId',
type: {
name: 'String'
}
},
storageAccountShareName: {
required: false,
serializedName: 'properties.storageAccountShareName',
type: {
name: 'String'
}
},
storageAccountTenantId: {
required: false,
serializedName: 'properties.storageAccountTenantId',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = CloudEndpointCreateParameters;
Loading