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

Commit

Permalink
Generated from fe61b6452bc4da03f8f2fb36a4e5611cb69cdca9 (#4740)
Browse files Browse the repository at this point in the history
align with spec generated from tooling

user and notification align

Refactor products and apis

validating examples

validating examples

move all parameters to apimanagement.json
  • Loading branch information
AutorestCI authored Mar 1, 2019
1 parent 92df865 commit e1ac561
Show file tree
Hide file tree
Showing 36 changed files with 1,163 additions and 173 deletions.
2 changes: 1 addition & 1 deletion lib/services/apimanagement/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
1 change: 1 addition & 0 deletions lib/services/apimanagement/lib/apiManagementClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default class ApiManagementClient extends AzureServiceClient {
backend: operations.Backend;
certificate: operations.Certificate;
apiManagementOperations: operations.ApiManagementOperations;
apiManagementServiceSkus: operations.ApiManagementServiceSkus;
apiManagementService: operations.ApiManagementService;
diagnostic: operations.Diagnostic;
diagnosticLogger: operations.DiagnosticLogger;
Expand Down
1 change: 1 addition & 0 deletions lib/services/apimanagement/lib/apiManagementClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class ApiManagementClient extends ServiceClient {
this.backend = new operations.Backend(this);
this.certificate = new operations.Certificate(this);
this.apiManagementOperations = new operations.ApiManagementOperations(this);
this.apiManagementServiceSkus = new operations.ApiManagementServiceSkus(this);
this.apiManagementService = new operations.ApiManagementService(this);
this.diagnostic = new operations.Diagnostic(this);
this.diagnosticLogger = new operations.DiagnosticLogger(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ApiManagementServiceBaseProperties {
* installed in the API Management service. Max supported certificates that
* can be installed is 10.
* @member {string} [virtualNetworkType] The type of VPN in which API
* Managemet service needs to be configured in. None (Default Value) means
* Management service needs to be configured in. None (Default Value) means
* the API Management service is not part of any Virtual Network, External
* means the API Management deployment is set up inside a Virtual Network
* having an Internet Facing Endpoint, and Internal means that API Management
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ApiManagementServiceResource extends models['ApimResource'] {
* installed in the API Management service. Max supported certificates that
* can be installed is 10.
* @member {string} [virtualNetworkType] The type of VPN in which API
* Managemet service needs to be configured in. None (Default Value) means
* Management service needs to be configured in. None (Default Value) means
* the API Management service is not part of any Virtual Network, External
* means the API Management deployment is set up inside a Virtual Network
* having an Internet Facing Endpoint, and Internal means that API Management
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ApiManagementServiceUpdateParameters extends models['ApimResource'] {
* installed in the API Management service. Max supported certificates that
* can be installed is 10.
* @member {string} [virtualNetworkType] The type of VPN in which API
* Managemet service needs to be configured in. None (Default Value) means
* Management service needs to be configured in. None (Default Value) means
* the API Management service is not part of any Virtual Network, External
* means the API Management deployment is set up inside a Virtual Network
* having an Internet Facing Endpoint, and Internal means that API Management
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class BackendBaseParameters {
* certificate thumbprint for the management endpoint.
* @member {number}
* [properties.serviceFabricCluster.maxPartitionResolutionRetries] Maximum
* number of retries while attempting resolve the parition.
* number of retries while attempting resolve the partition.
* @member {array} [properties.serviceFabricCluster.managementEndpoints] The
* cluster management endpoint.
* @member {array}
Expand Down
2 changes: 1 addition & 1 deletion lib/services/apimanagement/lib/models/backendContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BackendContract extends models['Resource'] {
* certificate thumbprint for the management endpoint.
* @member {number}
* [properties.serviceFabricCluster.maxPartitionResolutionRetries] Maximum
* number of retries while attempting resolve the parition.
* number of retries while attempting resolve the partition.
* @member {array} [properties.serviceFabricCluster.managementEndpoints] The
* cluster management endpoint.
* @member {array}
Expand Down
2 changes: 1 addition & 1 deletion lib/services/apimanagement/lib/models/backendProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class BackendProperties {
* @member {string} [serviceFabricCluster.clientCertificatethumbprint] The
* client certificate thumbprint for the management endpoint.
* @member {number} [serviceFabricCluster.maxPartitionResolutionRetries]
* Maximum number of retries while attempting resolve the parition.
* Maximum number of retries while attempting resolve the partition.
* @member {array} [serviceFabricCluster.managementEndpoints] The cluster
* management endpoint.
* @member {array} [serviceFabricCluster.serverCertificateThumbprints]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class BackendReconnectContract extends models['Resource'] {
/**
* Create a BackendReconnectContract.
* @member {moment.duration} [after] Duration in ISO8601 format after which
* reconnect will be initiated. Minimum duration of the Reconect is PT2M.
* reconnect will be initiated. Minimum duration of the Reconnect is PT2M.
*/
constructor() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class BackendServiceFabricClusterProperties {
* @member {string} clientCertificatethumbprint The client certificate
* thumbprint for the management endpoint.
* @member {number} [maxPartitionResolutionRetries] Maximum number of retries
* while attempting resolve the parition.
* while attempting resolve the partition.
* @member {array} managementEndpoints The cluster management endpoint.
* @member {array} [serverCertificateThumbprints] Thumbprints of certificates
* cluster management service uses for tls communication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class BackendUpdateParameters {
* certificate thumbprint for the management endpoint.
* @member {number}
* [properties.serviceFabricCluster.maxPartitionResolutionRetries] Maximum
* number of retries while attempting resolve the parition.
* number of retries while attempting resolve the partition.
* @member {array} [properties.serviceFabricCluster.managementEndpoints] The
* cluster management endpoint.
* @member {array}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CertificateConfiguration {
* @member {string} [encodedCertificate] Base64 Encoded certificate.
* @member {string} [certificatePassword] Certificate Password.
* @member {string} storeName The
* System.Security.Cryptography.x509certificates.Storename certificate store
* System.Security.Cryptography.x509certificates.StoreName certificate store
* location. Only Root and CertificateAuthority are valid locations. Possible
* values include: 'CertificateAuthority', 'Root'
* @member {object} [certificate] Certificate information.
Expand Down
120 changes: 94 additions & 26 deletions lib/services/apimanagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1524,7 +1524,7 @@ export interface X509CertificateName {
* @member {string} clientCertificatethumbprint The client certificate
* thumbprint for the management endpoint.
* @member {number} [maxPartitionResolutionRetries] Maximum number of retries
* while attempting resolve the parition.
* while attempting resolve the partition.
* @member {array} managementEndpoints The cluster management endpoint.
* @member {array} [serverCertificateThumbprints] Thumbprints of certificates
* cluster management service uses for tls communication
Expand All @@ -1549,7 +1549,7 @@ export interface BackendServiceFabricClusterProperties {
* @member {string} [serviceFabricCluster.clientCertificatethumbprint] The
* client certificate thumbprint for the management endpoint.
* @member {number} [serviceFabricCluster.maxPartitionResolutionRetries]
* Maximum number of retries while attempting resolve the parition.
* Maximum number of retries while attempting resolve the partition.
* @member {array} [serviceFabricCluster.managementEndpoints] The cluster
* management endpoint.
* @member {array} [serviceFabricCluster.serverCertificateThumbprints]
Expand Down Expand Up @@ -1637,7 +1637,7 @@ export interface BackendTlsProperties {
* certificate thumbprint for the management endpoint.
* @member {number}
* [properties.serviceFabricCluster.maxPartitionResolutionRetries] Maximum
* number of retries while attempting resolve the parition.
* number of retries while attempting resolve the partition.
* @member {array} [properties.serviceFabricCluster.managementEndpoints] The
* cluster management endpoint.
* @member {array}
Expand Down Expand Up @@ -1699,7 +1699,7 @@ export interface BackendBaseParameters {
* certificate thumbprint for the management endpoint.
* @member {number}
* [properties.serviceFabricCluster.maxPartitionResolutionRetries] Maximum
* number of retries while attempting resolve the parition.
* number of retries while attempting resolve the partition.
* @member {array} [properties.serviceFabricCluster.managementEndpoints] The
* cluster management endpoint.
* @member {array}
Expand Down Expand Up @@ -1766,7 +1766,7 @@ export interface BackendContract extends Resource {
* certificate thumbprint for the management endpoint.
* @member {number}
* [properties.serviceFabricCluster.maxPartitionResolutionRetries] Maximum
* number of retries while attempting resolve the parition.
* number of retries while attempting resolve the partition.
* @member {array} [properties.serviceFabricCluster.managementEndpoints] The
* cluster management endpoint.
* @member {array}
Expand Down Expand Up @@ -1821,7 +1821,7 @@ export interface BackendUpdateParameters {
* Reconnect request parameters.
*
* @member {moment.duration} [after] Duration in ISO8601 format after which
* reconnect will be initiated. Minimum duration of the Reconect is PT2M.
* reconnect will be initiated. Minimum duration of the Reconnect is PT2M.
*/
export interface BackendReconnectContract extends Resource {
after?: moment.Duration;
Expand Down Expand Up @@ -1860,6 +1860,61 @@ export interface CertificateCreateOrUpdateParameters {
password: string;
}

/**
* @class
* Initializes a new instance of the ResourceSku class.
* @constructor
* Describes an available API Management SKU.
*
* @member {string} [name] Name of the Sku. Possible values include:
* 'Developer', 'Standard', 'Premium', 'Basic'
*/
export interface ResourceSku {
name?: string;
}

/**
* @class
* Initializes a new instance of the ResourceSkuCapacity class.
* @constructor
* Describes scaling information of a SKU.
*
* @member {number} [minimum] The minimum capacity.
* @member {number} [maximum] The maximum capacity that can be set.
* @member {number} [default] The default capacity.
* @member {string} [scaleType] The scale type applicable to the sku. Possible
* values include: 'automatic', 'manual', 'none'
*/
export interface ResourceSkuCapacity {
readonly minimum?: number;
readonly maximum?: number;
readonly default?: number;
readonly scaleType?: string;
}

/**
* @class
* Initializes a new instance of the ResourceSkuResult class.
* @constructor
* Describes an available API Management service SKU.
*
* @member {string} [resourceType] The type of resource the SKU applies to.
* @member {object} [sku] Specifies API Management SKU.
* @member {string} [sku.name] Name of the Sku. Possible values include:
* 'Developer', 'Standard', 'Premium', 'Basic'
* @member {object} [capacity] Specifies the number of API Management units.
* @member {number} [capacity.minimum] The minimum capacity.
* @member {number} [capacity.maximum] The maximum capacity that can be set.
* @member {number} [capacity.default] The default capacity.
* @member {string} [capacity.scaleType] The scale type applicable to the sku.
* Possible values include: 'automatic', 'manual', 'none'
*/
export interface ResourceSkuResult {
readonly resourceType?: string;
readonly sku?: ResourceSku;
readonly capacity?: ResourceSkuCapacity;
}

/**
* @class
* Initializes a new instance of the CertificateInformation class.
Expand Down Expand Up @@ -1888,7 +1943,7 @@ export interface CertificateInformation {
* @member {string} [encodedCertificate] Base64 Encoded certificate.
* @member {string} [certificatePassword] Certificate Password.
* @member {string} storeName The
* System.Security.Cryptography.x509certificates.Storename certificate store
* System.Security.Cryptography.x509certificates.StoreName certificate store
* location. Only Root and CertificateAuthority are valid locations. Possible
* values include: 'CertificateAuthority', 'Root'
* @member {object} [certificate] Certificate information.
Expand Down Expand Up @@ -2103,10 +2158,10 @@ export interface ApiManagementServiceBackupRestoreParameters {
* @member {array} [certificates] List of Certificates that need to be
* installed in the API Management service. Max supported certificates that can
* be installed is 10.
* @member {string} [virtualNetworkType] The type of VPN in which API Managemet
* service needs to be configured in. None (Default Value) means the API
* Management service is not part of any Virtual Network, External means the
* API Management deployment is set up inside a Virtual Network having an
* @member {string} [virtualNetworkType] The type of VPN in which API
* Management service needs to be configured in. None (Default Value) means the
* API Management service is not part of any Virtual Network, External means
* the API Management deployment is set up inside a Virtual Network having an
* Internet Facing Endpoint, and Internal means that API Management deployment
* is setup inside a Virtual Network having an Intranet Facing Endpoint only.
* Possible values include: 'None', 'External', 'Internal'. Default value:
Expand Down Expand Up @@ -2222,10 +2277,10 @@ export interface ApimResource extends BaseResource {
* @member {array} [certificates] List of Certificates that need to be
* installed in the API Management service. Max supported certificates that can
* be installed is 10.
* @member {string} [virtualNetworkType] The type of VPN in which API Managemet
* service needs to be configured in. None (Default Value) means the API
* Management service is not part of any Virtual Network, External means the
* API Management deployment is set up inside a Virtual Network having an
* @member {string} [virtualNetworkType] The type of VPN in which API
* Management service needs to be configured in. None (Default Value) means the
* API Management service is not part of any Virtual Network, External means
* the API Management deployment is set up inside a Virtual Network having an
* Internet Facing Endpoint, and Internal means that API Management deployment
* is setup inside a Virtual Network having an Intranet Facing Endpoint only.
* Possible values include: 'None', 'External', 'Internal'. Default value:
Expand Down Expand Up @@ -2327,10 +2382,10 @@ export interface ApiManagementServiceResource extends ApimResource {
* @member {array} [certificates] List of Certificates that need to be
* installed in the API Management service. Max supported certificates that can
* be installed is 10.
* @member {string} [virtualNetworkType] The type of VPN in which API Managemet
* service needs to be configured in. None (Default Value) means the API
* Management service is not part of any Virtual Network, External means the
* API Management deployment is set up inside a Virtual Network having an
* @member {string} [virtualNetworkType] The type of VPN in which API
* Management service needs to be configured in. None (Default Value) means the
* API Management service is not part of any Virtual Network, External means
* the API Management deployment is set up inside a Virtual Network having an
* Internet Facing Endpoint, and Internal means that API Management deployment
* is setup inside a Virtual Network having an Intranet Facing Endpoint only.
* Possible values include: 'None', 'External', 'Internal'. Default value:
Expand Down Expand Up @@ -3423,7 +3478,7 @@ export interface QuotaCounterValueContract {
* @member {date} [timestamp] Start of aggregation period. The date conforms to
* the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601
* standard.
* @member {string} [interval] Length of agregation period. Interval must be
* @member {string} [interval] Length of aggregation period. Interval must be
* multiple of 15 minutes and may not be zero. The value should be in ISO 8601
* format (http://en.wikipedia.org/wiki/ISO_8601#Durations).
* @member {string} [country] Country to which this record data is related.
Expand All @@ -3438,11 +3493,11 @@ export interface QuotaCounterValueContract {
* @member {string} [apiRegion] API region identifier.
* @member {string} [subscriptionId] Subscription identifier path.
* /subscriptions/{subscriptionId}
* @member {number} [callCountSuccess] Number of succesful calls. This includes
* calls returning HttpStatusCode <= 301 and HttpStatusCode.NotModified and
* HttpStatusCode.TemporaryRedirect
* @member {number} [callCountSuccess] Number of successful calls. This
* includes calls returning HttpStatusCode <= 301 and
* HttpStatusCode.NotModified and HttpStatusCode.TemporaryRedirect
* @member {number} [callCountBlocked] Number of calls blocked due to invalid
* credentials. This includes calls returning HttpStatusCode.Unauthorize and
* credentials. This includes calls returning HttpStatusCode.Unauthorized and
* HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests
* @member {number} [callCountFailed] Number of calls failed due to proxy or
* backend errors. This includes calls returning HttpStatusCode.BadRequest(400)
Expand Down Expand Up @@ -3519,7 +3574,7 @@ export interface ReportRecordContract {
* @member {string} [cache] Specifies if response cache was involved in
* generating the response. If the value is none, the cache was not used. If
* the value is hit, cached response was returned. If the value is miss, the
* cache was used but lookup resulted in a miss and request was fullfilled by
* cache was used but lookup resulted in a miss and request was fulfilled by
* the backend.
* @member {number} [apiTime] The total time it took to process this request.
* @member {number} [serviceTime] he time it took to forward this request to
Expand Down Expand Up @@ -3561,7 +3616,7 @@ export interface RequestReportRecordContract {
* @member {string} userId User (user id path) for whom subscription is being
* created in form /users/{uid}
* @member {string} productId Product (product id path) for which subscription
* is being created in form /products/{productid}
* is being created in form /products/{productId}
* @member {string} displayName Subscription name.
* @member {string} [primaryKey] Primary subscription key. If not specified
* during request key will be generated automatically.
Expand Down Expand Up @@ -4229,6 +4284,19 @@ export interface OperationListResult extends Array<Operation> {
nextLink?: string;
}

/**
* @class
* Initializes a new instance of the ResourceSkuResults class.
* @constructor
* The API Management service SKUs operation response.
*
* @member {string} [nextLink] The uri to fetch the next page of API Management
* service Skus.
*/
export interface ResourceSkuResults extends Array<ResourceSkuResult> {
nextLink?: string;
}

/**
* @class
* Initializes a new instance of the ApiManagementServiceListResult class.
Expand Down
Loading

0 comments on commit e1ac561

Please sign in to comment.