@azure/arm-healthcareapis 2.1.2-alpha.20221101.1 → 2.2.0-alpha.20221129.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +22 -10
- package/dist/index.js +316 -95
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/healthcareApisManagementClient.d.ts +2 -0
- package/dist-esm/src/healthcareApisManagementClient.d.ts.map +1 -1
- package/dist-esm/src/healthcareApisManagementClient.js +49 -18
- package/dist-esm/src/healthcareApisManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +82 -29
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +48 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +0 -1
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/operations/dicomServices.d.ts.map +1 -1
- package/dist-esm/src/operations/dicomServices.js +19 -7
- package/dist-esm/src/operations/dicomServices.js.map +1 -1
- package/dist-esm/src/operations/fhirDestinations.d.ts.map +1 -1
- package/dist-esm/src/operations/fhirDestinations.js +19 -7
- package/dist-esm/src/operations/fhirDestinations.js.map +1 -1
- package/dist-esm/src/operations/fhirServices.d.ts.map +1 -1
- package/dist-esm/src/operations/fhirServices.js +19 -7
- package/dist-esm/src/operations/fhirServices.js.map +1 -1
- package/dist-esm/src/operations/iotConnectors.d.ts.map +1 -1
- package/dist-esm/src/operations/iotConnectors.js +19 -7
- package/dist-esm/src/operations/iotConnectors.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +8 -4
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/services.d.ts.map +1 -1
- package/dist-esm/src/operations/services.js +37 -14
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operations/workspacePrivateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/workspacePrivateEndpointConnections.js +8 -4
- package/dist-esm/src/operations/workspacePrivateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/workspacePrivateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/workspacePrivateLinkResources.js +8 -4
- package/dist-esm/src/operations/workspacePrivateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
- package/dist-esm/src/operations/workspaces.js +37 -14
- package/dist-esm/src/operations/workspaces.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +12 -8
- package/review/arm-healthcareapis.api.md +52 -92
- package/src/healthcareApisManagementClient.ts +60 -20
- package/src/index.ts +1 -0
- package/src/models/index.ts +158 -109
- package/src/models/mappers.ts +0 -1
- package/src/operations/dicomServices.ts +26 -12
- package/src/operations/fhirDestinations.ts +27 -13
- package/src/operations/fhirServices.ts +26 -12
- package/src/operations/iotConnectors.ts +26 -12
- package/src/operations/operations.ts +21 -8
- package/src/operations/privateEndpointConnections.ts +11 -5
- package/src/operations/services.ts +46 -17
- package/src/operations/workspacePrivateEndpointConnections.ts +11 -5
- package/src/operations/workspacePrivateLinkResources.ts +11 -5
- package/src/operations/workspaces.ts +45 -16
- package/src/pagingHelper.ts +39 -0
- package/types/arm-healthcareapis.d.ts +93 -29
- package/types/tsdoc-metadata.json +1 -1
package/src/models/index.ts
CHANGED
@@ -653,7 +653,7 @@ export interface PrivateEndpointConnectionListResult {
|
|
653
653
|
}
|
654
654
|
|
655
655
|
/** The Private Endpoint Connection resource. */
|
656
|
-
export
|
656
|
+
export interface PrivateEndpointConnection extends Resource {
|
657
657
|
/** The resource of private end point. */
|
658
658
|
privateEndpoint?: PrivateEndpoint;
|
659
659
|
/** A collection of information about the state of the connection between service consumer and provider. */
|
@@ -663,10 +663,10 @@ export type PrivateEndpointConnection = Resource & {
|
|
663
663
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
664
664
|
*/
|
665
665
|
readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
|
666
|
-
}
|
666
|
+
}
|
667
667
|
|
668
668
|
/** A private link resource */
|
669
|
-
export
|
669
|
+
export interface PrivateLinkResource extends Resource {
|
670
670
|
/**
|
671
671
|
* The private link resource group id.
|
672
672
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
@@ -679,10 +679,10 @@ export type PrivateLinkResource = Resource & {
|
|
679
679
|
readonly requiredMembers?: string[];
|
680
680
|
/** The private link resource Private link DNS zone name. */
|
681
681
|
requiredZoneNames?: string[];
|
682
|
-
}
|
682
|
+
}
|
683
683
|
|
684
684
|
/** The description of the service. */
|
685
|
-
export
|
685
|
+
export interface ServicesDescription extends ServicesResource {
|
686
686
|
/** The common properties of a service. */
|
687
687
|
properties?: ServicesProperties;
|
688
688
|
/**
|
@@ -690,151 +690,152 @@ export type ServicesDescription = ServicesResource & {
|
|
690
690
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
691
691
|
*/
|
692
692
|
readonly systemData?: SystemData;
|
693
|
-
}
|
693
|
+
}
|
694
694
|
|
695
695
|
/** The common properties of tracked resources in the service. */
|
696
|
-
export
|
696
|
+
export interface TaggedResource extends ResourceTags, LocationBasedResource {}
|
697
697
|
|
698
698
|
/** Workspace patch properties */
|
699
|
-
export
|
699
|
+
export interface WorkspacePatchResource extends ResourceTags {}
|
700
700
|
|
701
701
|
/** Dicom Service patch properties */
|
702
|
-
export
|
703
|
-
|
702
|
+
export interface DicomServicePatchResource
|
703
|
+
extends ResourceTags,
|
704
|
+
ServiceManagedIdentity {}
|
704
705
|
|
705
706
|
/** Iot Connector patch properties */
|
706
|
-
export
|
707
|
-
|
707
|
+
export interface IotConnectorPatchResource
|
708
|
+
extends ResourceTags,
|
709
|
+
ServiceManagedIdentity {}
|
708
710
|
|
709
711
|
/** FhirService patch properties */
|
710
|
-
export
|
711
|
-
|
712
|
+
export interface FhirServicePatchResource
|
713
|
+
extends ResourceTags,
|
714
|
+
ServiceManagedIdentity {}
|
712
715
|
|
713
716
|
/** The common properties for any location based resource, tracked or proxy. */
|
714
|
-
export
|
717
|
+
export interface LocationBasedResource extends ResourceCore {
|
715
718
|
/** The resource location. */
|
716
719
|
location?: string;
|
717
|
-
}
|
720
|
+
}
|
718
721
|
|
719
722
|
/** The description of Dicom Service */
|
720
|
-
export
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
};
|
723
|
+
export interface DicomService extends TaggedResource, ServiceManagedIdentity {
|
724
|
+
/**
|
725
|
+
* Metadata pertaining to creation and last modification of the resource.
|
726
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
727
|
+
*/
|
728
|
+
readonly systemData?: SystemData;
|
729
|
+
/**
|
730
|
+
* The provisioning state.
|
731
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
732
|
+
*/
|
733
|
+
readonly provisioningState?: ProvisioningState;
|
734
|
+
/** Dicom Service authentication configuration. */
|
735
|
+
authenticationConfiguration?: DicomServiceAuthenticationConfiguration;
|
736
|
+
/**
|
737
|
+
* The url of the Dicom Services.
|
738
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
739
|
+
*/
|
740
|
+
readonly serviceUrl?: string;
|
741
|
+
/**
|
742
|
+
* The list of private endpoint connections that are set up for this resource.
|
743
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
744
|
+
*/
|
745
|
+
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
746
|
+
/** Control permission for data plane traffic coming from public networks while private endpoint is enabled. */
|
747
|
+
publicNetworkAccess?: PublicNetworkAccess;
|
748
|
+
}
|
747
749
|
|
748
750
|
/** IoT Connector definition. */
|
749
|
-
export
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
};
|
751
|
+
export interface IotConnector extends TaggedResource, ServiceManagedIdentity {
|
752
|
+
/**
|
753
|
+
* Metadata pertaining to creation and last modification of the resource.
|
754
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
755
|
+
*/
|
756
|
+
readonly systemData?: SystemData;
|
757
|
+
/**
|
758
|
+
* The provisioning state.
|
759
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
760
|
+
*/
|
761
|
+
readonly provisioningState?: ProvisioningState;
|
762
|
+
/** Source configuration. */
|
763
|
+
ingestionEndpointConfiguration?: IotEventHubIngestionEndpointConfiguration;
|
764
|
+
/** Device Mappings. */
|
765
|
+
deviceMapping?: IotMappingProperties;
|
766
|
+
}
|
766
767
|
|
767
768
|
/** The description of Fhir Service */
|
768
|
-
export
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
};
|
769
|
+
export interface FhirService extends TaggedResource, ServiceManagedIdentity {
|
770
|
+
/** The kind of the service. */
|
771
|
+
kind?: FhirServiceKind;
|
772
|
+
/**
|
773
|
+
* Metadata pertaining to creation and last modification of the resource.
|
774
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
775
|
+
*/
|
776
|
+
readonly systemData?: SystemData;
|
777
|
+
/**
|
778
|
+
* The provisioning state.
|
779
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
780
|
+
*/
|
781
|
+
readonly provisioningState?: ProvisioningState;
|
782
|
+
/** Fhir Service access policies. */
|
783
|
+
accessPolicies?: FhirServiceAccessPolicyEntry[];
|
784
|
+
/** Fhir Service Azure container registry configuration. */
|
785
|
+
acrConfiguration?: FhirServiceAcrConfiguration;
|
786
|
+
/** Fhir Service authentication configuration. */
|
787
|
+
authenticationConfiguration?: FhirServiceAuthenticationConfiguration;
|
788
|
+
/** Fhir Service Cors configuration. */
|
789
|
+
corsConfiguration?: FhirServiceCorsConfiguration;
|
790
|
+
/** Fhir Service export configuration. */
|
791
|
+
exportConfiguration?: FhirServiceExportConfiguration;
|
792
|
+
/**
|
793
|
+
* The list of private endpoint connections that are set up for this resource.
|
794
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
795
|
+
*/
|
796
|
+
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
797
|
+
/** Control permission for data plane traffic coming from public networks while private endpoint is enabled. */
|
798
|
+
publicNetworkAccess?: PublicNetworkAccess;
|
799
|
+
/**
|
800
|
+
* Fhir Service event support status.
|
801
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
802
|
+
*/
|
803
|
+
readonly eventState?: ServiceEventState;
|
804
|
+
/** Determines tracking of history for resources. */
|
805
|
+
resourceVersionPolicyConfiguration?: ResourceVersionPolicyConfiguration;
|
806
|
+
}
|
807
807
|
|
808
808
|
/** IoT Connector destination properties for an Azure FHIR service. */
|
809
|
-
export
|
809
|
+
export interface IotFhirDestinationProperties extends IotDestinationProperties {
|
810
810
|
/** Determines how resource identity is resolved on the destination. */
|
811
811
|
resourceIdentityResolutionType: IotIdentityResolutionType;
|
812
812
|
/** Fully qualified resource id of the FHIR service to connect to. */
|
813
813
|
fhirServiceResourceId: string;
|
814
814
|
/** FHIR Mappings */
|
815
815
|
fhirMapping: IotMappingProperties;
|
816
|
-
}
|
816
|
+
}
|
817
817
|
|
818
818
|
/** The Private Endpoint Connection resource. */
|
819
|
-
export
|
819
|
+
export interface PrivateEndpointConnectionDescription
|
820
|
+
extends PrivateEndpointConnection {
|
820
821
|
/**
|
821
822
|
* Metadata pertaining to creation and last modification of the resource.
|
822
823
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
823
824
|
*/
|
824
825
|
readonly systemData?: SystemData;
|
825
|
-
}
|
826
|
+
}
|
826
827
|
|
827
828
|
/** The Private Endpoint Connection resource. */
|
828
|
-
export
|
829
|
+
export interface PrivateLinkResourceDescription extends PrivateLinkResource {
|
829
830
|
/**
|
830
831
|
* Metadata pertaining to creation and last modification of the resource.
|
831
832
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
832
833
|
*/
|
833
834
|
readonly systemData?: SystemData;
|
834
|
-
}
|
835
|
+
}
|
835
836
|
|
836
837
|
/** Workspace resource. */
|
837
|
-
export
|
838
|
+
export interface Workspace extends TaggedResource {
|
838
839
|
/** Workspaces resource specific properties. */
|
839
840
|
properties?: WorkspaceProperties;
|
840
841
|
/**
|
@@ -842,10 +843,10 @@ export type Workspace = TaggedResource & {
|
|
842
843
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
843
844
|
*/
|
844
845
|
readonly systemData?: SystemData;
|
845
|
-
}
|
846
|
+
}
|
846
847
|
|
847
848
|
/** IoT Connector FHIR destination definition. */
|
848
|
-
export
|
849
|
+
export interface IotFhirDestination extends LocationBasedResource {
|
849
850
|
/**
|
850
851
|
* Metadata pertaining to creation and last modification of the resource.
|
851
852
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
@@ -862,22 +863,35 @@ export type IotFhirDestination = LocationBasedResource & {
|
|
862
863
|
fhirServiceResourceId: string;
|
863
864
|
/** FHIR Mappings */
|
864
865
|
fhirMapping: IotMappingProperties;
|
865
|
-
}
|
866
|
+
}
|
866
867
|
|
867
868
|
/** Known values of {@link ProvisioningState} that the service accepts. */
|
868
869
|
export enum KnownProvisioningState {
|
870
|
+
/** Deleting */
|
869
871
|
Deleting = "Deleting",
|
872
|
+
/** Succeeded */
|
870
873
|
Succeeded = "Succeeded",
|
874
|
+
/** Creating */
|
871
875
|
Creating = "Creating",
|
876
|
+
/** Accepted */
|
872
877
|
Accepted = "Accepted",
|
878
|
+
/** Verifying */
|
873
879
|
Verifying = "Verifying",
|
880
|
+
/** Updating */
|
874
881
|
Updating = "Updating",
|
882
|
+
/** Failed */
|
875
883
|
Failed = "Failed",
|
884
|
+
/** Canceled */
|
876
885
|
Canceled = "Canceled",
|
886
|
+
/** Deprovisioned */
|
877
887
|
Deprovisioned = "Deprovisioned",
|
888
|
+
/** Moving */
|
878
889
|
Moving = "Moving",
|
890
|
+
/** Suspended */
|
879
891
|
Suspended = "Suspended",
|
892
|
+
/** Warned */
|
880
893
|
Warned = "Warned",
|
894
|
+
/** SystemMaintenance */
|
881
895
|
SystemMaintenance = "SystemMaintenance"
|
882
896
|
}
|
883
897
|
|
@@ -904,8 +918,11 @@ export type ProvisioningState = string;
|
|
904
918
|
|
905
919
|
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
|
906
920
|
export enum KnownPrivateEndpointServiceConnectionStatus {
|
921
|
+
/** Pending */
|
907
922
|
Pending = "Pending",
|
923
|
+
/** Approved */
|
908
924
|
Approved = "Approved",
|
925
|
+
/** Rejected */
|
909
926
|
Rejected = "Rejected"
|
910
927
|
}
|
911
928
|
|
@@ -922,9 +939,13 @@ export type PrivateEndpointServiceConnectionStatus = string;
|
|
922
939
|
|
923
940
|
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
924
941
|
export enum KnownPrivateEndpointConnectionProvisioningState {
|
942
|
+
/** Succeeded */
|
925
943
|
Succeeded = "Succeeded",
|
944
|
+
/** Creating */
|
926
945
|
Creating = "Creating",
|
946
|
+
/** Deleting */
|
927
947
|
Deleting = "Deleting",
|
948
|
+
/** Failed */
|
928
949
|
Failed = "Failed"
|
929
950
|
}
|
930
951
|
|
@@ -942,7 +963,9 @@ export type PrivateEndpointConnectionProvisioningState = string;
|
|
942
963
|
|
943
964
|
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
944
965
|
export enum KnownPublicNetworkAccess {
|
966
|
+
/** Enabled */
|
945
967
|
Enabled = "Enabled",
|
968
|
+
/** Disabled */
|
946
969
|
Disabled = "Disabled"
|
947
970
|
}
|
948
971
|
|
@@ -958,9 +981,13 @@ export type PublicNetworkAccess = string;
|
|
958
981
|
|
959
982
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
960
983
|
export enum KnownCreatedByType {
|
984
|
+
/** User */
|
961
985
|
User = "User",
|
986
|
+
/** Application */
|
962
987
|
Application = "Application",
|
988
|
+
/** ManagedIdentity */
|
963
989
|
ManagedIdentity = "ManagedIdentity",
|
990
|
+
/** Key */
|
964
991
|
Key = "Key"
|
965
992
|
}
|
966
993
|
|
@@ -978,7 +1005,9 @@ export type CreatedByType = string;
|
|
978
1005
|
|
979
1006
|
/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
|
980
1007
|
export enum KnownManagedServiceIdentityType {
|
1008
|
+
/** SystemAssigned */
|
981
1009
|
SystemAssigned = "SystemAssigned",
|
1010
|
+
/** None */
|
982
1011
|
None = "None"
|
983
1012
|
}
|
984
1013
|
|
@@ -994,9 +1023,13 @@ export type ManagedServiceIdentityType = string;
|
|
994
1023
|
|
995
1024
|
/** Known values of {@link ServiceManagedIdentityType} that the service accepts. */
|
996
1025
|
export enum KnownServiceManagedIdentityType {
|
1026
|
+
/** None */
|
997
1027
|
None = "None",
|
1028
|
+
/** SystemAssigned */
|
998
1029
|
SystemAssigned = "SystemAssigned",
|
1030
|
+
/** UserAssigned */
|
999
1031
|
UserAssigned = "UserAssigned",
|
1032
|
+
/** SystemAssignedUserAssigned */
|
1000
1033
|
SystemAssignedUserAssigned = "SystemAssigned,UserAssigned"
|
1001
1034
|
}
|
1002
1035
|
|
@@ -1014,7 +1047,9 @@ export type ServiceManagedIdentityType = string;
|
|
1014
1047
|
|
1015
1048
|
/** Known values of {@link IotIdentityResolutionType} that the service accepts. */
|
1016
1049
|
export enum KnownIotIdentityResolutionType {
|
1050
|
+
/** Create */
|
1017
1051
|
Create = "Create",
|
1052
|
+
/** Lookup */
|
1018
1053
|
Lookup = "Lookup"
|
1019
1054
|
}
|
1020
1055
|
|
@@ -1030,7 +1065,9 @@ export type IotIdentityResolutionType = string;
|
|
1030
1065
|
|
1031
1066
|
/** Known values of {@link FhirServiceKind} that the service accepts. */
|
1032
1067
|
export enum KnownFhirServiceKind {
|
1068
|
+
/** FhirStu3 */
|
1033
1069
|
FhirStu3 = "fhir-Stu3",
|
1070
|
+
/** FhirR4 */
|
1034
1071
|
FhirR4 = "fhir-R4"
|
1035
1072
|
}
|
1036
1073
|
|
@@ -1046,8 +1083,11 @@ export type FhirServiceKind = string;
|
|
1046
1083
|
|
1047
1084
|
/** Known values of {@link ServiceEventState} that the service accepts. */
|
1048
1085
|
export enum KnownServiceEventState {
|
1086
|
+
/** Disabled */
|
1049
1087
|
Disabled = "Disabled",
|
1088
|
+
/** Enabled */
|
1050
1089
|
Enabled = "Enabled",
|
1090
|
+
/** Updating */
|
1051
1091
|
Updating = "Updating"
|
1052
1092
|
}
|
1053
1093
|
|
@@ -1064,8 +1104,11 @@ export type ServiceEventState = string;
|
|
1064
1104
|
|
1065
1105
|
/** Known values of {@link FhirResourceVersionPolicy} that the service accepts. */
|
1066
1106
|
export enum KnownFhirResourceVersionPolicy {
|
1107
|
+
/** NoVersion */
|
1067
1108
|
NoVersion = "no-version",
|
1109
|
+
/** Versioned */
|
1068
1110
|
Versioned = "versioned",
|
1111
|
+
/** VersionedUpdate */
|
1069
1112
|
VersionedUpdate = "versioned-update"
|
1070
1113
|
}
|
1071
1114
|
|
@@ -1082,6 +1125,7 @@ export type FhirResourceVersionPolicy = string;
|
|
1082
1125
|
|
1083
1126
|
/** Known values of {@link ActionType} that the service accepts. */
|
1084
1127
|
export enum KnownActionType {
|
1128
|
+
/** Internal */
|
1085
1129
|
Internal = "Internal"
|
1086
1130
|
}
|
1087
1131
|
|
@@ -1096,10 +1140,15 @@ export type ActionType = string;
|
|
1096
1140
|
|
1097
1141
|
/** Known values of {@link OperationResultStatus} that the service accepts. */
|
1098
1142
|
export enum KnownOperationResultStatus {
|
1143
|
+
/** Canceled */
|
1099
1144
|
Canceled = "Canceled",
|
1145
|
+
/** Succeeded */
|
1100
1146
|
Succeeded = "Succeeded",
|
1147
|
+
/** Failed */
|
1101
1148
|
Failed = "Failed",
|
1149
|
+
/** Requested */
|
1102
1150
|
Requested = "Requested",
|
1151
|
+
/** Running */
|
1103
1152
|
Running = "Running"
|
1104
1153
|
}
|
1105
1154
|
|
package/src/models/mappers.ts
CHANGED
@@ -6,7 +6,8 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { DicomServices } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -66,11 +67,15 @@ export class DicomServicesImpl implements DicomServices {
|
|
66
67
|
[Symbol.asyncIterator]() {
|
67
68
|
return this;
|
68
69
|
},
|
69
|
-
byPage: () => {
|
70
|
+
byPage: (settings?: PageSettings) => {
|
71
|
+
if (settings?.maxPageSize) {
|
72
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
73
|
+
}
|
70
74
|
return this.listByWorkspacePagingPage(
|
71
75
|
resourceGroupName,
|
72
76
|
workspaceName,
|
73
|
-
options
|
77
|
+
options,
|
78
|
+
settings
|
74
79
|
);
|
75
80
|
}
|
76
81
|
};
|
@@ -79,15 +84,22 @@ export class DicomServicesImpl implements DicomServices {
|
|
79
84
|
private async *listByWorkspacePagingPage(
|
80
85
|
resourceGroupName: string,
|
81
86
|
workspaceName: string,
|
82
|
-
options?: DicomServicesListByWorkspaceOptionalParams
|
87
|
+
options?: DicomServicesListByWorkspaceOptionalParams,
|
88
|
+
settings?: PageSettings
|
83
89
|
): AsyncIterableIterator<DicomService[]> {
|
84
|
-
let result
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
90
|
+
let result: DicomServicesListByWorkspaceResponse;
|
91
|
+
let continuationToken = settings?.continuationToken;
|
92
|
+
if (!continuationToken) {
|
93
|
+
result = await this._listByWorkspace(
|
94
|
+
resourceGroupName,
|
95
|
+
workspaceName,
|
96
|
+
options
|
97
|
+
);
|
98
|
+
let page = result.value || [];
|
99
|
+
continuationToken = result.nextLink;
|
100
|
+
setContinuationToken(page, continuationToken);
|
101
|
+
yield page;
|
102
|
+
}
|
91
103
|
while (continuationToken) {
|
92
104
|
result = await this._listByWorkspaceNext(
|
93
105
|
resourceGroupName,
|
@@ -96,7 +108,9 @@ export class DicomServicesImpl implements DicomServices {
|
|
96
108
|
options
|
97
109
|
);
|
98
110
|
continuationToken = result.nextLink;
|
99
|
-
|
111
|
+
let page = result.value || [];
|
112
|
+
setContinuationToken(page, continuationToken);
|
113
|
+
yield page;
|
100
114
|
}
|
101
115
|
}
|
102
116
|
|
@@ -6,7 +6,8 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { FhirDestinations } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -59,12 +60,16 @@ export class FhirDestinationsImpl implements FhirDestinations {
|
|
59
60
|
[Symbol.asyncIterator]() {
|
60
61
|
return this;
|
61
62
|
},
|
62
|
-
byPage: () => {
|
63
|
+
byPage: (settings?: PageSettings) => {
|
64
|
+
if (settings?.maxPageSize) {
|
65
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
66
|
+
}
|
63
67
|
return this.listByIotConnectorPagingPage(
|
64
68
|
resourceGroupName,
|
65
69
|
workspaceName,
|
66
70
|
iotConnectorName,
|
67
|
-
options
|
71
|
+
options,
|
72
|
+
settings
|
68
73
|
);
|
69
74
|
}
|
70
75
|
};
|
@@ -74,16 +79,23 @@ export class FhirDestinationsImpl implements FhirDestinations {
|
|
74
79
|
resourceGroupName: string,
|
75
80
|
workspaceName: string,
|
76
81
|
iotConnectorName: string,
|
77
|
-
options?: FhirDestinationsListByIotConnectorOptionalParams
|
82
|
+
options?: FhirDestinationsListByIotConnectorOptionalParams,
|
83
|
+
settings?: PageSettings
|
78
84
|
): AsyncIterableIterator<IotFhirDestination[]> {
|
79
|
-
let result
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
85
|
+
let result: FhirDestinationsListByIotConnectorResponse;
|
86
|
+
let continuationToken = settings?.continuationToken;
|
87
|
+
if (!continuationToken) {
|
88
|
+
result = await this._listByIotConnector(
|
89
|
+
resourceGroupName,
|
90
|
+
workspaceName,
|
91
|
+
iotConnectorName,
|
92
|
+
options
|
93
|
+
);
|
94
|
+
let page = result.value || [];
|
95
|
+
continuationToken = result.nextLink;
|
96
|
+
setContinuationToken(page, continuationToken);
|
97
|
+
yield page;
|
98
|
+
}
|
87
99
|
while (continuationToken) {
|
88
100
|
result = await this._listByIotConnectorNext(
|
89
101
|
resourceGroupName,
|
@@ -93,7 +105,9 @@ export class FhirDestinationsImpl implements FhirDestinations {
|
|
93
105
|
options
|
94
106
|
);
|
95
107
|
continuationToken = result.nextLink;
|
96
|
-
|
108
|
+
let page = result.value || [];
|
109
|
+
setContinuationToken(page, continuationToken);
|
110
|
+
yield page;
|
97
111
|
}
|
98
112
|
}
|
99
113
|
|