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

Commit

Permalink
Generated from dbf013554fc203756e3ab0752704c6f20f7ef847 (#4276)
Browse files Browse the repository at this point in the history
typo: managementgroups/resource-manager/Microsoft.Management

- Resurse -> Recurse
- Managment -> Management
- Double word "the"
  • Loading branch information
AutorestCI authored Dec 4, 2018
1 parent 54ccef4 commit ce2fcf0
Show file tree
Hide file tree
Showing 36 changed files with 4,507 additions and 467 deletions.
42 changes: 21 additions & 21 deletions lib/services/managementgroupsManagement/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: 43 additions & 37 deletions lib/services/managementgroupsManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,43 @@
# Microsoft Azure SDK for Node.js - ManagementGroupsAPI
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-managementgroups
```

## How to use

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

```javascript
const msRestAzure = require("ms-rest-azure");
const ManagementGroupsAPI = require("azure-arm-managementgroups");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new ManagementGroupsAPI(creds, subscriptionId);
const cacheControl = "testcacheControl";
const skiptoken = "testskiptoken";
return client.managementGroups.list(cacheControl, skiptoken).then((result) => {
console.log("The result is:");
console.log(result);
});
}).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-managementgroups
summary: *content

---
**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.**
## Microsoft Azure SDK for Node.js - ManagementGroupsAPI
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-managementgroups
```

### How to use

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

```javascript
const msRestAzure = require("ms-rest-azure");
const ManagementGroupsAPI = require("azure-arm-managementgroups");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new ManagementGroupsAPI(creds, subscriptionId);
const cacheControl = "testcacheControl";
const skiptoken = "testskiptoken";
return client.managementGroups.list(cacheControl, skiptoken).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)
185 changes: 181 additions & 4 deletions lib/services/managementgroupsManagement/lib/managementGroupsAPI.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import { ServiceClientCredentials } from 'ms-rest';
import { ServiceClient, ServiceClientOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as models from "./models";
import * as operations from "./operations";
Expand All @@ -32,11 +32,11 @@ export default class ManagementGroupsAPI 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, baseUri?: string, options?: AzureServiceClientOptions);
Expand All @@ -55,6 +55,183 @@ export default class ManagementGroupsAPI extends AzureServiceClient {
managementGroups: operations.ManagementGroups;
managementGroupSubscriptions: operations.ManagementGroupSubscriptions;
operations: operations.Operations;
entities: operations.Entities;


/**
* Checks if the specified management group name is valid and unique
*
* @param {object} checkNameAvailabilityRequest Management group name
* availability check parameters.
*
* @param {string} [checkNameAvailabilityRequest.name] the name to check for
* availability
*
* @param {string} [checkNameAvailabilityRequest.type] fully qualified resource
* type which includes provider namespace. Possible values include:
* '/providers/Microsoft.Management/managementGroups'
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<CheckNameAvailabilityResult>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
checkNameAvailabilityWithHttpOperationResponse(checkNameAvailabilityRequest: models.CheckNameAvailabilityRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.CheckNameAvailabilityResult>>;

/**
* Checks if the specified management group name is valid and unique
*
* @param {object} checkNameAvailabilityRequest Management group name
* availability check parameters.
*
* @param {string} [checkNameAvailabilityRequest.name] the name to check for
* availability
*
* @param {string} [checkNameAvailabilityRequest.type] fully qualified resource
* type which includes provider namespace. Possible values include:
* '/providers/Microsoft.Management/managementGroups'
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {CheckNameAvailabilityResult} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {CheckNameAvailabilityResult} [result] - The deserialized result object if an error did not occur.
* See {@link CheckNameAvailabilityResult} for more
* information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
checkNameAvailability(checkNameAvailabilityRequest: models.CheckNameAvailabilityRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.CheckNameAvailabilityResult>;
checkNameAvailability(checkNameAvailabilityRequest: models.CheckNameAvailabilityRequest, callback: ServiceCallback<models.CheckNameAvailabilityResult>): void;
checkNameAvailability(checkNameAvailabilityRequest: models.CheckNameAvailabilityRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.CheckNameAvailabilityResult>): void;


/**
* Starts backfilling subscriptions for the Tenant.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<TenantBackfillStatusResult>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
startTenantBackfillWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.TenantBackfillStatusResult>>;

/**
* Starts backfilling subscriptions for the Tenant.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {TenantBackfillStatusResult} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {TenantBackfillStatusResult} [result] - The deserialized result object if an error did not occur.
* See {@link TenantBackfillStatusResult} for more
* information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
startTenantBackfill(options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.TenantBackfillStatusResult>;
startTenantBackfill(callback: ServiceCallback<models.TenantBackfillStatusResult>): void;
startTenantBackfill(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.TenantBackfillStatusResult>): void;


/**
* Gets tenant backfill status
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<TenantBackfillStatusResult>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
tenantBackfillStatusWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.TenantBackfillStatusResult>>;

/**
* Gets tenant backfill status
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {TenantBackfillStatusResult} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {TenantBackfillStatusResult} [result] - The deserialized result object if an error did not occur.
* See {@link TenantBackfillStatusResult} for more
* information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
tenantBackfillStatus(options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.TenantBackfillStatusResult>;
tenantBackfillStatus(callback: ServiceCallback<models.TenantBackfillStatusResult>): void;
tenantBackfillStatus(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.TenantBackfillStatusResult>): void;
}

export { ManagementGroupsAPI, models as ManagementGroupsAPIModels };
Loading

0 comments on commit ce2fcf0

Please sign in to comment.