diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/CHANGELOG.md b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/CHANGELOG.md index 264655071502..d56e65f3b015 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/CHANGELOG.md +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/CHANGELOG.md @@ -1,15 +1,11 @@ # Release History + +## 5.1.0 (2022-08-04) + +**Features** -## 5.0.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface ProvisioningServiceDescription + ## 5.0.1 (2022-04-27) **Features** diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/_meta.json b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/_meta.json index c58a8e583722..306e4f09c085 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/_meta.json +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/_meta.json @@ -1,8 +1,8 @@ { - "commit": "846ef3b64b068ad7e3c02bd2f6066fba88271000", + "commit": "de0eff09ea6e57e79fc454a2e3fe13e40e592ae5", "readme": "specification/deviceprovisioningservices/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\deviceprovisioningservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220523.1", + "autorest_command": "", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.3.1", - "use": "@autorest/typescript@6.0.0-alpha.19.20220523.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.1", + "use": "@autorest/typescript@6.0.0-rc.1" } \ No newline at end of file diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/package.json b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/package.json index cb208c2e8fc5..638f990011c5 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/package.json +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for IotDpsClient.", - "version": "5.0.2", + "version": "5.1.0", "engines": { "node": ">=12.0.0" }, @@ -98,8 +98,7 @@ "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped", - "docs": "echo skipped" + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -111,4 +110,4 @@ ] }, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/review/arm-deviceprovisioningservices.api.md b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/review/arm-deviceprovisioningservices.api.md index 6b7cd036e411..65f7e6620975 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/review/arm-deviceprovisioningservices.api.md +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/review/arm-deviceprovisioningservices.api.md @@ -438,109 +438,73 @@ export type IpFilterTargetType = "all" | "serviceApi" | "deviceApi"; // @public export enum KnownAccessRightsDescription { - // (undocumented) DeviceConnect = "DeviceConnect", - // (undocumented) EnrollmentRead = "EnrollmentRead", - // (undocumented) EnrollmentWrite = "EnrollmentWrite", - // (undocumented) RegistrationStatusRead = "RegistrationStatusRead", - // (undocumented) RegistrationStatusWrite = "RegistrationStatusWrite", - // (undocumented) ServiceConfig = "ServiceConfig" } // @public export enum KnownAllocationPolicy { - // (undocumented) GeoLatency = "GeoLatency", - // (undocumented) Hashed = "Hashed", - // (undocumented) Static = "Static" } // @public export enum KnownCertificatePurpose { - // (undocumented) ClientAuthentication = "clientAuthentication", - // (undocumented) ServerAuthentication = "serverAuthentication" } // @public export enum KnownCreatedByType { - // (undocumented) Application = "Application", - // (undocumented) Key = "Key", - // (undocumented) ManagedIdentity = "ManagedIdentity", - // (undocumented) User = "User" } // @public export enum KnownIotDpsSku { - // (undocumented) S1 = "S1" } // @public export enum KnownNameUnavailabilityReason { - // (undocumented) AlreadyExists = "AlreadyExists", - // (undocumented) Invalid = "Invalid" } // @public export enum KnownPrivateLinkServiceConnectionStatus { - // (undocumented) Approved = "Approved", - // (undocumented) Disconnected = "Disconnected", - // (undocumented) Pending = "Pending", - // (undocumented) Rejected = "Rejected" } // @public export enum KnownPublicNetworkAccess { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownState { - // (undocumented) Activating = "Activating", - // (undocumented) ActivationFailed = "ActivationFailed", - // (undocumented) Active = "Active", - // (undocumented) Deleted = "Deleted", - // (undocumented) Deleting = "Deleting", - // (undocumented) DeletionFailed = "DeletionFailed", - // (undocumented) FailingOver = "FailingOver", - // (undocumented) FailoverFailed = "FailoverFailed", - // (undocumented) Resuming = "Resuming", - // (undocumented) Suspended = "Suspended", - // (undocumented) Suspending = "Suspending", - // (undocumented) Transitioning = "Transitioning" } @@ -633,12 +597,12 @@ export interface PrivateLinkServiceConnectionState { export type PrivateLinkServiceConnectionStatus = string; // @public -export type ProvisioningServiceDescription = Resource & { +export interface ProvisioningServiceDescription extends Resource { etag?: string; properties: IotDpsPropertiesDescription; sku: IotDpsSkuInfo; readonly systemData?: SystemData; -}; +} // @public export interface ProvisioningServiceDescriptionListResult { diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/iotDpsClient.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/iotDpsClient.ts index 1a305e0eba1e..34a217afdb75 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/iotDpsClient.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/iotDpsClient.ts @@ -58,7 +58,7 @@ export class IotDpsClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-deviceprovisioningservices/5.0.2`; + const packageDetails = `azsdk-js-arm-deviceprovisioningservices/5.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -127,7 +127,7 @@ export class IotDpsClient extends coreClient.ServiceClient { if (param.length > 1) { const newParams = param[1].split("&").map((item) => { if (item.indexOf("api-version") > -1) { - return item.replace(/(?<==).*$/, apiVersion); + return "api-version=" + apiVersion; } else { return item; } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/models/index.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/models/index.ts index 4dc8a1946724..551580ebd644 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/models/index.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/models/index.ts @@ -507,7 +507,7 @@ export interface CertificateBodyDescription { } /** The description of the provisioning service. */ -export type ProvisioningServiceDescription = Resource & { +export interface ProvisioningServiceDescription extends Resource { /** The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. */ etag?: string; /** Service specific properties for a provisioning service */ @@ -519,7 +519,7 @@ export type ProvisioningServiceDescription = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; -}; +} /** Defines headers for IotDpsResource_deletePrivateEndpointConnection operation. */ export interface IotDpsResourceDeletePrivateEndpointConnectionHeaders { @@ -533,9 +533,13 @@ export interface IotDpsResourceDeletePrivateEndpointConnectionHeaders { /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { + /** User */ User = "User", + /** Application */ Application = "Application", + /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", + /** Key */ Key = "Key" } @@ -553,7 +557,9 @@ export type CreatedByType = string; /** Known values of {@link CertificatePurpose} that the service accepts. */ export enum KnownCertificatePurpose { + /** ClientAuthentication */ ClientAuthentication = "clientAuthentication", + /** ServerAuthentication */ ServerAuthentication = "serverAuthentication" } @@ -569,17 +575,29 @@ export type CertificatePurpose = string; /** Known values of {@link State} that the service accepts. */ export enum KnownState { + /** Activating */ Activating = "Activating", + /** Active */ Active = "Active", + /** Deleting */ Deleting = "Deleting", + /** Deleted */ Deleted = "Deleted", + /** ActivationFailed */ ActivationFailed = "ActivationFailed", + /** DeletionFailed */ DeletionFailed = "DeletionFailed", + /** Transitioning */ Transitioning = "Transitioning", + /** Suspending */ Suspending = "Suspending", + /** Suspended */ Suspended = "Suspended", + /** Resuming */ Resuming = "Resuming", + /** FailingOver */ FailingOver = "FailingOver", + /** FailoverFailed */ FailoverFailed = "FailoverFailed" } @@ -605,7 +623,9 @@ export type State = string; /** Known values of {@link PublicNetworkAccess} that the service accepts. */ export enum KnownPublicNetworkAccess { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -621,9 +641,13 @@ export type PublicNetworkAccess = string; /** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */ export enum KnownPrivateLinkServiceConnectionStatus { + /** Pending */ Pending = "Pending", + /** Approved */ Approved = "Approved", + /** Rejected */ Rejected = "Rejected", + /** Disconnected */ Disconnected = "Disconnected" } @@ -641,8 +665,11 @@ export type PrivateLinkServiceConnectionStatus = string; /** Known values of {@link AllocationPolicy} that the service accepts. */ export enum KnownAllocationPolicy { + /** Hashed */ Hashed = "Hashed", + /** GeoLatency */ GeoLatency = "GeoLatency", + /** Static */ Static = "Static" } @@ -659,11 +686,17 @@ export type AllocationPolicy = string; /** Known values of {@link AccessRightsDescription} that the service accepts. */ export enum KnownAccessRightsDescription { + /** ServiceConfig */ ServiceConfig = "ServiceConfig", + /** EnrollmentRead */ EnrollmentRead = "EnrollmentRead", + /** EnrollmentWrite */ EnrollmentWrite = "EnrollmentWrite", + /** DeviceConnect */ DeviceConnect = "DeviceConnect", + /** RegistrationStatusRead */ RegistrationStatusRead = "RegistrationStatusRead", + /** RegistrationStatusWrite */ RegistrationStatusWrite = "RegistrationStatusWrite" } @@ -683,6 +716,7 @@ export type AccessRightsDescription = string; /** Known values of {@link IotDpsSku} that the service accepts. */ export enum KnownIotDpsSku { + /** S1 */ S1 = "S1" } @@ -697,7 +731,9 @@ export type IotDpsSku = string; /** Known values of {@link NameUnavailabilityReason} that the service accepts. */ export enum KnownNameUnavailabilityReason { + /** Invalid */ Invalid = "Invalid", + /** AlreadyExists */ AlreadyExists = "AlreadyExists" }