@azure/arm-deviceprovisioningservices 5.1.1-alpha.20230616.1 → 6.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/CHANGELOG.md +16 -8
  2. package/README.md +1 -1
  3. package/dist/index.js +182 -72
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/dpsCertificateCreateOrUpdateSample.js +2 -4
  8. package/dist-esm/samples-dev/dpsCertificateCreateOrUpdateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/dpsCertificateDeleteSample.js +1 -1
  10. package/dist-esm/samples-dev/dpsCertificateGenerateVerificationCodeSample.js +1 -1
  11. package/dist-esm/samples-dev/dpsCertificateGetSample.js +1 -1
  12. package/dist-esm/samples-dev/dpsCertificateListSample.js +1 -1
  13. package/dist-esm/samples-dev/dpsCertificateVerifyCertificateSample.js +1 -1
  14. package/dist-esm/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.js +1 -1
  15. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.js +1 -1
  16. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdateSample.js +33 -1
  17. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdateSample.js.map +1 -1
  18. package/dist-esm/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.js +1 -1
  19. package/dist-esm/samples-dev/iotDpsResourceDeleteSample.js +3 -3
  20. package/dist-esm/samples-dev/iotDpsResourceDeleteSample.js.map +1 -1
  21. package/dist-esm/samples-dev/iotDpsResourceGetOperationResultSample.js +1 -1
  22. package/dist-esm/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.js +1 -1
  23. package/dist-esm/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.js +1 -1
  24. package/dist-esm/samples-dev/iotDpsResourceGetSample.js +3 -3
  25. package/dist-esm/samples-dev/iotDpsResourceGetSample.js.map +1 -1
  26. package/dist-esm/samples-dev/iotDpsResourceListByResourceGroupSample.js +1 -1
  27. package/dist-esm/samples-dev/iotDpsResourceListBySubscriptionSample.js +1 -1
  28. package/dist-esm/samples-dev/iotDpsResourceListKeysForKeyNameSample.js +1 -1
  29. package/dist-esm/samples-dev/iotDpsResourceListKeysSample.js +1 -1
  30. package/dist-esm/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.js +1 -1
  31. package/dist-esm/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.js +1 -1
  32. package/dist-esm/samples-dev/iotDpsResourceListValidSkusSample.js +1 -1
  33. package/dist-esm/samples-dev/iotDpsResourceUpdateSample.js +1 -1
  34. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  35. package/dist-esm/src/iotDpsClient.js +2 -2
  36. package/dist-esm/src/iotDpsClient.js.map +1 -1
  37. package/dist-esm/src/lroImpl.d.ts +6 -11
  38. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  39. package/dist-esm/src/lroImpl.js +12 -20
  40. package/dist-esm/src/lroImpl.js.map +1 -1
  41. package/dist-esm/src/models/index.d.ts +63 -1
  42. package/dist-esm/src/models/index.d.ts.map +1 -1
  43. package/dist-esm/src/models/index.js +12 -0
  44. package/dist-esm/src/models/index.js.map +1 -1
  45. package/dist-esm/src/models/mappers.d.ts +2 -0
  46. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  47. package/dist-esm/src/models/mappers.js +85 -1
  48. package/dist-esm/src/models/mappers.js.map +1 -1
  49. package/dist-esm/src/models/parameters.js +1 -1
  50. package/dist-esm/src/models/parameters.js.map +1 -1
  51. package/dist-esm/src/operations/iotDpsResource.d.ts +11 -11
  52. package/dist-esm/src/operations/iotDpsResource.d.ts.map +1 -1
  53. package/dist-esm/src/operations/iotDpsResource.js +71 -51
  54. package/dist-esm/src/operations/iotDpsResource.js.map +1 -1
  55. package/dist-esm/src/operationsInterfaces/iotDpsResource.d.ts +11 -11
  56. package/dist-esm/src/operationsInterfaces/iotDpsResource.d.ts.map +1 -1
  57. package/dist-esm/test/deviceprovisioningservices_operations_test.spec.d.ts +4 -0
  58. package/dist-esm/test/deviceprovisioningservices_operations_test.spec.d.ts.map +1 -0
  59. package/dist-esm/test/deviceprovisioningservices_operations_test.spec.js +123 -0
  60. package/dist-esm/test/deviceprovisioningservices_operations_test.spec.js.map +1 -0
  61. package/package.json +6 -6
  62. package/review/arm-deviceprovisioningservices.api.md +41 -10
  63. package/src/iotDpsClient.ts +2 -2
  64. package/src/lroImpl.ts +31 -23
  65. package/src/models/index.ts +67 -1
  66. package/src/models/mappers.ts +88 -1
  67. package/src/models/parameters.ts +1 -1
  68. package/src/operations/iotDpsResource.ts +77 -59
  69. package/src/operationsInterfaces/iotDpsResource.ts +16 -16
  70. package/types/arm-deviceprovisioningservices.d.ts +79 -13
  71. package/types/tsdoc-metadata.json +1 -1
  72. package/dist-esm/test/sampleTest.d.ts +0 -2
  73. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  74. package/dist-esm/test/sampleTest.js +0 -38
  75. package/dist-esm/test/sampleTest.js.map +0 -1
package/package.json CHANGED
@@ -3,15 +3,15 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for IotDpsClient.",
6
- "version": "5.1.1-alpha.20230616.1",
6
+ "version": "6.0.0-beta.1",
7
7
  "engines": {
8
8
  "node": ">=14.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "@azure/core-lro": "^2.2.0",
11
+ "@azure/core-lro": "^2.5.3",
12
12
  "@azure/abort-controller": "^1.0.0",
13
13
  "@azure/core-paging": "^1.2.0",
14
- "@azure/core-client": "^1.6.1",
14
+ "@azure/core-client": "^1.7.0",
15
15
  "@azure/core-auth": "^1.3.0",
16
16
  "@azure/core-rest-pipeline": "^1.8.0",
17
17
  "tslib": "^2.2.0"
@@ -33,7 +33,7 @@
33
33
  "@rollup/plugin-json": "^6.0.0",
34
34
  "@rollup/plugin-multi-entry": "^6.0.0",
35
35
  "@rollup/plugin-node-resolve": "^13.1.3",
36
- "mkdirp": "^1.0.4",
36
+ "mkdirp": "^2.1.2",
37
37
  "rollup": "^2.66.1",
38
38
  "rollup-plugin-sourcemaps": "^0.6.3",
39
39
  "typescript": "~5.0.0",
@@ -48,7 +48,7 @@
48
48
  "chai": "^4.2.0",
49
49
  "cross-env": "^7.0.2",
50
50
  "@types/node": "^14.0.0",
51
- "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb"
51
+ "@azure/dev-tool": "^1.0.0"
52
52
  },
53
53
  "repository": {
54
54
  "type": "git",
@@ -120,4 +120,4 @@
120
120
  "disableDocsMs": true,
121
121
  "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-deviceprovisioningservices?view=azure-node-preview"
122
122
  }
123
- }
123
+ }
@@ -6,9 +6,9 @@
6
6
 
7
7
  import * as coreAuth from '@azure/core-auth';
8
8
  import * as coreClient from '@azure/core-client';
9
+ import { OperationState } from '@azure/core-lro';
9
10
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
- import { PollerLike } from '@azure/core-lro';
11
- import { PollOperationState } from '@azure/core-lro';
11
+ import { SimplePollerLike } from '@azure/core-lro';
12
12
 
13
13
  // @public
14
14
  export type AccessRightsDescription = string;
@@ -137,7 +137,7 @@ export type DpsCertificateVerifyCertificateResponse = CertificateResponse;
137
137
 
138
138
  // @public
139
139
  export interface ErrorDetails {
140
- readonly code?: string;
140
+ readonly code?: number;
141
141
  readonly details?: string;
142
142
  readonly httpStatusCode?: string;
143
143
  readonly message?: string;
@@ -201,6 +201,7 @@ export interface IotDpsPropertiesDescription {
201
201
  readonly idScope?: string;
202
202
  iotHubs?: IotHubDefinitionDescription[];
203
203
  ipFilterRules?: IpFilterRule[];
204
+ portalOperationsHostName?: string;
204
205
  privateEndpointConnections?: PrivateEndpointConnection[];
205
206
  provisioningState?: string;
206
207
  publicNetworkAccess?: PublicNetworkAccess;
@@ -210,18 +211,18 @@ export interface IotDpsPropertiesDescription {
210
211
 
211
212
  // @public
212
213
  export interface IotDpsResource {
213
- beginCreateOrUpdate(resourceGroupName: string, provisioningServiceName: string, iotDpsDescription: ProvisioningServiceDescription, options?: IotDpsResourceCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<IotDpsResourceCreateOrUpdateResponse>, IotDpsResourceCreateOrUpdateResponse>>;
214
+ beginCreateOrUpdate(resourceGroupName: string, provisioningServiceName: string, iotDpsDescription: ProvisioningServiceDescription, options?: IotDpsResourceCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceCreateOrUpdateResponse>, IotDpsResourceCreateOrUpdateResponse>>;
214
215
  beginCreateOrUpdateAndWait(resourceGroupName: string, provisioningServiceName: string, iotDpsDescription: ProvisioningServiceDescription, options?: IotDpsResourceCreateOrUpdateOptionalParams): Promise<IotDpsResourceCreateOrUpdateResponse>;
215
- beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams): Promise<PollerLike<PollOperationState<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>, IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>>;
216
+ beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>, IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>>;
216
217
  beginCreateOrUpdatePrivateEndpointConnectionAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams): Promise<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>;
217
- beginDelete(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
218
- beginDeleteAndWait(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<void>;
219
- beginDeletePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams): Promise<PollerLike<PollOperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>, IotDpsResourceDeletePrivateEndpointConnectionResponse>>;
218
+ beginDelete(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
219
+ beginDeleteAndWait(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<void>;
220
+ beginDeletePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>, IotDpsResourceDeletePrivateEndpointConnectionResponse>>;
220
221
  beginDeletePrivateEndpointConnectionAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams): Promise<IotDpsResourceDeletePrivateEndpointConnectionResponse>;
221
- beginUpdate(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<PollerLike<PollOperationState<IotDpsResourceUpdateResponse>, IotDpsResourceUpdateResponse>>;
222
+ beginUpdate(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceUpdateResponse>, IotDpsResourceUpdateResponse>>;
222
223
  beginUpdateAndWait(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<IotDpsResourceUpdateResponse>;
223
224
  checkProvisioningServiceNameAvailability(argumentsParam: OperationInputs, options?: IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams): Promise<IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse>;
224
- get(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceGetOptionalParams): Promise<IotDpsResourceGetResponse>;
225
+ get(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceGetOptionalParams): Promise<IotDpsResourceGetResponse>;
225
226
  getOperationResult(operationId: string, resourceGroupName: string, provisioningServiceName: string, asyncinfo: string, options?: IotDpsResourceGetOperationResultOptionalParams): Promise<IotDpsResourceGetOperationResultResponse>;
226
227
  getPrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceGetPrivateEndpointConnectionOptionalParams): Promise<IotDpsResourceGetPrivateEndpointConnectionResponse>;
227
228
  getPrivateLinkResources(resourceGroupName: string, resourceName: string, groupId: string, options?: IotDpsResourceGetPrivateLinkResourcesOptionalParams): Promise<IotDpsResourceGetPrivateLinkResourcesResponse>;
@@ -475,6 +476,14 @@ export enum KnownIotDpsSku {
475
476
  S1 = "S1"
476
477
  }
477
478
 
479
+ // @public
480
+ export enum KnownManagedServiceIdentityType {
481
+ None = "None",
482
+ SystemAssigned = "SystemAssigned",
483
+ SystemAssignedUserAssigned = "SystemAssigned,UserAssigned",
484
+ UserAssigned = "UserAssigned"
485
+ }
486
+
478
487
  // @public
479
488
  export enum KnownNameUnavailabilityReason {
480
489
  AlreadyExists = "AlreadyExists",
@@ -511,6 +520,19 @@ export enum KnownState {
511
520
  Transitioning = "Transitioning"
512
521
  }
513
522
 
523
+ // @public
524
+ export interface ManagedServiceIdentity {
525
+ readonly principalId?: string;
526
+ readonly tenantId?: string;
527
+ type: ManagedServiceIdentityType;
528
+ userAssignedIdentities?: {
529
+ [propertyName: string]: UserAssignedIdentity | null;
530
+ };
531
+ }
532
+
533
+ // @public
534
+ export type ManagedServiceIdentityType = string;
535
+
514
536
  // @public
515
537
  export interface NameAvailabilityInfo {
516
538
  message?: string;
@@ -602,6 +624,7 @@ export type PrivateLinkServiceConnectionStatus = string;
602
624
  // @public
603
625
  export interface ProvisioningServiceDescription extends Resource {
604
626
  etag?: string;
627
+ identity?: ManagedServiceIdentity;
605
628
  properties: IotDpsPropertiesDescription;
606
629
  sku: IotDpsSkuInfo;
607
630
  readonly systemData?: SystemData;
@@ -621,6 +644,8 @@ export interface Resource {
621
644
  readonly id?: string;
622
645
  location: string;
623
646
  readonly name?: string;
647
+ resourcegroup?: string;
648
+ subscriptionid?: string;
624
649
  tags?: {
625
650
  [propertyName: string]: string;
626
651
  };
@@ -661,6 +686,12 @@ export interface TagsResource {
661
686
  };
662
687
  }
663
688
 
689
+ // @public
690
+ export interface UserAssignedIdentity {
691
+ readonly clientId?: string;
692
+ readonly principalId?: string;
693
+ }
694
+
664
695
  // @public
665
696
  export interface VerificationCodeRequest {
666
697
  certificate?: string;
@@ -58,7 +58,7 @@ export class IotDpsClient extends coreClient.ServiceClient {
58
58
  credential: credentials
59
59
  };
60
60
 
61
- const packageDetails = `azsdk-js-arm-deviceprovisioningservices/5.1.1`;
61
+ const packageDetails = `azsdk-js-arm-deviceprovisioningservices/6.0.0-beta.1`;
62
62
  const userAgentPrefix =
63
63
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
64
64
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -111,7 +111,7 @@ export class IotDpsClient extends coreClient.ServiceClient {
111
111
 
112
112
  // Assigning values to Constant parameters
113
113
  this.$host = options.$host || "https://management.azure.com";
114
- this.apiVersion = options.apiVersion || "2022-02-05";
114
+ this.apiVersion = options.apiVersion || "2023-03-01-preview";
115
115
  this.operations = new OperationsImpl(this);
116
116
  this.dpsCertificate = new DpsCertificateImpl(this);
117
117
  this.iotDpsResource = new IotDpsResourceImpl(this);
package/src/lroImpl.ts CHANGED
@@ -6,29 +6,37 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT license.
11
+
12
+ import { AbortSignalLike } from "@azure/abort-controller";
9
13
  import { LongRunningOperation, LroResponse } from "@azure/core-lro";
10
14
 
11
- export class LroImpl<T> implements LongRunningOperation<T> {
12
- constructor(
13
- private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,
14
- private args: Record<string, unknown>,
15
- private spec: {
16
- readonly requestBody?: unknown;
17
- readonly path?: string;
18
- readonly httpMethod: string;
19
- } & Record<string, any>,
20
- public requestPath: string = spec.path!,
21
- public requestMethod: string = spec.httpMethod
22
- ) {}
23
- public async sendInitialRequest(): Promise<LroResponse<T>> {
24
- return this.sendOperationFn(this.args, this.spec);
25
- }
26
- public async sendPollRequest(path: string): Promise<LroResponse<T>> {
27
- const { requestBody, ...restSpec } = this.spec;
28
- return this.sendOperationFn(this.args, {
29
- ...restSpec,
30
- path,
31
- httpMethod: "GET"
32
- });
33
- }
15
+ export function createLroSpec<T>(inputs: {
16
+ sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
17
+ args: Record<string, unknown>;
18
+ spec: {
19
+ readonly requestBody?: unknown;
20
+ readonly path?: string;
21
+ readonly httpMethod: string;
22
+ } & Record<string, any>;
23
+ }): LongRunningOperation<T> {
24
+ const { args, spec, sendOperationFn } = inputs;
25
+ return {
26
+ requestMethod: spec.httpMethod,
27
+ requestPath: spec.path!,
28
+ sendInitialRequest: () => sendOperationFn(args, spec),
29
+ sendPollRequest: (
30
+ path: string,
31
+ options?: { abortSignal?: AbortSignalLike }
32
+ ) => {
33
+ const { requestBody, ...restSpec } = spec;
34
+ return sendOperationFn(args, {
35
+ ...restSpec,
36
+ httpMethod: "GET",
37
+ path,
38
+ abortSignal: options?.abortSignal
39
+ });
40
+ }
41
+ };
34
42
  }
@@ -58,7 +58,7 @@ export interface ErrorDetails {
58
58
  * The error code.
59
59
  * NOTE: This property will not be serialized. It can only be populated by the server.
60
60
  */
61
- readonly code?: string;
61
+ readonly code?: number;
62
62
  /**
63
63
  * The HTTP status code.
64
64
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -194,6 +194,8 @@ export interface IotDpsPropertiesDescription {
194
194
  * Indicates if the DPS instance has Data Residency enabled, removing the cross geo-pair disaster recovery.
195
195
  */
196
196
  enableDataResidency?: boolean;
197
+ /** Portal endpoint to enable CORS for this provisioning service. */
198
+ portalOperationsHostName?: string;
197
199
  }
198
200
 
199
201
  /** The IP filter rules for a provisioning Service. */
@@ -303,6 +305,40 @@ export interface IotDpsSkuInfo {
303
305
  capacity?: number;
304
306
  }
305
307
 
308
+ /** Managed service identity (system assigned and/or user assigned identities) */
309
+ export interface ManagedServiceIdentity {
310
+ /**
311
+ * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
312
+ * NOTE: This property will not be serialized. It can only be populated by the server.
313
+ */
314
+ readonly principalId?: string;
315
+ /**
316
+ * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
317
+ * NOTE: This property will not be serialized. It can only be populated by the server.
318
+ */
319
+ readonly tenantId?: string;
320
+ /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */
321
+ type: ManagedServiceIdentityType;
322
+ /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */
323
+ userAssignedIdentities?: {
324
+ [propertyName: string]: UserAssignedIdentity | null;
325
+ };
326
+ }
327
+
328
+ /** User assigned identity properties */
329
+ export interface UserAssignedIdentity {
330
+ /**
331
+ * The principal ID of the assigned identity.
332
+ * NOTE: This property will not be serialized. It can only be populated by the server.
333
+ */
334
+ readonly principalId?: string;
335
+ /**
336
+ * The client ID of the assigned identity.
337
+ * NOTE: This property will not be serialized. It can only be populated by the server.
338
+ */
339
+ readonly clientId?: string;
340
+ }
341
+
306
342
  /** The common properties of an Azure resource. */
307
343
  export interface Resource {
308
344
  /**
@@ -322,6 +358,10 @@ export interface Resource {
322
358
  readonly type?: string;
323
359
  /** The resource location. */
324
360
  location: string;
361
+ /** The resource group of the resource. */
362
+ resourcegroup?: string;
363
+ /** The subscription id of the resource. */
364
+ subscriptionid?: string;
325
365
  /** The resource tags. */
326
366
  tags?: { [propertyName: string]: string };
327
367
  }
@@ -519,6 +559,8 @@ export interface ProvisioningServiceDescription extends Resource {
519
559
  * NOTE: This property will not be serialized. It can only be populated by the server.
520
560
  */
521
561
  readonly systemData?: SystemData;
562
+ /** The managed identities for a provisioning service. */
563
+ identity?: ManagedServiceIdentity;
522
564
  }
523
565
 
524
566
  /** Defines headers for IotDpsResource_deletePrivateEndpointConnection operation. */
@@ -729,6 +771,30 @@ export enum KnownIotDpsSku {
729
771
  */
730
772
  export type IotDpsSku = string;
731
773
 
774
+ /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
775
+ export enum KnownManagedServiceIdentityType {
776
+ /** None */
777
+ None = "None",
778
+ /** SystemAssigned */
779
+ SystemAssigned = "SystemAssigned",
780
+ /** UserAssigned */
781
+ UserAssigned = "UserAssigned",
782
+ /** SystemAssignedUserAssigned */
783
+ SystemAssignedUserAssigned = "SystemAssigned,UserAssigned"
784
+ }
785
+
786
+ /**
787
+ * Defines values for ManagedServiceIdentityType. \
788
+ * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,
789
+ * this enum contains the known values that the service supports.
790
+ * ### Known values supported by the service
791
+ * **None** \
792
+ * **SystemAssigned** \
793
+ * **UserAssigned** \
794
+ * **SystemAssigned,UserAssigned**
795
+ */
796
+ export type ManagedServiceIdentityType = string;
797
+
732
798
  /** Known values of {@link NameUnavailabilityReason} that the service accepts. */
733
799
  export enum KnownNameUnavailabilityReason {
734
800
  /** Invalid */
@@ -99,7 +99,7 @@ export const ErrorDetails: coreClient.CompositeMapper = {
99
99
  serializedName: "code",
100
100
  readOnly: true,
101
101
  type: {
102
- name: "String"
102
+ name: "Number"
103
103
  }
104
104
  },
105
105
  httpStatusCode: {
@@ -383,6 +383,12 @@ export const IotDpsPropertiesDescription: coreClient.CompositeMapper = {
383
383
  type: {
384
384
  name: "Boolean"
385
385
  }
386
+ },
387
+ portalOperationsHostName: {
388
+ serializedName: "portalOperationsHostName",
389
+ type: {
390
+ name: "String"
391
+ }
386
392
  }
387
393
  }
388
394
  }
@@ -646,6 +652,68 @@ export const IotDpsSkuInfo: coreClient.CompositeMapper = {
646
652
  }
647
653
  };
648
654
 
655
+ export const ManagedServiceIdentity: coreClient.CompositeMapper = {
656
+ type: {
657
+ name: "Composite",
658
+ className: "ManagedServiceIdentity",
659
+ modelProperties: {
660
+ principalId: {
661
+ serializedName: "principalId",
662
+ readOnly: true,
663
+ type: {
664
+ name: "Uuid"
665
+ }
666
+ },
667
+ tenantId: {
668
+ serializedName: "tenantId",
669
+ readOnly: true,
670
+ type: {
671
+ name: "Uuid"
672
+ }
673
+ },
674
+ type: {
675
+ serializedName: "type",
676
+ required: true,
677
+ type: {
678
+ name: "String"
679
+ }
680
+ },
681
+ userAssignedIdentities: {
682
+ serializedName: "userAssignedIdentities",
683
+ type: {
684
+ name: "Dictionary",
685
+ value: {
686
+ type: { name: "Composite", className: "UserAssignedIdentity" }
687
+ }
688
+ }
689
+ }
690
+ }
691
+ }
692
+ };
693
+
694
+ export const UserAssignedIdentity: coreClient.CompositeMapper = {
695
+ type: {
696
+ name: "Composite",
697
+ className: "UserAssignedIdentity",
698
+ modelProperties: {
699
+ principalId: {
700
+ serializedName: "principalId",
701
+ readOnly: true,
702
+ type: {
703
+ name: "Uuid"
704
+ }
705
+ },
706
+ clientId: {
707
+ serializedName: "clientId",
708
+ readOnly: true,
709
+ type: {
710
+ name: "Uuid"
711
+ }
712
+ }
713
+ }
714
+ }
715
+ };
716
+
649
717
  export const Resource: coreClient.CompositeMapper = {
650
718
  type: {
651
719
  name: "Composite",
@@ -682,6 +750,18 @@ export const Resource: coreClient.CompositeMapper = {
682
750
  name: "String"
683
751
  }
684
752
  },
753
+ resourcegroup: {
754
+ serializedName: "resourcegroup",
755
+ type: {
756
+ name: "String"
757
+ }
758
+ },
759
+ subscriptionid: {
760
+ serializedName: "subscriptionid",
761
+ type: {
762
+ name: "String"
763
+ }
764
+ },
685
765
  tags: {
686
766
  serializedName: "tags",
687
767
  type: {
@@ -1189,6 +1269,13 @@ export const ProvisioningServiceDescription: coreClient.CompositeMapper = {
1189
1269
  name: "Composite",
1190
1270
  className: "SystemData"
1191
1271
  }
1272
+ },
1273
+ identity: {
1274
+ serializedName: "identity",
1275
+ type: {
1276
+ name: "Composite",
1277
+ className: "ManagedServiceIdentity"
1278
+ }
1192
1279
  }
1193
1280
  }
1194
1281
  }
@@ -47,7 +47,7 @@ export const $host: OperationURLParameter = {
47
47
  export const apiVersion: OperationQueryParameter = {
48
48
  parameterPath: "apiVersion",
49
49
  mapper: {
50
- defaultValue: "2022-02-05",
50
+ defaultValue: "2023-03-01-preview",
51
51
  isConstant: true,
52
52
  serializedName: "api-version",
53
53
  type: {