Skip to content
Draft
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
8 changes: 4 additions & 4 deletions sdk/trafficmanager/arm-trafficmanager/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## Azure TrafficManagerManagementClient SDK for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for TrafficManagerManagementClient.
This package contains an isomorphic SDK (runs both in node.js and in browsers) for TrafficManagerManagementClient.

### Currently supported environments

- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge, and Firefox.
- Latest versions of Safari, Chrome, Edge and Firefox.

### Prerequisites

Expand Down Expand Up @@ -51,7 +51,7 @@ const creds = new DefaultAzureCredential();
const client = new TrafficManagerManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const profileName = "testprofileName";
const endpointType = "testendpointType";
const endpointType = "AzureEndpoints";
const endpointName = "testendpointName";
client.endpoints.get(resourceGroupName, profileName, endpointType, endpointName).then((result) => {
console.log("The result is:");
Expand Down Expand Up @@ -92,7 +92,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
const client = new Azure.ArmTrafficmanager.TrafficManagerManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const profileName = "testprofileName";
const endpointType = "testendpointType";
const endpointType = "AzureEndpoints";
const endpointName = "testendpointName";
client.endpoints.get(resourceGroupName, profileName, endpointType, endpointName).then((result) => {
console.log("The result is:");
Expand Down
2 changes: 1 addition & 1 deletion sdk/trafficmanager/arm-trafficmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/trafficmanager/arm-trafficmanager",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/trafficmanager/arm-trafficmanager",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down
8 changes: 8 additions & 0 deletions sdk/trafficmanager/arm-trafficmanager/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,14 @@ export type TrafficViewEnrollmentStatus = 'Enabled' | 'Disabled';
*/
export type AllowedEndpointRecordType = 'DomainName' | 'IPv4Address' | 'IPv6Address' | 'Any';

/**
* Defines values for EndpointType.
* Possible values include: 'AzureEndpoints', 'ExternalEndpoints', 'NestedEndpoints'
* @readonly
* @enum {string}
*/
export type EndpointType = 'AzureEndpoints' | 'ExternalEndpoints' | 'NestedEndpoints';

/**
* Contains response data for the update operation.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ export const endpointType: msRest.OperationURLParameter = {
required: true,
serializedName: "endpointType",
type: {
name: "String"
name: "Enum",
allowedValues: [
"AzureEndpoints",
"ExternalEndpoints",
"NestedEndpoints"
]
}
}
};
Expand Down
68 changes: 40 additions & 28 deletions sdk/trafficmanager/arm-trafficmanager/src/operations/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,35 +30,38 @@ export class Endpoints {
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint
* to be updated.
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be updated.
* @param endpointType The type of the Traffic Manager endpoint to be updated. Possible values
* include: 'AzureEndpoints', 'ExternalEndpoints', 'NestedEndpoints'
* @param endpointName The name of the Traffic Manager endpoint to be updated.
* @param parameters The Traffic Manager endpoint parameters supplied to the Update operation.
* @param [options] The optional parameters
* @returns Promise<Models.EndpointsUpdateResponse>
*/
update(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, parameters: Models.Endpoint, options?: msRest.RequestOptionsBase): Promise<Models.EndpointsUpdateResponse>;
update(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, parameters: Models.Endpoint, options?: msRest.RequestOptionsBase): Promise<Models.EndpointsUpdateResponse>;
/**
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint
* to be updated.
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be updated.
* @param endpointType The type of the Traffic Manager endpoint to be updated. Possible values
* include: 'AzureEndpoints', 'ExternalEndpoints', 'NestedEndpoints'
* @param endpointName The name of the Traffic Manager endpoint to be updated.
* @param parameters The Traffic Manager endpoint parameters supplied to the Update operation.
* @param callback The callback
*/
update(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, parameters: Models.Endpoint, callback: msRest.ServiceCallback<Models.Endpoint>): void;
update(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, parameters: Models.Endpoint, callback: msRest.ServiceCallback<Models.Endpoint>): void;
/**
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint
* to be updated.
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be updated.
* @param endpointType The type of the Traffic Manager endpoint to be updated. Possible values
* include: 'AzureEndpoints', 'ExternalEndpoints', 'NestedEndpoints'
* @param endpointName The name of the Traffic Manager endpoint to be updated.
* @param parameters The Traffic Manager endpoint parameters supplied to the Update operation.
* @param options The optional parameters
* @param callback The callback
*/
update(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, parameters: Models.Endpoint, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Endpoint>): void;
update(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, parameters: Models.Endpoint, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Endpoint>, callback?: msRest.ServiceCallback<Models.Endpoint>): Promise<Models.EndpointsUpdateResponse> {
update(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, parameters: Models.Endpoint, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Endpoint>): void;
update(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, parameters: Models.Endpoint, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Endpoint>, callback?: msRest.ServiceCallback<Models.Endpoint>): Promise<Models.EndpointsUpdateResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
Expand All @@ -76,30 +79,33 @@ export class Endpoints {
* Gets a Traffic Manager endpoint.
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint.
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint.
* @param endpointType The type of the Traffic Manager endpoint. Possible values include:
* 'AzureEndpoints', 'ExternalEndpoints', 'NestedEndpoints'
* @param endpointName The name of the Traffic Manager endpoint.
* @param [options] The optional parameters
* @returns Promise<Models.EndpointsGetResponse>
*/
get(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, options?: msRest.RequestOptionsBase): Promise<Models.EndpointsGetResponse>;
get(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, options?: msRest.RequestOptionsBase): Promise<Models.EndpointsGetResponse>;
/**
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint.
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint.
* @param endpointType The type of the Traffic Manager endpoint. Possible values include:
* 'AzureEndpoints', 'ExternalEndpoints', 'NestedEndpoints'
* @param endpointName The name of the Traffic Manager endpoint.
* @param callback The callback
*/
get(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, callback: msRest.ServiceCallback<Models.Endpoint>): void;
get(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, callback: msRest.ServiceCallback<Models.Endpoint>): void;
/**
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint.
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint.
* @param endpointType The type of the Traffic Manager endpoint. Possible values include:
* 'AzureEndpoints', 'ExternalEndpoints', 'NestedEndpoints'
* @param endpointName The name of the Traffic Manager endpoint.
* @param options The optional parameters
* @param callback The callback
*/
get(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Endpoint>): void;
get(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Endpoint>, callback?: msRest.ServiceCallback<Models.Endpoint>): Promise<Models.EndpointsGetResponse> {
get(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Endpoint>): void;
get(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Endpoint>, callback?: msRest.ServiceCallback<Models.Endpoint>): Promise<Models.EndpointsGetResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
Expand All @@ -117,38 +123,41 @@ export class Endpoints {
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint
* to be created or updated.
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be created or updated.
* @param endpointType The type of the Traffic Manager endpoint to be created or updated. Possible
* values include: 'AzureEndpoints', 'ExternalEndpoints', 'NestedEndpoints'
* @param endpointName The name of the Traffic Manager endpoint to be created or updated.
* @param parameters The Traffic Manager endpoint parameters supplied to the CreateOrUpdate
* operation.
* @param [options] The optional parameters
* @returns Promise<Models.EndpointsCreateOrUpdateResponse>
*/
createOrUpdate(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, parameters: Models.Endpoint, options?: msRest.RequestOptionsBase): Promise<Models.EndpointsCreateOrUpdateResponse>;
createOrUpdate(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, parameters: Models.Endpoint, options?: msRest.RequestOptionsBase): Promise<Models.EndpointsCreateOrUpdateResponse>;
/**
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint
* to be created or updated.
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be created or updated.
* @param endpointType The type of the Traffic Manager endpoint to be created or updated. Possible
* values include: 'AzureEndpoints', 'ExternalEndpoints', 'NestedEndpoints'
* @param endpointName The name of the Traffic Manager endpoint to be created or updated.
* @param parameters The Traffic Manager endpoint parameters supplied to the CreateOrUpdate
* operation.
* @param callback The callback
*/
createOrUpdate(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, parameters: Models.Endpoint, callback: msRest.ServiceCallback<Models.Endpoint>): void;
createOrUpdate(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, parameters: Models.Endpoint, callback: msRest.ServiceCallback<Models.Endpoint>): void;
/**
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint
* to be created or updated.
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be created or updated.
* @param endpointType The type of the Traffic Manager endpoint to be created or updated. Possible
* values include: 'AzureEndpoints', 'ExternalEndpoints', 'NestedEndpoints'
* @param endpointName The name of the Traffic Manager endpoint to be created or updated.
* @param parameters The Traffic Manager endpoint parameters supplied to the CreateOrUpdate
* operation.
* @param options The optional parameters
* @param callback The callback
*/
createOrUpdate(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, parameters: Models.Endpoint, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Endpoint>): void;
createOrUpdate(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, parameters: Models.Endpoint, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Endpoint>, callback?: msRest.ServiceCallback<Models.Endpoint>): Promise<Models.EndpointsCreateOrUpdateResponse> {
createOrUpdate(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, parameters: Models.Endpoint, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Endpoint>): void;
createOrUpdate(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, parameters: Models.Endpoint, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Endpoint>, callback?: msRest.ServiceCallback<Models.Endpoint>): Promise<Models.EndpointsCreateOrUpdateResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
Expand All @@ -167,32 +176,35 @@ export class Endpoints {
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint
* to be deleted.
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be deleted.
* @param endpointType The type of the Traffic Manager endpoint to be deleted. Possible values
* include: 'AzureEndpoints', 'ExternalEndpoints', 'NestedEndpoints'
* @param endpointName The name of the Traffic Manager endpoint to be deleted.
* @param [options] The optional parameters
* @returns Promise<Models.EndpointsDeleteMethodResponse>
*/
deleteMethod(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, options?: msRest.RequestOptionsBase): Promise<Models.EndpointsDeleteMethodResponse>;
deleteMethod(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, options?: msRest.RequestOptionsBase): Promise<Models.EndpointsDeleteMethodResponse>;
/**
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint
* to be deleted.
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be deleted.
* @param endpointType The type of the Traffic Manager endpoint to be deleted. Possible values
* include: 'AzureEndpoints', 'ExternalEndpoints', 'NestedEndpoints'
* @param endpointName The name of the Traffic Manager endpoint to be deleted.
* @param callback The callback
*/
deleteMethod(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, callback: msRest.ServiceCallback<Models.DeleteOperationResult>): void;
deleteMethod(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, callback: msRest.ServiceCallback<Models.DeleteOperationResult>): void;
/**
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint
* to be deleted.
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be deleted.
* @param endpointType The type of the Traffic Manager endpoint to be deleted. Possible values
* include: 'AzureEndpoints', 'ExternalEndpoints', 'NestedEndpoints'
* @param endpointName The name of the Traffic Manager endpoint to be deleted.
* @param options The optional parameters
* @param callback The callback
*/
deleteMethod(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DeleteOperationResult>): void;
deleteMethod(resourceGroupName: string, profileName: string, endpointType: string, endpointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DeleteOperationResult>, callback?: msRest.ServiceCallback<Models.DeleteOperationResult>): Promise<Models.EndpointsDeleteMethodResponse> {
deleteMethod(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DeleteOperationResult>): void;
deleteMethod(resourceGroupName: string, profileName: string, endpointType: Models.EndpointType, endpointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DeleteOperationResult>, callback?: msRest.ServiceCallback<Models.DeleteOperationResult>): Promise<Models.EndpointsDeleteMethodResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
Expand Down