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

[AutoPR web/resource-manager] [Hub Generated] Review request for Microsoft.Web to add version 2018-02-01 #4626

Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const models = require('./index');

/**
* ARM resource for a app service environment.
* ARM resource for a app service enviroment.
*
* @extends models['ProxyOnlyResource']
*/
Expand Down
68 changes: 68 additions & 0 deletions lib/services/websiteManagement2/lib/models/endpointDependency.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* 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';

/**
* Class representing a EndpointDependency.
*/
class EndpointDependency {
/**
* Create a EndpointDependency.
* @property {string} [domainName] The Domain Name of the dependency.
* @property {array} [endpointDetails] The IP Addresses and Ports used when
* connecting to DomainName.
*/
constructor() {
}

/**
* Defines the metadata of EndpointDependency
*
* @returns {object} metadata of EndpointDependency
*
*/
mapper() {
return {
required: false,
serializedName: 'EndpointDependency',
type: {
name: 'Composite',
className: 'EndpointDependency',
modelProperties: {
domainName: {
required: false,
serializedName: 'domainName',
type: {
name: 'String'
}
},
endpointDetails: {
required: false,
serializedName: 'endpointDetails',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'EndpointDetailElementType',
type: {
name: 'Composite',
className: 'EndpointDetail'
}
}
}
}
}
}
};
}
}

module.exports = EndpointDependency;
78 changes: 78 additions & 0 deletions lib/services/websiteManagement2/lib/models/endpointDetail.js
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';

/**
* Class representing a EndpointDetail.
*/
class EndpointDetail {
/**
* Create a EndpointDetail.
* @property {string} [ipAddress] An IP Address that Domain Name currently
* resolves to.
* @property {number} [port] The port an endpoint is connected to.
* @property {number} [latency] The time in milliseconds it takes to connect
* to this IpAddress at this Port.
* @property {boolean} [isAccessable] Whether it is possible to connect to
* IpAddress.
*/
constructor() {
}

/**
* Defines the metadata of EndpointDetail
*
* @returns {object} metadata of EndpointDetail
*
*/
mapper() {
return {
required: false,
serializedName: 'EndpointDetail',
type: {
name: 'Composite',
className: 'EndpointDetail',
modelProperties: {
ipAddress: {
required: false,
serializedName: 'ipAddress',
type: {
name: 'String'
}
},
port: {
required: false,
serializedName: 'port',
type: {
name: 'Number'
}
},
latency: {
required: false,
serializedName: 'latency',
type: {
name: 'Number'
}
},
isAccessable: {
required: false,
serializedName: 'isAccessable',
type: {
name: 'Boolean'
}
}
}
}
};
}
}

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

/**
* Endpoints for a particular type
*
*/
class InboundEnvironmentEndpoint {
/**
* Create a InboundEnvironmentEndpoint.
* @property {string} [description] Text describing the endpoints.
* @property {array} [endpoints] The endpoint ip addresses in cidr notation.
* @property {array} [ports] The ports
*/
constructor() {
}

/**
* Defines the metadata of InboundEnvironmentEndpoint
*
* @returns {object} metadata of InboundEnvironmentEndpoint
*
*/
mapper() {
return {
required: false,
serializedName: 'InboundEnvironmentEndpoint',
type: {
name: 'Composite',
className: 'InboundEnvironmentEndpoint',
modelProperties: {
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
endpoints: {
required: false,
serializedName: 'endpoints',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
ports: {
required: false,
serializedName: 'ports',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}

module.exports = InboundEnvironmentEndpoint;
64 changes: 63 additions & 1 deletion lib/services/websiteManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6669,7 +6669,7 @@ export interface AppServiceEnvironmentResource extends Resource {
}

/**
* ARM resource for a app service environment.
* ARM resource for a app service enviroment.
*/
export interface AppServiceEnvironmentPatchResource extends ProxyOnlyResource {
/**
Expand Down Expand Up @@ -6838,6 +6838,36 @@ export interface AppServiceEnvironmentPatchResource extends ProxyOnlyResource {
sslCertKeyVaultSecretName?: string;
}

export interface EndpointDetail {
/**
* An IP Address that Domain Name currently resolves to.
*/
ipAddress?: string;
/**
* The port an endpoint is connected to.
*/
port?: number;
/**
* The time in milliseconds it takes to connect to this IpAddress at this Port.
*/
latency?: number;
/**
* Whether it is possible to connect to IpAddress.
*/
isAccessable?: boolean;
}

export interface EndpointDependency {
/**
* The Domain Name of the dependency.
*/
domainName?: string;
/**
* The IP Addresses and Ports used when connecting to DomainName.
*/
endpointDetails?: EndpointDetail[];
}

/**
* Diagnostics for an App Service Environment.
*/
Expand All @@ -6852,6 +6882,24 @@ export interface HostingEnvironmentDiagnostics {
diagnosicsOutput?: string;
}

/**
* Endpoints for a particular type
*/
export interface InboundEnvironmentEndpoint {
/**
* Text describing the endpoints.
*/
description?: string;
/**
* The endpoint ip addresses in cidr notation.
*/
endpoints?: string[];
/**
* The ports
*/
ports?: string[];
}

/**
* Metric availability and retention.
*/
Expand Down Expand Up @@ -6888,6 +6936,20 @@ export interface MetricDefinition extends ProxyOnlyResource {
readonly displayName?: string;
}

/**
* Endpoints of a common type.
*/
export interface OutboundEnvironmentEndpoint {
/**
* Short description of the endpoints.
*/
category?: string;
/**
* The endpoint's domain name and the IP Addresses it currently resolves to.
*/
endpoints?: EndpointDependency[];
}

/**
* SKU discovery information.
*/
Expand Down
4 changes: 4 additions & 0 deletions lib/services/websiteManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,13 @@ exports.WebJob = require('./webJob');
exports.AddressResponse = require('./addressResponse');
exports.AppServiceEnvironmentResource = require('./appServiceEnvironmentResource');
exports.AppServiceEnvironmentPatchResource = require('./appServiceEnvironmentPatchResource');
exports.EndpointDetail = require('./endpointDetail');
exports.EndpointDependency = require('./endpointDependency');
exports.HostingEnvironmentDiagnostics = require('./hostingEnvironmentDiagnostics');
exports.InboundEnvironmentEndpoint = require('./inboundEnvironmentEndpoint');
exports.MetricAvailabilily = require('./metricAvailabilily');
exports.MetricDefinition = require('./metricDefinition');
exports.OutboundEnvironmentEndpoint = require('./outboundEnvironmentEndpoint');
exports.SkuInfo = require('./skuInfo');
exports.Usage = require('./usage');
exports.WorkerPoolResource = require('./workerPoolResource');
Expand Down
Loading