@azure/arm-deviceupdate 1.0.0-alpha.20220601.1 → 1.0.0-beta.2

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.
@@ -11,15 +11,15 @@ import { PollerLike } from '@azure/core-lro';
11
11
  import { PollOperationState } from '@azure/core-lro';
12
12
 
13
13
  // @public
14
- export type Account = TrackedResource & {
14
+ export interface Account extends TrackedResource {
15
+ readonly hostName?: string;
15
16
  identity?: ManagedServiceIdentity;
17
+ readonly locations?: Location_2[];
18
+ privateEndpointConnections?: PrivateEndpointConnection[];
16
19
  readonly provisioningState?: ProvisioningState;
17
- readonly hostName?: string;
18
20
  publicNetworkAccess?: PublicNetworkAccess;
19
- privateEndpointConnections?: PrivateEndpointConnection[];
20
21
  sku?: Sku;
21
- readonly locations?: Location_2[];
22
- };
22
+ }
23
23
 
24
24
  // @public
25
25
  export interface AccountList {
@@ -110,10 +110,10 @@ export interface AccountsUpdateOptionalParams extends coreClient.OperationOption
110
110
  export type AccountsUpdateResponse = Account;
111
111
 
112
112
  // @public
113
- export type AccountUpdate = TagUpdate & {
113
+ export interface AccountUpdate extends TagUpdate {
114
114
  identity?: ManagedServiceIdentity;
115
115
  location?: string;
116
- };
116
+ }
117
117
 
118
118
  // @public
119
119
  export type ActionType = string;
@@ -228,26 +228,26 @@ export interface GroupConnectivityInformation {
228
228
  export type GroupIdProvisioningState = string;
229
229
 
230
230
  // @public
231
- export type GroupInformation = ProxyResource & {
231
+ export interface GroupInformation extends ProxyResource {
232
232
  readonly groupId?: string;
233
+ readonly provisioningState?: GroupIdProvisioningState;
233
234
  readonly requiredMembers?: string[];
234
235
  requiredZoneNames?: string[];
235
- readonly provisioningState?: GroupIdProvisioningState;
236
- };
236
+ }
237
237
 
238
238
  // @public
239
- export type GroupInformationProperties = PrivateLinkResourceProperties & {
239
+ export interface GroupInformationProperties extends PrivateLinkResourceProperties {
240
240
  readonly provisioningState?: GroupIdProvisioningState;
241
- };
241
+ }
242
242
 
243
243
  // @public
244
- export type Instance = TrackedResource & {
245
- readonly provisioningState?: ProvisioningState;
244
+ export interface Instance extends TrackedResource {
246
245
  readonly accountName?: string;
247
- iotHubs?: IotHubSettings[];
248
- enableDiagnostics?: boolean;
249
246
  diagnosticStorageProperties?: DiagnosticStorageProperties;
250
- };
247
+ enableDiagnostics?: boolean;
248
+ iotHubs?: IotHubSettings[];
249
+ readonly provisioningState?: ProvisioningState;
250
+ }
251
251
 
252
252
  // @public
253
253
  export interface InstanceList {
@@ -326,139 +326,98 @@ export interface IotHubSettings {
326
326
 
327
327
  // @public
328
328
  export enum KnownActionType {
329
- // (undocumented)
330
329
  Internal = "Internal"
331
330
  }
332
331
 
333
332
  // @public
334
333
  export enum KnownAuthenticationType {
335
- // (undocumented)
336
334
  KeyBased = "KeyBased"
337
335
  }
338
336
 
339
337
  // @public
340
338
  export enum KnownCheckNameAvailabilityReason {
341
- // (undocumented)
342
339
  AlreadyExists = "AlreadyExists",
343
- // (undocumented)
344
340
  Invalid = "Invalid"
345
341
  }
346
342
 
347
343
  // @public
348
344
  export enum KnownCreatedByType {
349
- // (undocumented)
350
345
  Application = "Application",
351
- // (undocumented)
352
346
  Key = "Key",
353
- // (undocumented)
354
347
  ManagedIdentity = "ManagedIdentity",
355
- // (undocumented)
356
348
  User = "User"
357
349
  }
358
350
 
359
351
  // @public
360
352
  export enum KnownGroupIdProvisioningState {
361
- // (undocumented)
362
353
  Canceled = "Canceled",
363
- // (undocumented)
364
354
  Failed = "Failed",
365
- // (undocumented)
366
355
  Succeeded = "Succeeded"
367
356
  }
368
357
 
369
358
  // @public
370
359
  export enum KnownManagedServiceIdentityType {
371
- // (undocumented)
372
360
  None = "None",
373
- // (undocumented)
374
361
  SystemAssigned = "SystemAssigned",
375
- // (undocumented)
376
362
  SystemAssignedUserAssigned = "SystemAssigned,UserAssigned",
377
- // (undocumented)
378
363
  UserAssigned = "UserAssigned"
379
364
  }
380
365
 
381
366
  // @public
382
367
  export enum KnownOrigin {
383
- // (undocumented)
384
368
  System = "system",
385
- // (undocumented)
386
369
  User = "user",
387
- // (undocumented)
388
370
  UserSystem = "user,system"
389
371
  }
390
372
 
391
373
  // @public
392
374
  export enum KnownPrivateEndpointConnectionProvisioningState {
393
- // (undocumented)
394
375
  Creating = "Creating",
395
- // (undocumented)
396
376
  Deleting = "Deleting",
397
- // (undocumented)
398
377
  Failed = "Failed",
399
- // (undocumented)
400
378
  Succeeded = "Succeeded"
401
379
  }
402
380
 
403
381
  // @public
404
382
  export enum KnownPrivateEndpointConnectionProxyProvisioningState {
405
- // (undocumented)
406
383
  Creating = "Creating",
407
- // (undocumented)
408
384
  Deleting = "Deleting",
409
- // (undocumented)
410
385
  Failed = "Failed",
411
- // (undocumented)
412
386
  Succeeded = "Succeeded"
413
387
  }
414
388
 
415
389
  // @public
416
390
  export enum KnownPrivateEndpointServiceConnectionStatus {
417
- // (undocumented)
418
391
  Approved = "Approved",
419
- // (undocumented)
420
392
  Pending = "Pending",
421
- // (undocumented)
422
393
  Rejected = "Rejected"
423
394
  }
424
395
 
425
396
  // @public
426
397
  export enum KnownProvisioningState {
427
- // (undocumented)
428
398
  Accepted = "Accepted",
429
- // (undocumented)
430
399
  Canceled = "Canceled",
431
- // (undocumented)
432
400
  Creating = "Creating",
433
- // (undocumented)
434
401
  Deleted = "Deleted",
435
- // (undocumented)
436
402
  Failed = "Failed",
437
- // (undocumented)
438
403
  Succeeded = "Succeeded"
439
404
  }
440
405
 
441
406
  // @public
442
407
  export enum KnownPublicNetworkAccess {
443
- // (undocumented)
444
408
  Disabled = "Disabled",
445
- // (undocumented)
446
409
  Enabled = "Enabled"
447
410
  }
448
411
 
449
412
  // @public
450
413
  export enum KnownRole {
451
- // (undocumented)
452
414
  Failover = "Failover",
453
- // (undocumented)
454
415
  Primary = "Primary"
455
416
  }
456
417
 
457
418
  // @public
458
419
  export enum KnownSku {
459
- // (undocumented)
460
420
  Free = "Free",
461
- // (undocumented)
462
421
  Standard = "Standard"
463
422
  }
464
423
 
@@ -534,12 +493,12 @@ export interface PrivateEndpoint {
534
493
  }
535
494
 
536
495
  // @public
537
- export type PrivateEndpointConnection = Resource & {
496
+ export interface PrivateEndpointConnection extends Resource {
497
+ groupIds?: string[];
538
498
  privateEndpoint?: PrivateEndpoint;
539
499
  privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;
540
- groupIds?: string[];
541
500
  readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
542
- };
501
+ }
543
502
 
544
503
  // @public
545
504
  export interface PrivateEndpointConnectionListResult {
@@ -599,9 +558,9 @@ export interface PrivateEndpointConnectionProxiesValidateOptionalParams extends
599
558
  }
600
559
 
601
560
  // @public
602
- export type PrivateEndpointConnectionProxy = ProxyResource & PrivateEndpointConnectionProxyProperties & {
561
+ export interface PrivateEndpointConnectionProxy extends ProxyResource, PrivateEndpointConnectionProxyProperties {
603
562
  readonly provisioningState?: PrivateEndpointConnectionProxyProvisioningState;
604
- };
563
+ }
605
564
 
606
565
  // @public
607
566
  export interface PrivateEndpointConnectionProxyListResult {
@@ -726,13 +685,15 @@ export interface PrivateLinkServiceProxy {
726
685
  }
727
686
 
728
687
  // @public
729
- export type PrivateLinkServiceProxyRemotePrivateEndpointConnection = RemotePrivateEndpointConnection;
688
+ export interface PrivateLinkServiceProxyRemotePrivateEndpointConnection extends RemotePrivateEndpointConnection {
689
+ }
730
690
 
731
691
  // @public
732
692
  export type ProvisioningState = string;
733
693
 
734
694
  // @public
735
- export type ProxyResource = Resource;
695
+ export interface ProxyResource extends Resource {
696
+ }
736
697
 
737
698
  // @public
738
699
  export type PublicNetworkAccess = string;
@@ -787,12 +748,12 @@ export interface TagUpdate {
787
748
  }
788
749
 
789
750
  // @public
790
- export type TrackedResource = Resource & {
751
+ export interface TrackedResource extends Resource {
752
+ location: string;
791
753
  tags?: {
792
754
  [propertyName: string]: string;
793
755
  };
794
- location: string;
795
- };
756
+ }
796
757
 
797
758
  // @public
798
759
  export interface UserAssignedIdentity {
@@ -145,7 +145,7 @@ export class DeviceUpdate extends coreClient.ServiceClient {
145
145
  if (param.length > 1) {
146
146
  const newParams = param[1].split("&").map((item) => {
147
147
  if (item.indexOf("api-version") > -1) {
148
- return item.replace(/(?<==).*$/, apiVersion);
148
+ return "api-version=" + apiVersion;
149
149
  } else {
150
150
  return item;
151
151
  }
@@ -447,7 +447,7 @@ export interface OperationDisplay {
447
447
  }
448
448
 
449
449
  /** The Private Endpoint Connection resource. */
450
- export type PrivateEndpointConnection = Resource & {
450
+ export interface PrivateEndpointConnection extends Resource {
451
451
  /** The resource of private end point. */
452
452
  privateEndpoint?: PrivateEndpoint;
453
453
  /** A collection of information about the state of the connection between service consumer and provider. */
@@ -459,51 +459,54 @@ export type PrivateEndpointConnection = Resource & {
459
459
  * NOTE: This property will not be serialized. It can only be populated by the server.
460
460
  */
461
461
  readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
462
- };
462
+ }
463
463
 
464
464
  /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
465
- export type TrackedResource = Resource & {
465
+ export interface TrackedResource extends Resource {
466
466
  /** Resource tags. */
467
467
  tags?: { [propertyName: string]: string };
468
468
  /** The geo-location where the resource lives */
469
469
  location: string;
470
- };
470
+ }
471
471
 
472
472
  /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
473
- export type ProxyResource = Resource;
473
+ export interface ProxyResource extends Resource { }
474
474
 
475
475
  /** Request payload used to update and existing Accounts. */
476
- export type AccountUpdate = TagUpdate & {
476
+ export interface AccountUpdate extends TagUpdate {
477
477
  /** The type of identity used for the resource. */
478
478
  identity?: ManagedServiceIdentity;
479
479
  /** The geo-location where the resource lives */
480
480
  location?: string;
481
- };
481
+ }
482
482
 
483
483
  /** The properties for a group information object */
484
- export type GroupInformationProperties = PrivateLinkResourceProperties & {
484
+ export interface GroupInformationProperties
485
+ extends PrivateLinkResourceProperties {
485
486
  /**
486
487
  * The provisioning state of private link group ID.
487
488
  * NOTE: This property will not be serialized. It can only be populated by the server.
488
489
  */
489
490
  readonly provisioningState?: GroupIdProvisioningState;
490
- };
491
+ }
491
492
 
492
493
  /** Private endpoint connection proxy details. */
493
- export type PrivateEndpointConnectionProxy = ProxyResource &
494
- PrivateEndpointConnectionProxyProperties & {
495
- /**
496
- * The provisioning state of the private endpoint connection proxy resource.
497
- * NOTE: This property will not be serialized. It can only be populated by the server.
498
- */
499
- readonly provisioningState?: PrivateEndpointConnectionProxyProvisioningState;
500
- };
494
+ export interface PrivateEndpointConnectionProxy
495
+ extends ProxyResource,
496
+ PrivateEndpointConnectionProxyProperties {
497
+ /**
498
+ * The provisioning state of the private endpoint connection proxy resource.
499
+ * NOTE: This property will not be serialized. It can only be populated by the server.
500
+ */
501
+ readonly provisioningState?: PrivateEndpointConnectionProxyProvisioningState;
502
+ }
501
503
 
502
504
  /** Remote private endpoint connection details. */
503
- export type PrivateLinkServiceProxyRemotePrivateEndpointConnection = RemotePrivateEndpointConnection;
505
+ export interface PrivateLinkServiceProxyRemotePrivateEndpointConnection
506
+ extends RemotePrivateEndpointConnection { }
504
507
 
505
508
  /** Device Update account details. */
506
- export type Account = TrackedResource & {
509
+ export interface Account extends TrackedResource {
507
510
  /** The type of identity used for the resource. */
508
511
  identity?: ManagedServiceIdentity;
509
512
  /**
@@ -527,10 +530,10 @@ export type Account = TrackedResource & {
527
530
  * NOTE: This property will not be serialized. It can only be populated by the server.
528
531
  */
529
532
  readonly locations?: Location[];
530
- };
533
+ }
531
534
 
532
535
  /** Device Update instance details. */
533
- export type Instance = TrackedResource & {
536
+ export interface Instance extends TrackedResource {
534
537
  /**
535
538
  * Provisioning state.
536
539
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -547,10 +550,10 @@ export type Instance = TrackedResource & {
547
550
  enableDiagnostics?: boolean;
548
551
  /** Customer-initiated diagnostic log collection storage properties */
549
552
  diagnosticStorageProperties?: DiagnosticStorageProperties;
550
- };
553
+ }
551
554
 
552
555
  /** The group information for creating a private endpoint on an Account */
553
- export type GroupInformation = ProxyResource & {
556
+ export interface GroupInformation extends ProxyResource {
554
557
  /**
555
558
  * The private link resource group id.
556
559
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -568,11 +571,13 @@ export type GroupInformation = ProxyResource & {
568
571
  * NOTE: This property will not be serialized. It can only be populated by the server.
569
572
  */
570
573
  readonly provisioningState?: GroupIdProvisioningState;
571
- };
574
+ }
572
575
 
573
576
  /** Known values of {@link CheckNameAvailabilityReason} that the service accepts. */
574
577
  export enum KnownCheckNameAvailabilityReason {
578
+ /** Invalid */
575
579
  Invalid = "Invalid",
580
+ /** AlreadyExists */
576
581
  AlreadyExists = "AlreadyExists"
577
582
  }
578
583
 
@@ -588,11 +593,17 @@ export type CheckNameAvailabilityReason = string;
588
593
 
589
594
  /** Known values of {@link ProvisioningState} that the service accepts. */
590
595
  export enum KnownProvisioningState {
596
+ /** Succeeded */
591
597
  Succeeded = "Succeeded",
598
+ /** Deleted */
592
599
  Deleted = "Deleted",
600
+ /** Failed */
593
601
  Failed = "Failed",
602
+ /** Canceled */
594
603
  Canceled = "Canceled",
604
+ /** Accepted */
595
605
  Accepted = "Accepted",
606
+ /** Creating */
596
607
  Creating = "Creating"
597
608
  }
598
609
 
@@ -612,7 +623,9 @@ export type ProvisioningState = string;
612
623
 
613
624
  /** Known values of {@link PublicNetworkAccess} that the service accepts. */
614
625
  export enum KnownPublicNetworkAccess {
626
+ /** Enabled */
615
627
  Enabled = "Enabled",
628
+ /** Disabled */
616
629
  Disabled = "Disabled"
617
630
  }
618
631
 
@@ -628,8 +641,11 @@ export type PublicNetworkAccess = string;
628
641
 
629
642
  /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
630
643
  export enum KnownPrivateEndpointServiceConnectionStatus {
644
+ /** Pending */
631
645
  Pending = "Pending",
646
+ /** Approved */
632
647
  Approved = "Approved",
648
+ /** Rejected */
633
649
  Rejected = "Rejected"
634
650
  }
635
651
 
@@ -646,9 +662,13 @@ export type PrivateEndpointServiceConnectionStatus = string;
646
662
 
647
663
  /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
648
664
  export enum KnownPrivateEndpointConnectionProvisioningState {
665
+ /** Succeeded */
649
666
  Succeeded = "Succeeded",
667
+ /** Creating */
650
668
  Creating = "Creating",
669
+ /** Deleting */
651
670
  Deleting = "Deleting",
671
+ /** Failed */
652
672
  Failed = "Failed"
653
673
  }
654
674
 
@@ -666,9 +686,13 @@ export type PrivateEndpointConnectionProvisioningState = string;
666
686
 
667
687
  /** Known values of {@link CreatedByType} that the service accepts. */
668
688
  export enum KnownCreatedByType {
689
+ /** User */
669
690
  User = "User",
691
+ /** Application */
670
692
  Application = "Application",
693
+ /** ManagedIdentity */
671
694
  ManagedIdentity = "ManagedIdentity",
695
+ /** Key */
672
696
  Key = "Key"
673
697
  }
674
698
 
@@ -686,7 +710,9 @@ export type CreatedByType = string;
686
710
 
687
711
  /** Known values of {@link Sku} that the service accepts. */
688
712
  export enum KnownSku {
713
+ /** Free */
689
714
  Free = "Free",
715
+ /** Standard */
690
716
  Standard = "Standard"
691
717
  }
692
718
 
@@ -702,7 +728,9 @@ export type Sku = string;
702
728
 
703
729
  /** Known values of {@link Role} that the service accepts. */
704
730
  export enum KnownRole {
731
+ /** Primary */
705
732
  Primary = "Primary",
733
+ /** Failover */
706
734
  Failover = "Failover"
707
735
  }
708
736
 
@@ -718,9 +746,13 @@ export type Role = string;
718
746
 
719
747
  /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
720
748
  export enum KnownManagedServiceIdentityType {
749
+ /** None */
721
750
  None = "None",
751
+ /** SystemAssigned */
722
752
  SystemAssigned = "SystemAssigned",
753
+ /** UserAssigned */
723
754
  UserAssigned = "UserAssigned",
755
+ /** SystemAssignedUserAssigned */
724
756
  SystemAssignedUserAssigned = "SystemAssigned,UserAssigned"
725
757
  }
726
758
 
@@ -738,6 +770,7 @@ export type ManagedServiceIdentityType = string;
738
770
 
739
771
  /** Known values of {@link AuthenticationType} that the service accepts. */
740
772
  export enum KnownAuthenticationType {
773
+ /** KeyBased */
741
774
  KeyBased = "KeyBased"
742
775
  }
743
776
 
@@ -752,8 +785,11 @@ export type AuthenticationType = string;
752
785
 
753
786
  /** Known values of {@link GroupIdProvisioningState} that the service accepts. */
754
787
  export enum KnownGroupIdProvisioningState {
788
+ /** Succeeded */
755
789
  Succeeded = "Succeeded",
790
+ /** Failed */
756
791
  Failed = "Failed",
792
+ /** Canceled */
757
793
  Canceled = "Canceled"
758
794
  }
759
795
 
@@ -770,9 +806,13 @@ export type GroupIdProvisioningState = string;
770
806
 
771
807
  /** Known values of {@link PrivateEndpointConnectionProxyProvisioningState} that the service accepts. */
772
808
  export enum KnownPrivateEndpointConnectionProxyProvisioningState {
809
+ /** Succeeded */
773
810
  Succeeded = "Succeeded",
811
+ /** Creating */
774
812
  Creating = "Creating",
813
+ /** Deleting */
775
814
  Deleting = "Deleting",
815
+ /** Failed */
776
816
  Failed = "Failed"
777
817
  }
778
818
 
@@ -790,8 +830,11 @@ export type PrivateEndpointConnectionProxyProvisioningState = string;
790
830
 
791
831
  /** Known values of {@link Origin} that the service accepts. */
792
832
  export enum KnownOrigin {
833
+ /** User */
793
834
  User = "user",
835
+ /** System */
794
836
  System = "system",
837
+ /** UserSystem */
795
838
  UserSystem = "user,system"
796
839
  }
797
840
 
@@ -808,6 +851,7 @@ export type Origin = string;
808
851
 
809
852
  /** Known values of {@link ActionType} that the service accepts. */
810
853
  export enum KnownActionType {
854
+ /** Internal */
811
855
  Internal = "Internal"
812
856
  }
813
857