Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
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/devspacesManagement/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.
84 changes: 42 additions & 42 deletions lib/services/devspacesManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
---
uid: azure-arm-devspaces
summary: *content

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

## How to use

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

```javascript
const msRestAzure = require("ms-rest-azure");
const DevSpacesManagementClient = require("azure-arm-devspaces");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new DevSpacesManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const name = "testname";
return client.controllers.get(resourceGroupName, name).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-devspaces
summary: *content
---
# Microsoft Azure SDK for Node.js - DevSpacesManagementClient
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-devspaces
```
## How to use
### Authentication, client creation and get controllers as an example.
```javascript
const msRestAzure = require("ms-rest-azure");
const DevSpacesManagementClient = require("azure-arm-devspaces");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new DevSpacesManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const name = "testname";
return client.controllers.get(resourceGroupName, name).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
Expand Up @@ -56,6 +56,7 @@ export default class DevSpacesManagementClient extends AzureServiceClient {
generateClientRequestId: boolean;

// Operation groups
containerHostMappings: operations.ContainerHostMappings;
controllers: operations.Controllers;
operations: operations.Operations;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class DevSpacesManagementClient extends ServiceClient {
if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
this.generateClientRequestId = options.generateClientRequestId;
}
this.containerHostMappings = new operations.ContainerHostMappings(this);
this.controllers = new operations.Controllers(this);
this.operations = new operations.Operations(this);
this.models = models;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* 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';

/**
* Container host mapping object specifying the Container host resource ID and
* its associated Controller resource.
*
*/
class ContainerHostMapping {
/**
* Create a ContainerHostMapping.
* @member {string} [containerHostResourceId] ARM ID of the Container Host
* resource
* @member {string} [mappedControllerResourceId] ARM ID of the mapped
* Controller resource
*/
constructor() {
}

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

module.exports = ContainerHostMapping;
2 changes: 1 addition & 1 deletion lib/services/devspacesManagement/lib/models/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Controller extends models['TrackedResource'] {
* Create a Controller.
* @member {string} [provisioningState] Provisioning state of the Azure Dev
* Spaces Controller. Possible values include: 'Succeeded', 'Failed',
* 'Canceled', 'Updating', 'Creating', 'Deleting'
* 'Canceled', 'Updating', 'Creating', 'Deleting', 'Deleted'
* @member {string} hostSuffix DNS suffix for public endpoints running in the
* Azure Dev Spaces Controller.
* @member {string} [dataPlaneFqdn] DNS name for accessing DataPlane services
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Class representing a ControllerConnectionDetails.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Class representing a ControllerConnectionDetailsList.
*/
Expand Down
2 changes: 0 additions & 2 deletions lib/services/devspacesManagement/lib/models/errorResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Error response indicates that the service is not able to process the
* incoming request. The reason is provided in the error message.
Expand Down
24 changes: 23 additions & 1 deletion lib/services/devspacesManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@ export { BaseResource } from 'ms-rest-azure';
export { CloudError } from 'ms-rest-azure';


/**
* @class
* Initializes a new instance of the ContainerHostMapping class.
* @constructor
* Container host mapping object specifying the Container host resource ID and
* its associated Controller resource.
*
* @member {string} [containerHostResourceId] ARM ID of the Container Host
* resource
* @member {string} [mappedControllerResourceId] ARM ID of the mapped
* Controller resource
*/
export interface ContainerHostMapping {
containerHostResourceId?: string;
readonly mappedControllerResourceId?: string;
}

/**
* @class
* Initializes a new instance of the Sku class.
Expand Down Expand Up @@ -65,7 +82,7 @@ export interface TrackedResource extends Resource {
* @constructor
* @member {string} [provisioningState] Provisioning state of the Azure Dev
* Spaces Controller. Possible values include: 'Succeeded', 'Failed',
* 'Canceled', 'Updating', 'Creating', 'Deleting'
* 'Canceled', 'Updating', 'Creating', 'Deleting', 'Deleted'
* @member {string} hostSuffix DNS suffix for public endpoints running in the
* Azure Dev Spaces Controller.
* @member {string} [dataPlaneFqdn] DNS name for accessing DataPlane services
Expand Down Expand Up @@ -102,6 +119,9 @@ export interface ControllerUpdateParameters {
* @class
* Initializes a new instance of the OrchestratorSpecificConnectionDetails class.
* @constructor
* Base class for types that supply values used to connect to container
* orchestrators
*
* @member {string} instanceType Polymorphic Discriminator
*/
export interface OrchestratorSpecificConnectionDetails {
Expand Down Expand Up @@ -179,6 +199,8 @@ export interface ResourceProviderOperationDefinition {
* @class
* Initializes a new instance of the KubernetesConnectionDetails class.
* @constructor
* Contains information used to connect to a Kubernetes cluster
*
* @member {string} [kubeConfig] Gets the kubeconfig for the cluster.
*/
export interface KubernetesConnectionDetails extends OrchestratorSpecificConnectionDetails {
Expand Down
1 change: 1 addition & 0 deletions lib/services/devspacesManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ var msRestAzure = require('ms-rest-azure');

exports.BaseResource = msRestAzure.BaseResource;
exports.CloudError = msRestAzure.CloudError;
exports.ContainerHostMapping = require('./containerHostMapping');
exports.Sku = require('./sku');
exports.Resource = require('./resource');
exports.TrackedResource = require('./trackedResource');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
const models = require('./index');

/**
* Class representing a KubernetesConnectionDetails.
* Contains information used to connect to a Kubernetes cluster
*
* @extends models['OrchestratorSpecificConnectionDetails']
*/
class KubernetesConnectionDetails extends models['OrchestratorSpecificConnectionDetails'] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
'use strict';

/**
* Class representing a OrchestratorSpecificConnectionDetails.
* Base class for types that supply values used to connect to container
* orchestrators
*
*/
class OrchestratorSpecificConnectionDetails {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Class representing a ResourceProviderOperationDefinition.
*/
Expand Down
Loading