@azure/arm-servicefabricmesh 3.0.0-beta.3 → 3.0.0-beta.4

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 (140) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +321 -141
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/applicationCreateSample.js +11 -3
  9. package/dist-esm/samples-dev/applicationCreateSample.js.map +1 -1
  10. package/dist-esm/samples-dev/applicationDeleteSample.js +11 -3
  11. package/dist-esm/samples-dev/applicationDeleteSample.js.map +1 -1
  12. package/dist-esm/samples-dev/applicationGetSample.js +11 -3
  13. package/dist-esm/samples-dev/applicationGetSample.js.map +1 -1
  14. package/dist-esm/samples-dev/applicationListByResourceGroupSample.js +11 -3
  15. package/dist-esm/samples-dev/applicationListByResourceGroupSample.js.map +1 -1
  16. package/dist-esm/samples-dev/applicationListBySubscriptionSample.js +10 -2
  17. package/dist-esm/samples-dev/applicationListBySubscriptionSample.js.map +1 -1
  18. package/dist-esm/samples-dev/codePackageGetContainerLogsSample.js +11 -3
  19. package/dist-esm/samples-dev/codePackageGetContainerLogsSample.js.map +1 -1
  20. package/dist-esm/samples-dev/gatewayCreateSample.js +11 -3
  21. package/dist-esm/samples-dev/gatewayCreateSample.js.map +1 -1
  22. package/dist-esm/samples-dev/gatewayDeleteSample.js +11 -3
  23. package/dist-esm/samples-dev/gatewayDeleteSample.js.map +1 -1
  24. package/dist-esm/samples-dev/gatewayGetSample.js +11 -3
  25. package/dist-esm/samples-dev/gatewayGetSample.js.map +1 -1
  26. package/dist-esm/samples-dev/gatewayListByResourceGroupSample.js +11 -3
  27. package/dist-esm/samples-dev/gatewayListByResourceGroupSample.js.map +1 -1
  28. package/dist-esm/samples-dev/gatewayListBySubscriptionSample.js +10 -2
  29. package/dist-esm/samples-dev/gatewayListBySubscriptionSample.js.map +1 -1
  30. package/dist-esm/samples-dev/networkCreateSample.js +11 -3
  31. package/dist-esm/samples-dev/networkCreateSample.js.map +1 -1
  32. package/dist-esm/samples-dev/networkDeleteSample.js +11 -3
  33. package/dist-esm/samples-dev/networkDeleteSample.js.map +1 -1
  34. package/dist-esm/samples-dev/networkGetSample.js +11 -3
  35. package/dist-esm/samples-dev/networkGetSample.js.map +1 -1
  36. package/dist-esm/samples-dev/networkListByResourceGroupSample.js +11 -3
  37. package/dist-esm/samples-dev/networkListByResourceGroupSample.js.map +1 -1
  38. package/dist-esm/samples-dev/networkListBySubscriptionSample.js +10 -2
  39. package/dist-esm/samples-dev/networkListBySubscriptionSample.js.map +1 -1
  40. package/dist-esm/samples-dev/secretCreateSample.js +11 -3
  41. package/dist-esm/samples-dev/secretCreateSample.js.map +1 -1
  42. package/dist-esm/samples-dev/secretDeleteSample.js +11 -3
  43. package/dist-esm/samples-dev/secretDeleteSample.js.map +1 -1
  44. package/dist-esm/samples-dev/secretGetSample.js +11 -3
  45. package/dist-esm/samples-dev/secretGetSample.js.map +1 -1
  46. package/dist-esm/samples-dev/secretListByResourceGroupSample.js +11 -3
  47. package/dist-esm/samples-dev/secretListByResourceGroupSample.js.map +1 -1
  48. package/dist-esm/samples-dev/secretListBySubscriptionSample.js +10 -2
  49. package/dist-esm/samples-dev/secretListBySubscriptionSample.js.map +1 -1
  50. package/dist-esm/samples-dev/secretValueCreateSample.js +11 -3
  51. package/dist-esm/samples-dev/secretValueCreateSample.js.map +1 -1
  52. package/dist-esm/samples-dev/secretValueDeleteSample.js +11 -3
  53. package/dist-esm/samples-dev/secretValueDeleteSample.js.map +1 -1
  54. package/dist-esm/samples-dev/secretValueGetSample.js +11 -3
  55. package/dist-esm/samples-dev/secretValueGetSample.js.map +1 -1
  56. package/dist-esm/samples-dev/secretValueListSample.js +11 -3
  57. package/dist-esm/samples-dev/secretValueListSample.js.map +1 -1
  58. package/dist-esm/samples-dev/secretValueListValueSample.js +11 -3
  59. package/dist-esm/samples-dev/secretValueListValueSample.js.map +1 -1
  60. package/dist-esm/samples-dev/serviceGetSample.js +11 -3
  61. package/dist-esm/samples-dev/serviceGetSample.js.map +1 -1
  62. package/dist-esm/samples-dev/serviceListSample.js +11 -3
  63. package/dist-esm/samples-dev/serviceListSample.js.map +1 -1
  64. package/dist-esm/samples-dev/serviceReplicaGetSample.js +11 -3
  65. package/dist-esm/samples-dev/serviceReplicaGetSample.js.map +1 -1
  66. package/dist-esm/samples-dev/serviceReplicaListSample.js +11 -3
  67. package/dist-esm/samples-dev/serviceReplicaListSample.js.map +1 -1
  68. package/dist-esm/samples-dev/volumeCreateSample.js +11 -3
  69. package/dist-esm/samples-dev/volumeCreateSample.js.map +1 -1
  70. package/dist-esm/samples-dev/volumeDeleteSample.js +11 -3
  71. package/dist-esm/samples-dev/volumeDeleteSample.js.map +1 -1
  72. package/dist-esm/samples-dev/volumeGetSample.js +11 -3
  73. package/dist-esm/samples-dev/volumeGetSample.js.map +1 -1
  74. package/dist-esm/samples-dev/volumeListByResourceGroupSample.js +11 -3
  75. package/dist-esm/samples-dev/volumeListByResourceGroupSample.js.map +1 -1
  76. package/dist-esm/samples-dev/volumeListBySubscriptionSample.js +10 -2
  77. package/dist-esm/samples-dev/volumeListBySubscriptionSample.js.map +1 -1
  78. package/dist-esm/src/index.d.ts +1 -0
  79. package/dist-esm/src/index.d.ts.map +1 -1
  80. package/dist-esm/src/index.js +1 -0
  81. package/dist-esm/src/index.js.map +1 -1
  82. package/dist-esm/src/models/index.d.ts +67 -47
  83. package/dist-esm/src/models/index.d.ts.map +1 -1
  84. package/dist-esm/src/models/index.js +5 -0
  85. package/dist-esm/src/models/index.js.map +1 -1
  86. package/dist-esm/src/models/mappers.d.ts +4 -4
  87. package/dist-esm/src/models/mappers.js +10 -10
  88. package/dist-esm/src/models/mappers.js.map +1 -1
  89. package/dist-esm/src/operations/application.d.ts.map +1 -1
  90. package/dist-esm/src/operations/application.js +37 -16
  91. package/dist-esm/src/operations/application.js.map +1 -1
  92. package/dist-esm/src/operations/gateway.d.ts.map +1 -1
  93. package/dist-esm/src/operations/gateway.js +37 -16
  94. package/dist-esm/src/operations/gateway.js.map +1 -1
  95. package/dist-esm/src/operations/network.d.ts.map +1 -1
  96. package/dist-esm/src/operations/network.js +37 -16
  97. package/dist-esm/src/operations/network.js.map +1 -1
  98. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  99. package/dist-esm/src/operations/operations.js +19 -8
  100. package/dist-esm/src/operations/operations.js.map +1 -1
  101. package/dist-esm/src/operations/secret.d.ts.map +1 -1
  102. package/dist-esm/src/operations/secret.js +37 -16
  103. package/dist-esm/src/operations/secret.js.map +1 -1
  104. package/dist-esm/src/operations/secretValueOperations.d.ts.map +1 -1
  105. package/dist-esm/src/operations/secretValueOperations.js +19 -8
  106. package/dist-esm/src/operations/secretValueOperations.js.map +1 -1
  107. package/dist-esm/src/operations/service.d.ts.map +1 -1
  108. package/dist-esm/src/operations/service.js +19 -8
  109. package/dist-esm/src/operations/service.js.map +1 -1
  110. package/dist-esm/src/operations/serviceReplica.d.ts.map +1 -1
  111. package/dist-esm/src/operations/serviceReplica.js +19 -8
  112. package/dist-esm/src/operations/serviceReplica.js.map +1 -1
  113. package/dist-esm/src/operations/volume.d.ts.map +1 -1
  114. package/dist-esm/src/operations/volume.js +37 -16
  115. package/dist-esm/src/operations/volume.js.map +1 -1
  116. package/dist-esm/src/pagingHelper.d.ts +13 -0
  117. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  118. package/dist-esm/src/pagingHelper.js +32 -0
  119. package/dist-esm/src/pagingHelper.js.map +1 -0
  120. package/dist-esm/src/serviceFabricMeshManagementClient.d.ts.map +1 -1
  121. package/dist-esm/src/serviceFabricMeshManagementClient.js +21 -19
  122. package/dist-esm/src/serviceFabricMeshManagementClient.js.map +1 -1
  123. package/package.json +9 -8
  124. package/review/arm-servicefabricmesh.api.md +87 -78
  125. package/src/index.ts +1 -0
  126. package/src/models/index.ts +79 -53
  127. package/src/models/mappers.ts +10 -10
  128. package/src/operations/application.ts +46 -19
  129. package/src/operations/gateway.ts +46 -19
  130. package/src/operations/network.ts +46 -19
  131. package/src/operations/operations.ts +21 -9
  132. package/src/operations/secret.ts +46 -19
  133. package/src/operations/secretValueOperations.ts +23 -14
  134. package/src/operations/service.ts +27 -14
  135. package/src/operations/serviceReplica.ts +28 -15
  136. package/src/operations/volume.ts +46 -19
  137. package/src/pagingHelper.ts +39 -0
  138. package/src/serviceFabricMeshManagementClient.ts +27 -21
  139. package/types/arm-servicefabricmesh.d.ts +76 -47
  140. package/types/tsdoc-metadata.json +1 -1
@@ -676,71 +676,79 @@ export interface AutoScalingMetric {
676
676
  }
677
677
 
678
678
  /** This type describes the properties of a secret resource, including its kind. */
679
- export type SecretResourcePropertiesBase = ProvisionedResourceProperties & {
679
+ export interface SecretResourcePropertiesBase
680
+ extends ProvisionedResourceProperties {
680
681
  /** Describes the kind of secret. */
681
682
  kind: SecretKind;
682
- };
683
+ }
683
684
 
684
685
  /** This type describes properties of a secret value resource. */
685
- export type SecretValueResourceProperties = ProvisionedResourceProperties &
686
- SecretValueProperties;
686
+ export interface SecretValueResourceProperties
687
+ extends ProvisionedResourceProperties,
688
+ SecretValueProperties {}
687
689
 
688
690
  /** This type describes properties of a volume resource. */
689
- export type VolumeResourceProperties = ProvisionedResourceProperties &
690
- VolumeProperties;
691
+ export interface VolumeResourceProperties
692
+ extends ProvisionedResourceProperties,
693
+ VolumeProperties {}
691
694
 
692
695
  /** This type describes the properties of a network resource, including its kind. */
693
- export type NetworkResourcePropertiesBase = ProvisionedResourceProperties & {
696
+ export interface NetworkResourcePropertiesBase
697
+ extends ProvisionedResourceProperties {
694
698
  /** The type of a Service Fabric container network. */
695
699
  kind: NetworkKind;
696
- };
700
+ }
697
701
 
698
702
  /** This type describes properties of a gateway resource. */
699
- export type GatewayResourceProperties = ProvisionedResourceProperties &
700
- GatewayProperties;
703
+ export interface GatewayResourceProperties
704
+ extends ProvisionedResourceProperties,
705
+ GatewayProperties {}
701
706
 
702
707
  /** This type describes properties of a service resource. */
703
- export type ServiceResourceProperties = ProvisionedResourceProperties &
704
- ServiceReplicaProperties &
705
- ServiceProperties;
708
+ export interface ServiceResourceProperties
709
+ extends ProvisionedResourceProperties,
710
+ ServiceReplicaProperties,
711
+ ServiceProperties {}
706
712
 
707
713
  /** This type describes properties of an application resource. */
708
- export type ApplicationResourceProperties = ProvisionedResourceProperties &
709
- ApplicationProperties;
714
+ export interface ApplicationResourceProperties
715
+ extends ProvisionedResourceProperties,
716
+ ApplicationProperties {}
710
717
 
711
718
  /** The resource model definition for Azure Resource Manager tracked top-level resource. */
712
- export type TrackedResource = Resource & {
719
+ export interface TrackedResource extends Resource {
713
720
  /** Resource tags. */
714
721
  tags?: { [propertyName: string]: string };
715
722
  /** The geo-location where the resource lives */
716
723
  location: string;
717
- };
724
+ }
718
725
 
719
726
  /** The resource model definition for Azure Resource Manager proxy resource. It will have everything other than required location and tags. */
720
- export type ProxyResource = Resource;
727
+ export interface ProxyResource extends Resource {}
721
728
 
722
729
  /** Describes a replica of a service resource. */
723
- export type ServiceReplicaDescription = ServiceReplicaProperties & {
730
+ export interface ServiceReplicaDescription extends ServiceReplicaProperties {
724
731
  /** Name of the replica. */
725
732
  replicaName: string;
726
- };
733
+ }
727
734
 
728
735
  /** Describes a volume whose lifetime is scoped to the application's lifetime. */
729
- export type ApplicationScopedVolume = VolumeReference & {
736
+ export interface ApplicationScopedVolume extends VolumeReference {
730
737
  /** Describes parameters for creating application-scoped volumes. */
731
738
  creationParameters: ApplicationScopedVolumeCreationParametersUnion;
732
- };
739
+ }
733
740
 
734
741
  /** Describes parameters for creating application-scoped volumes provided by Service Fabric Volume Disks */
735
- export type ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk = ApplicationScopedVolumeCreationParameters & {
742
+ export interface ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk
743
+ extends ApplicationScopedVolumeCreationParameters {
736
744
  /** Polymorphic discriminator, which specifies the different types this object can be */
737
745
  kind: "ServiceFabricVolumeDisk";
738
746
  /** Volume size */
739
747
  sizeDisk: SizeTypes;
740
- };
748
+ }
741
749
 
742
750
  /** Describes the average load trigger used for auto scaling. */
743
- export type AverageLoadScalingTrigger = AutoScalingTrigger & {
751
+ export interface AverageLoadScalingTrigger extends AutoScalingTrigger {
744
752
  /** Polymorphic discriminator, which specifies the different types this object can be */
745
753
  kind: "AverageLoad";
746
754
  /** Description of the metric that is used for scaling. */
@@ -751,10 +759,10 @@ export type AverageLoadScalingTrigger = AutoScalingTrigger & {
751
759
  upperLoadThreshold: number;
752
760
  /** Scale interval that indicates how often will this trigger be checked. */
753
761
  scaleIntervalInSeconds: number;
754
- };
762
+ }
755
763
 
756
764
  /** Describes the horizontal auto scaling mechanism that adds or removes replicas (containers or container groups). */
757
- export type AddRemoveReplicaScalingMechanism = AutoScalingMechanism & {
765
+ export interface AddRemoveReplicaScalingMechanism extends AutoScalingMechanism {
758
766
  /** Polymorphic discriminator, which specifies the different types this object can be */
759
767
  kind: "AddRemoveReplica";
760
768
  /** Minimum number of containers (scale down won't be performed below this number). */
@@ -763,10 +771,10 @@ export type AddRemoveReplicaScalingMechanism = AutoScalingMechanism & {
763
771
  maxCount: number;
764
772
  /** Each time auto scaling is performed, this number of containers will be added or removed. */
765
773
  scaleIncrement: number;
766
- };
774
+ }
767
775
 
768
776
  /** This type describes a service resource. */
769
- export type ServiceResourceDescription = ManagedProxyResource & {
777
+ export interface ServiceResourceDescription extends ManagedProxyResource {
770
778
  /**
771
779
  * State of the resource.
772
780
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -806,10 +814,11 @@ export type ServiceResourceDescription = ManagedProxyResource & {
806
814
  * NOTE: This property will not be serialized. It can only be populated by the server.
807
815
  */
808
816
  readonly unhealthyEvaluation?: string;
809
- };
817
+ }
810
818
 
811
819
  /** Diagnostics settings for Geneva. */
812
- export type AzureInternalMonitoringPipelineSinkDescription = DiagnosticsSinkProperties & {
820
+ export interface AzureInternalMonitoringPipelineSinkDescription
821
+ extends DiagnosticsSinkProperties {
813
822
  /** Polymorphic discriminator, which specifies the different types this object can be */
814
823
  kind: "AzureInternalMonitoringPipeline";
815
824
  /** Azure Internal monitoring pipeline account. */
@@ -822,18 +831,20 @@ export type AzureInternalMonitoringPipelineSinkDescription = DiagnosticsSinkProp
822
831
  fluentdConfigUrl?: any;
823
832
  /** Azure Internal monitoring pipeline autokey associated with the certificate. */
824
833
  autoKeyConfigUrl?: string;
825
- };
834
+ }
826
835
 
827
836
  /** Describes the resource that is used for triggering auto scaling. */
828
- export type AutoScalingResourceMetric = AutoScalingMetric & {
837
+ export interface AutoScalingResourceMetric extends AutoScalingMetric {
829
838
  /** Polymorphic discriminator, which specifies the different types this object can be */
830
839
  kind: "Resource";
831
840
  /** Name of the resource. */
832
841
  name: AutoScalingResourceMetricName;
833
- };
842
+ }
834
843
 
835
844
  /** Describes the properties of a secret resource. */
836
- export type SecretResourceProperties = SecretResourcePropertiesBase & {
845
+ export interface SecretResourceProperties extends SecretResourcePropertiesBase {
846
+ /** Polymorphic discriminator, which specifies the different types this object can be */
847
+ kind: "SecretResourceProperties" | "inlinedValue";
837
848
  /** User readable description of the secret. */
838
849
  description?: string;
839
850
  /**
@@ -848,10 +859,13 @@ export type SecretResourceProperties = SecretResourcePropertiesBase & {
848
859
  readonly statusDetails?: string;
849
860
  /** The type of the content stored in the secret value. The value of this property is opaque to Service Fabric. Once set, the value of this property cannot be changed. */
850
861
  contentType?: string;
851
- };
862
+ }
852
863
 
853
864
  /** Describes properties of a network resource. */
854
- export type NetworkResourceProperties = NetworkResourcePropertiesBase & {
865
+ export interface NetworkResourceProperties
866
+ extends NetworkResourcePropertiesBase {
867
+ /** Polymorphic discriminator, which specifies the different types this object can be */
868
+ kind: "NetworkResourceProperties" | "Local";
855
869
  /** User readable description of the network. */
856
870
  description?: string;
857
871
  /**
@@ -864,16 +878,16 @@ export type NetworkResourceProperties = NetworkResourcePropertiesBase & {
864
878
  * NOTE: This property will not be serialized. It can only be populated by the server.
865
879
  */
866
880
  readonly statusDetails?: string;
867
- };
881
+ }
868
882
 
869
883
  /** This type describes a secret resource. */
870
- export type SecretResourceDescription = TrackedResource & {
884
+ export interface SecretResourceDescription extends TrackedResource {
871
885
  /** Describes the properties of a secret resource. */
872
886
  properties: SecretResourcePropertiesUnion;
873
- };
887
+ }
874
888
 
875
889
  /** This type describes a value of a secret resource. The name of this resource is the version identifier corresponding to this secret value. */
876
- export type SecretValueResourceDescription = TrackedResource & {
890
+ export interface SecretValueResourceDescription extends TrackedResource {
877
891
  /**
878
892
  * State of the resource.
879
893
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -881,10 +895,10 @@ export type SecretValueResourceDescription = TrackedResource & {
881
895
  readonly provisioningState?: string;
882
896
  /** The actual value of the secret. */
883
897
  value?: string;
884
- };
898
+ }
885
899
 
886
900
  /** This type describes a volume resource. */
887
- export type VolumeResourceDescription = TrackedResource & {
901
+ export interface VolumeResourceDescription extends TrackedResource {
888
902
  /**
889
903
  * State of the resource.
890
904
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -906,16 +920,16 @@ export type VolumeResourceDescription = TrackedResource & {
906
920
  provider: VolumeProvider;
907
921
  /** This type describes a volume provided by an Azure Files file share. */
908
922
  azureFileParameters?: VolumeProviderParametersAzureFile;
909
- };
923
+ }
910
924
 
911
925
  /** This type describes a network resource. */
912
- export type NetworkResourceDescription = TrackedResource & {
926
+ export interface NetworkResourceDescription extends TrackedResource {
913
927
  /** Describes properties of a network resource. */
914
928
  properties: NetworkResourcePropertiesUnion;
915
- };
929
+ }
916
930
 
917
931
  /** This type describes a gateway resource. */
918
- export type GatewayResourceDescription = TrackedResource & {
932
+ export interface GatewayResourceDescription extends TrackedResource {
919
933
  /**
920
934
  * State of the resource.
921
935
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -946,10 +960,10 @@ export type GatewayResourceDescription = TrackedResource & {
946
960
  * NOTE: This property will not be serialized. It can only be populated by the server.
947
961
  */
948
962
  readonly ipAddress?: string;
949
- };
963
+ }
950
964
 
951
965
  /** This type describes an application resource. */
952
- export type ApplicationResourceDescription = TrackedResource & {
966
+ export interface ApplicationResourceDescription extends TrackedResource {
953
967
  /**
954
968
  * State of the resource.
955
969
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -988,16 +1002,23 @@ export type ApplicationResourceDescription = TrackedResource & {
988
1002
  * NOTE: This property will not be serialized. It can only be populated by the server.
989
1003
  */
990
1004
  readonly unhealthyEvaluation?: string;
991
- };
1005
+ }
992
1006
 
993
1007
  /** Describes the properties of a secret resource whose value is provided explicitly as plaintext. The secret resource may have multiple values, each being uniquely versioned. The secret value of each version is stored encrypted, and delivered as plaintext into the context of applications referencing it. */
994
- export type InlinedValueSecretResourceProperties = SecretResourceProperties;
1008
+ export interface InlinedValueSecretResourceProperties
1009
+ extends SecretResourceProperties {
1010
+ /** Polymorphic discriminator, which specifies the different types this object can be */
1011
+ kind: "inlinedValue";
1012
+ }
995
1013
 
996
1014
  /** Information about a Service Fabric container network local to a single Service Fabric cluster. */
997
- export type LocalNetworkResourceProperties = NetworkResourceProperties & {
1015
+ export interface LocalNetworkResourceProperties
1016
+ extends NetworkResourceProperties {
1017
+ /** Polymorphic discriminator, which specifies the different types this object can be */
1018
+ kind: "Local";
998
1019
  /** Address space for the local container network. */
999
1020
  networkAddressPrefix?: string;
1000
- };
1021
+ }
1001
1022
 
1002
1023
  /** Known values of {@link ResourceStatus} that the service accepts. */
1003
1024
  export enum KnownResourceStatus {
@@ -1076,6 +1097,7 @@ export type NetworkKind = string;
1076
1097
 
1077
1098
  /** Known values of {@link PathMatchType} that the service accepts. */
1078
1099
  export enum KnownPathMatchType {
1100
+ /** Prefix */
1079
1101
  Prefix = "prefix"
1080
1102
  }
1081
1103
 
@@ -1090,6 +1112,7 @@ export type PathMatchType = string;
1090
1112
 
1091
1113
  /** Known values of {@link HeaderMatchType} that the service accepts. */
1092
1114
  export enum KnownHeaderMatchType {
1115
+ /** Exact */
1093
1116
  Exact = "exact"
1094
1117
  }
1095
1118
 
@@ -1212,8 +1235,11 @@ export type DiagnosticsSinkKind = string;
1212
1235
 
1213
1236
  /** Known values of {@link SizeTypes} that the service accepts. */
1214
1237
  export enum KnownSizeTypes {
1238
+ /** Small */
1215
1239
  Small = "Small",
1240
+ /** Medium */
1216
1241
  Medium = "Medium",
1242
+ /** Large */
1217
1243
  Large = "Large"
1218
1244
  }
1219
1245
 
@@ -2311,7 +2311,7 @@ export const SecretResourceProperties: coreClient.CompositeMapper = {
2311
2311
  type: {
2312
2312
  name: "Composite",
2313
2313
  className: "SecretResourceProperties",
2314
- uberParent: "ProvisionedResourceProperties",
2314
+ uberParent: "SecretResourcePropertiesBase",
2315
2315
  polymorphicDiscriminator: {
2316
2316
  serializedName: "kind",
2317
2317
  clientName: "kind"
@@ -2353,7 +2353,7 @@ export const NetworkResourceProperties: coreClient.CompositeMapper = {
2353
2353
  type: {
2354
2354
  name: "Composite",
2355
2355
  className: "NetworkResourceProperties",
2356
- uberParent: "ProvisionedResourceProperties",
2356
+ uberParent: "NetworkResourcePropertiesBase",
2357
2357
  polymorphicDiscriminator: {
2358
2358
  serializedName: "kind",
2359
2359
  clientName: "kind"
@@ -2667,9 +2667,9 @@ export const InlinedValueSecretResourceProperties: coreClient.CompositeMapper =
2667
2667
  type: {
2668
2668
  name: "Composite",
2669
2669
  className: "InlinedValueSecretResourceProperties",
2670
- uberParent: "ProvisionedResourceProperties",
2670
+ uberParent: "SecretResourceProperties",
2671
2671
  polymorphicDiscriminator:
2672
- ProvisionedResourceProperties.type.polymorphicDiscriminator,
2672
+ SecretResourceProperties.type.polymorphicDiscriminator,
2673
2673
  modelProperties: {
2674
2674
  ...SecretResourceProperties.type.modelProperties
2675
2675
  }
@@ -2681,9 +2681,9 @@ export const LocalNetworkResourceProperties: coreClient.CompositeMapper = {
2681
2681
  type: {
2682
2682
  name: "Composite",
2683
2683
  className: "LocalNetworkResourceProperties",
2684
- uberParent: "ProvisionedResourceProperties",
2684
+ uberParent: "NetworkResourceProperties",
2685
2685
  polymorphicDiscriminator:
2686
- ProvisionedResourceProperties.type.polymorphicDiscriminator,
2686
+ NetworkResourceProperties.type.polymorphicDiscriminator,
2687
2687
  modelProperties: {
2688
2688
  ...NetworkResourceProperties.type.modelProperties,
2689
2689
  networkAddressPrefix: {
@@ -2709,8 +2709,8 @@ export let discriminators = {
2709
2709
  "AutoScalingMechanism.AddRemoveReplica": AddRemoveReplicaScalingMechanism,
2710
2710
  "DiagnosticsSinkProperties.AzureInternalMonitoringPipeline": AzureInternalMonitoringPipelineSinkDescription,
2711
2711
  "AutoScalingMetric.Resource": AutoScalingResourceMetric,
2712
- "ProvisionedResourceProperties.SecretResourceProperties": SecretResourceProperties,
2713
- "ProvisionedResourceProperties.NetworkResourceProperties": NetworkResourceProperties,
2714
- "ProvisionedResourceProperties.inlinedValue": InlinedValueSecretResourceProperties,
2715
- "ProvisionedResourceProperties.Local": LocalNetworkResourceProperties
2712
+ "SecretResourcePropertiesBase.SecretResourceProperties": SecretResourceProperties,
2713
+ "NetworkResourcePropertiesBase.NetworkResourceProperties": NetworkResourceProperties,
2714
+ "SecretResourceProperties.inlinedValue": InlinedValueSecretResourceProperties,
2715
+ "NetworkResourceProperties.Local": LocalNetworkResourceProperties
2716
2716
  };
@@ -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 { Application } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -16,15 +17,15 @@ import {
16
17
  ApplicationResourceDescription,
17
18
  ApplicationListByResourceGroupNextOptionalParams,
18
19
  ApplicationListByResourceGroupOptionalParams,
20
+ ApplicationListByResourceGroupResponse,
19
21
  ApplicationListBySubscriptionNextOptionalParams,
20
22
  ApplicationListBySubscriptionOptionalParams,
23
+ ApplicationListBySubscriptionResponse,
21
24
  ApplicationCreateOptionalParams,
22
25
  ApplicationCreateResponse,
23
26
  ApplicationGetOptionalParams,
24
27
  ApplicationGetResponse,
25
28
  ApplicationDeleteOptionalParams,
26
- ApplicationListByResourceGroupResponse,
27
- ApplicationListBySubscriptionResponse,
28
29
  ApplicationListByResourceGroupNextResponse,
29
30
  ApplicationListBySubscriptionNextResponse
30
31
  } from "../models";
@@ -60,19 +61,33 @@ export class ApplicationImpl implements Application {
60
61
  [Symbol.asyncIterator]() {
61
62
  return this;
62
63
  },
63
- byPage: () => {
64
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
64
+ byPage: (settings?: PageSettings) => {
65
+ if (settings?.maxPageSize) {
66
+ throw new Error("maxPageSize is not supported by this operation.");
67
+ }
68
+ return this.listByResourceGroupPagingPage(
69
+ resourceGroupName,
70
+ options,
71
+ settings
72
+ );
65
73
  }
66
74
  };
67
75
  }
68
76
 
69
77
  private async *listByResourceGroupPagingPage(
70
78
  resourceGroupName: string,
71
- options?: ApplicationListByResourceGroupOptionalParams
79
+ options?: ApplicationListByResourceGroupOptionalParams,
80
+ settings?: PageSettings
72
81
  ): AsyncIterableIterator<ApplicationResourceDescription[]> {
73
- let result = await this._listByResourceGroup(resourceGroupName, options);
74
- yield result.value || [];
75
- let continuationToken = result.nextLink;
82
+ let result: ApplicationListByResourceGroupResponse;
83
+ let continuationToken = settings?.continuationToken;
84
+ if (!continuationToken) {
85
+ result = await this._listByResourceGroup(resourceGroupName, options);
86
+ let page = result.value || [];
87
+ continuationToken = result.nextLink;
88
+ setContinuationToken(page, continuationToken);
89
+ yield page;
90
+ }
76
91
  while (continuationToken) {
77
92
  result = await this._listByResourceGroupNext(
78
93
  resourceGroupName,
@@ -80,7 +95,9 @@ export class ApplicationImpl implements Application {
80
95
  options
81
96
  );
82
97
  continuationToken = result.nextLink;
83
- yield result.value || [];
98
+ let page = result.value || [];
99
+ setContinuationToken(page, continuationToken);
100
+ yield page;
84
101
  }
85
102
  }
86
103
 
@@ -112,22 +129,34 @@ export class ApplicationImpl implements Application {
112
129
  [Symbol.asyncIterator]() {
113
130
  return this;
114
131
  },
115
- byPage: () => {
116
- return this.listBySubscriptionPagingPage(options);
132
+ byPage: (settings?: PageSettings) => {
133
+ if (settings?.maxPageSize) {
134
+ throw new Error("maxPageSize is not supported by this operation.");
135
+ }
136
+ return this.listBySubscriptionPagingPage(options, settings);
117
137
  }
118
138
  };
119
139
  }
120
140
 
121
141
  private async *listBySubscriptionPagingPage(
122
- options?: ApplicationListBySubscriptionOptionalParams
142
+ options?: ApplicationListBySubscriptionOptionalParams,
143
+ settings?: PageSettings
123
144
  ): AsyncIterableIterator<ApplicationResourceDescription[]> {
124
- let result = await this._listBySubscription(options);
125
- yield result.value || [];
126
- let continuationToken = result.nextLink;
145
+ let result: ApplicationListBySubscriptionResponse;
146
+ let continuationToken = settings?.continuationToken;
147
+ if (!continuationToken) {
148
+ result = await this._listBySubscription(options);
149
+ let page = result.value || [];
150
+ continuationToken = result.nextLink;
151
+ setContinuationToken(page, continuationToken);
152
+ yield page;
153
+ }
127
154
  while (continuationToken) {
128
155
  result = await this._listBySubscriptionNext(continuationToken, options);
129
156
  continuationToken = result.nextLink;
130
- yield result.value || [];
157
+ let page = result.value || [];
158
+ setContinuationToken(page, continuationToken);
159
+ yield page;
131
160
  }
132
161
  }
133
162
 
@@ -386,7 +415,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
386
415
  bodyMapper: Mappers.ErrorModel
387
416
  }
388
417
  },
389
- queryParameters: [Parameters.apiVersion],
390
418
  urlParameters: [
391
419
  Parameters.$host,
392
420
  Parameters.nextLink,
@@ -407,7 +435,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
407
435
  bodyMapper: Mappers.ErrorModel
408
436
  }
409
437
  },
410
- queryParameters: [Parameters.apiVersion],
411
438
  urlParameters: [
412
439
  Parameters.$host,
413
440
  Parameters.nextLink,
@@ -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 { Gateway } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -16,15 +17,15 @@ import {
16
17
  GatewayResourceDescription,
17
18
  GatewayListByResourceGroupNextOptionalParams,
18
19
  GatewayListByResourceGroupOptionalParams,
20
+ GatewayListByResourceGroupResponse,
19
21
  GatewayListBySubscriptionNextOptionalParams,
20
22
  GatewayListBySubscriptionOptionalParams,
23
+ GatewayListBySubscriptionResponse,
21
24
  GatewayCreateOptionalParams,
22
25
  GatewayCreateResponse,
23
26
  GatewayGetOptionalParams,
24
27
  GatewayGetResponse,
25
28
  GatewayDeleteOptionalParams,
26
- GatewayListByResourceGroupResponse,
27
- GatewayListBySubscriptionResponse,
28
29
  GatewayListByResourceGroupNextResponse,
29
30
  GatewayListBySubscriptionNextResponse
30
31
  } from "../models";
@@ -60,19 +61,33 @@ export class GatewayImpl implements Gateway {
60
61
  [Symbol.asyncIterator]() {
61
62
  return this;
62
63
  },
63
- byPage: () => {
64
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
64
+ byPage: (settings?: PageSettings) => {
65
+ if (settings?.maxPageSize) {
66
+ throw new Error("maxPageSize is not supported by this operation.");
67
+ }
68
+ return this.listByResourceGroupPagingPage(
69
+ resourceGroupName,
70
+ options,
71
+ settings
72
+ );
65
73
  }
66
74
  };
67
75
  }
68
76
 
69
77
  private async *listByResourceGroupPagingPage(
70
78
  resourceGroupName: string,
71
- options?: GatewayListByResourceGroupOptionalParams
79
+ options?: GatewayListByResourceGroupOptionalParams,
80
+ settings?: PageSettings
72
81
  ): AsyncIterableIterator<GatewayResourceDescription[]> {
73
- let result = await this._listByResourceGroup(resourceGroupName, options);
74
- yield result.value || [];
75
- let continuationToken = result.nextLink;
82
+ let result: GatewayListByResourceGroupResponse;
83
+ let continuationToken = settings?.continuationToken;
84
+ if (!continuationToken) {
85
+ result = await this._listByResourceGroup(resourceGroupName, options);
86
+ let page = result.value || [];
87
+ continuationToken = result.nextLink;
88
+ setContinuationToken(page, continuationToken);
89
+ yield page;
90
+ }
76
91
  while (continuationToken) {
77
92
  result = await this._listByResourceGroupNext(
78
93
  resourceGroupName,
@@ -80,7 +95,9 @@ export class GatewayImpl implements Gateway {
80
95
  options
81
96
  );
82
97
  continuationToken = result.nextLink;
83
- yield result.value || [];
98
+ let page = result.value || [];
99
+ setContinuationToken(page, continuationToken);
100
+ yield page;
84
101
  }
85
102
  }
86
103
 
@@ -112,22 +129,34 @@ export class GatewayImpl implements Gateway {
112
129
  [Symbol.asyncIterator]() {
113
130
  return this;
114
131
  },
115
- byPage: () => {
116
- return this.listBySubscriptionPagingPage(options);
132
+ byPage: (settings?: PageSettings) => {
133
+ if (settings?.maxPageSize) {
134
+ throw new Error("maxPageSize is not supported by this operation.");
135
+ }
136
+ return this.listBySubscriptionPagingPage(options, settings);
117
137
  }
118
138
  };
119
139
  }
120
140
 
121
141
  private async *listBySubscriptionPagingPage(
122
- options?: GatewayListBySubscriptionOptionalParams
142
+ options?: GatewayListBySubscriptionOptionalParams,
143
+ settings?: PageSettings
123
144
  ): AsyncIterableIterator<GatewayResourceDescription[]> {
124
- let result = await this._listBySubscription(options);
125
- yield result.value || [];
126
- let continuationToken = result.nextLink;
145
+ let result: GatewayListBySubscriptionResponse;
146
+ let continuationToken = settings?.continuationToken;
147
+ if (!continuationToken) {
148
+ result = await this._listBySubscription(options);
149
+ let page = result.value || [];
150
+ continuationToken = result.nextLink;
151
+ setContinuationToken(page, continuationToken);
152
+ yield page;
153
+ }
127
154
  while (continuationToken) {
128
155
  result = await this._listBySubscriptionNext(continuationToken, options);
129
156
  continuationToken = result.nextLink;
130
- yield result.value || [];
157
+ let page = result.value || [];
158
+ setContinuationToken(page, continuationToken);
159
+ yield page;
131
160
  }
132
161
  }
133
162
 
@@ -387,7 +416,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
387
416
  bodyMapper: Mappers.ErrorModel
388
417
  }
389
418
  },
390
- queryParameters: [Parameters.apiVersion],
391
419
  urlParameters: [
392
420
  Parameters.$host,
393
421
  Parameters.nextLink,
@@ -408,7 +436,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
408
436
  bodyMapper: Mappers.ErrorModel
409
437
  }
410
438
  },
411
- queryParameters: [Parameters.apiVersion],
412
439
  urlParameters: [
413
440
  Parameters.$host,
414
441
  Parameters.nextLink,