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
2 changes: 1 addition & 1 deletion lib/services/cognitiveServicesManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 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
Expand Down
3 changes: 0 additions & 3 deletions lib/services/cognitiveServicesManagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,3 @@ msRestAzure.interactiveLogin().then((creds) => {
### Related projects

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-node%2Flib%2Fservices%2FcognitiveServicesManagement%2FREADME.png)
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default class CognitiveServicesManagementClient extends AzureServiceClien
resourceSkus: operations.ResourceSkus;
operations: operations.Operations;
checkSkuAvailability: operations.CheckSkuAvailability;
locations: operations.Locations;
}

export { CognitiveServicesManagementClient, models as CognitiveServicesManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class CognitiveServicesManagementClient extends ServiceClient {
this.resourceSkus = new operations.ResourceSkus(this);
this.operations = new operations.Operations(this);
this.checkSkuAvailability = new operations.CheckSkuAvailability(this);
this.locations = new operations.Locations(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* 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';

/**
* Check Domain availability parameter.
*
*/
class CheckDomainAvailabilityParameter {
/**
* Create a CheckDomainAvailabilityParameter.
* @property {string} subdomainName The subdomain name to use.
* @property {string} type The Type of the resource.
*/
constructor() {
}

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

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

/**
* Check Domain availability result.
*
*/
class CheckDomainAvailabilityResult {
/**
* Create a CheckDomainAvailabilityResult.
* @property {boolean} [isSubdomainAvailable] Indicates the given SKU is
* available or not.
* @property {string} [reason] Reason why the SKU is not available.
* @property {string} [subdomainName] The subdomain name to use.
* @property {string} [type] The Type of the resource.
*/
constructor() {
}

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

module.exports = CheckDomainAvailabilityResult;
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ class CognitiveServicesAccount extends models['BaseResource'] {
* 'Failed'
* @property {string} [endpoint] Endpoint of the created account.
* @property {string} [internalId] The internal identifier.
* @property {string} [customSubDomainName] Optional subdomain name used for
* token-based authentication.
* @property {object} [sku] The SKU of Cognitive Services account.
* @property {string} [sku.name] Gets or sets the sku name. Required for
* account creation, optional for update.
Expand Down Expand Up @@ -121,6 +123,13 @@ class CognitiveServicesAccount extends models['BaseResource'] {
name: 'String'
}
},
customSubDomainName: {
required: false,
serializedName: 'properties.customSubDomainName',
type: {
name: 'String'
}
},
sku: {
required: false,
serializedName: 'sku',
Expand Down
40 changes: 40 additions & 0 deletions lib/services/cognitiveServicesManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ export interface CognitiveServicesAccount extends BaseResource {
* The internal identifier.
*/
internalId?: string;
/**
* Optional subdomain name used for token-based authentication.
*/
customSubDomainName?: string;
/**
* The SKU of Cognitive Services account.
*/
Expand Down Expand Up @@ -329,6 +333,20 @@ export interface CheckSkuAvailabilityParameter {
type: string;
}

/**
* Check Domain availability parameter.
*/
export interface CheckDomainAvailabilityParameter {
/**
* The subdomain name to use.
*/
subdomainName: string;
/**
* The Type of the resource.
*/
type: string;
}

/**
* Check SKU availability result.
*/
Expand Down Expand Up @@ -369,6 +387,28 @@ export interface CheckSkuAvailabilityResultList {
value?: CheckSkuAvailabilityResult[];
}

/**
* Check Domain availability result.
*/
export interface CheckDomainAvailabilityResult {
/**
* Indicates the given SKU is available or not.
*/
isSubdomainAvailable?: boolean;
/**
* Reason why the SKU is not available.
*/
reason?: string;
/**
* The subdomain name to use.
*/
subdomainName?: string;
/**
* The Type of the resource.
*/
type?: string;
}

export interface ResourceSkuRestrictionInfo {
/**
* Locations where the SKU is restricted
Expand Down
2 changes: 2 additions & 0 deletions lib/services/cognitiveServicesManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ exports.ErrorModel = require('./errorModel');
exports.OperationDisplayInfo = require('./operationDisplayInfo');
exports.OperationEntity = require('./operationEntity');
exports.CheckSkuAvailabilityParameter = require('./checkSkuAvailabilityParameter');
exports.CheckDomainAvailabilityParameter = require('./checkDomainAvailabilityParameter');
exports.CheckSkuAvailabilityResult = require('./checkSkuAvailabilityResult');
exports.CheckSkuAvailabilityResultList = require('./checkSkuAvailabilityResultList');
exports.CheckDomainAvailabilityResult = require('./checkDomainAvailabilityResult');
exports.ResourceSkuRestrictionInfo = require('./resourceSkuRestrictionInfo');
exports.ResourceSkuRestrictions = require('./resourceSkuRestrictions');
exports.ResourceSku = require('./resourceSku');
Expand Down
Loading