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
21 changes: 21 additions & 0 deletions lib/services/storagesyncmanagement/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.
40 changes: 40 additions & 0 deletions lib/services/storagesyncmanagement/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
uid: azure-arm-storagesyncmanagement
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-storagesyncmanagement
```

## How to use

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

```javascript
const msRestAzure = require("ms-rest-azure");
const StorageSyncManagementClient = require("azure-arm-storagesyncmanagement");
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)
52 changes: 52 additions & 0 deletions lib/services/storagesyncmanagement/lib/models/backupRequest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* 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';

/**
* Backup request
*
*/
class BackupRequest {
/**
* Create a BackupRequest.
* @member {string} [azureFileShare] Azure File Share.
*/
constructor() {
}

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

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

/**
* Parameters for a check name availability request.
*
*/
class CheckNameAvailabilityParameters {
/**
* Create a CheckNameAvailabilityParameters.
* @member {string} name The name to check for availability
*/
constructor() {
}

/**
* Defines the metadata of CheckNameAvailabilityParameters
*
* @returns {object} metadata of CheckNameAvailabilityParameters
*
*/
mapper() {
return {
required: false,
serializedName: 'CheckNameAvailabilityParameters',
type: {
name: 'Composite',
className: 'CheckNameAvailabilityParameters',
modelProperties: {
name: {
required: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: true,
isConstant: true,
serializedName: 'type',
defaultValue: 'Microsoft.StorageSync/storageSyncServices',
type: {
name: 'String'
}
}
}
}
};
}
}

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

/**
* The CheckNameAvailability operation response.
*
*/
class CheckNameAvailabilityResult {
/**
* Create a CheckNameAvailabilityResult.
* @member {boolean} [nameAvailable] Gets a boolean value that indicates
* whether the name is available for you to use. If true, the name is
* available. If false, the name has already been taken or invalid and cannot
* be used.
* @member {string} [reason] Gets the reason that a Storage Sync Service name
* could not be used. The Reason element is only returned if NameAvailable is
* false. Possible values include: 'Invalid', 'AlreadyExists'
* @member {string} [message] Gets an error message explaining the Reason
* value in more detail.
*/
constructor() {
}

/**
* Defines the metadata of CheckNameAvailabilityResult
*
* @returns {object} metadata of CheckNameAvailabilityResult
*
*/
mapper() {
return {
required: false,
serializedName: 'CheckNameAvailabilityResult',
type: {
name: 'Composite',
className: 'CheckNameAvailabilityResult',
modelProperties: {
nameAvailable: {
required: false,
readOnly: true,
serializedName: 'nameAvailable',
type: {
name: 'Boolean'
}
},
reason: {
required: false,
readOnly: true,
serializedName: 'reason',
type: {
name: 'Enum',
allowedValues: [ 'Invalid', 'AlreadyExists' ]
}
},
message: {
required: false,
readOnly: true,
serializedName: 'message',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = CheckNameAvailabilityResult;
137 changes: 137 additions & 0 deletions lib/services/storagesyncmanagement/lib/models/cloudEndpoint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
/*
* 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');

/**
* Cloud Endpoint object.
*
* @extends models['BaseResource']
*/
class CloudEndpoint extends models['BaseResource'] {
/**
* 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
* @member {string} [partnershipId] Partnership Id
* @member {string} [friendlyName] Friendly Name
* @member {boolean} [backupEnabled] Backup Enabled
* @member {string} [provisioningState] CloudEndpoint Provisioning State
* @member {string} [lastWorkflowId] CloudEndpoint lastWorkflowId
* @member {string} [lastOperationName] Resource Last Operation Name
*/
constructor() {
super();
}

/**
* Defines the metadata of CloudEndpoint
*
* @returns {object} metadata of CloudEndpoint
*
*/
mapper() {
return {
required: false,
serializedName: 'CloudEndpoint',
type: {
name: 'Composite',
className: 'CloudEndpoint',
modelProperties: {
storageAccountKey: {
required: false,
serializedName: 'properties.storageAccountKey',
type: {
name: 'String'
}
},
storageAccount: {
required: false,
serializedName: 'properties.storageAccount',
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'
}
},
partnershipId: {
required: false,
serializedName: 'properties.partnershipId',
type: {
name: 'String'
}
},
friendlyName: {
required: false,
serializedName: 'properties.friendlyName',
type: {
name: 'String'
}
},
backupEnabled: {
required: false,
readOnly: true,
serializedName: 'properties.backupEnabled',
type: {
name: 'Boolean'
}
},
provisioningState: {
required: false,
serializedName: 'properties.provisioningState',
type: {
name: 'String'
}
},
lastWorkflowId: {
required: false,
serializedName: 'properties.lastWorkflowId',
type: {
name: 'String'
}
},
lastOperationName: {
required: false,
serializedName: 'properties.lastOperationName',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = CloudEndpoint;
Loading