@azure/arm-timeseriesinsights 2.0.0-alpha.20220421.1 → 2.1.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.
- package/CHANGELOG.md +37 -0
- package/README.md +12 -1
- package/dist/index.js +650 -62
- 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/samples-dev/accessPoliciesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessPoliciesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessPoliciesCreateOrUpdateSample.js +37 -0
- package/dist-esm/samples-dev/accessPoliciesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/accessPoliciesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessPoliciesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessPoliciesDeleteSample.js +32 -0
- package/dist-esm/samples-dev/accessPoliciesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/accessPoliciesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessPoliciesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessPoliciesGetSample.js +32 -0
- package/dist-esm/samples-dev/accessPoliciesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.js +31 -0
- package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.js.map +1 -0
- package/dist-esm/samples-dev/accessPoliciesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessPoliciesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessPoliciesUpdateSample.js +35 -0
- package/dist-esm/samples-dev/accessPoliciesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.js +38 -0
- package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/environmentsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/environmentsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/environmentsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/environmentsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/environmentsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/environmentsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/environmentsGetSample.js +31 -0
- package/dist-esm/samples-dev/environmentsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/environmentsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/environmentsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/environmentsListByResourceGroupSample.js +30 -0
- package/dist-esm/samples-dev/environmentsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/environmentsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/environmentsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/environmentsListBySubscriptionSample.js +29 -0
- package/dist-esm/samples-dev/environmentsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/environmentsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/environmentsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/environmentsUpdateSample.js +35 -0
- package/dist-esm/samples-dev/environmentsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.js +80 -0
- package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/eventSourcesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventSourcesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventSourcesDeleteSample.js +32 -0
- package/dist-esm/samples-dev/eventSourcesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/eventSourcesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventSourcesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventSourcesGetSample.js +32 -0
- package/dist-esm/samples-dev/eventSourcesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.js +31 -0
- package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.js.map +1 -0
- package/dist-esm/samples-dev/eventSourcesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventSourcesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventSourcesUpdateSample.js +36 -0
- package/dist-esm/samples-dev/eventSourcesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +38 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.js +31 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js +45 -0
- package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js.map +1 -0
- package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.js +39 -0
- package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/referenceDataSetsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/referenceDataSetsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/referenceDataSetsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/referenceDataSetsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/referenceDataSetsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/referenceDataSetsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/referenceDataSetsGetSample.js +32 -0
- package/dist-esm/samples-dev/referenceDataSetsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.d.ts +2 -0
- package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.js +31 -0
- package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.js.map +1 -0
- package/dist-esm/samples-dev/referenceDataSetsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/referenceDataSetsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/referenceDataSetsUpdateSample.js +35 -0
- package/dist-esm/samples-dev/referenceDataSetsUpdateSample.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +152 -4
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +21 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +6 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +201 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +16 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/environments.d.ts.map +1 -1
- package/dist-esm/src/operations/environments.js +6 -2
- package/dist-esm/src/operations/environments.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +52 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +177 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +32 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +101 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/timeSeriesInsightsClient.d.ts +3 -1
- package/dist-esm/src/timeSeriesInsightsClient.d.ts.map +1 -1
- package/dist-esm/src/timeSeriesInsightsClient.js +24 -4
- package/dist-esm/src/timeSeriesInsightsClient.js.map +1 -1
- package/package.json +19 -11
- package/review/arm-timeseriesinsights.api.md +131 -0
- package/rollup.config.js +6 -72
- package/src/models/index.ts +173 -4
- package/src/models/mappers.ts +224 -0
- package/src/models/parameters.ts +19 -2
- package/src/operations/environments.ts +6 -2
- package/src/operations/index.ts +2 -0
- package/src/operations/privateEndpointConnections.ts +234 -0
- package/src/operations/privateLinkResources.ts +137 -0
- package/src/operationsInterfaces/index.ts +2 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +81 -0
- package/src/operationsInterfaces/privateLinkResources.ts +30 -0
- package/src/timeSeriesInsightsClient.ts +38 -5
- package/tsconfig.json +19 -5
- package/types/arm-timeseriesinsights.d.ts +230 -4
- package/LICENSE.txt +0 -21
package/src/models/mappers.ts
CHANGED
@@ -739,6 +739,91 @@ export const AccessPolicyListResponse: coreClient.CompositeMapper = {
|
|
739
739
|
}
|
740
740
|
};
|
741
741
|
|
742
|
+
export const PrivateEndpoint: coreClient.CompositeMapper = {
|
743
|
+
type: {
|
744
|
+
name: "Composite",
|
745
|
+
className: "PrivateEndpoint",
|
746
|
+
modelProperties: {
|
747
|
+
id: {
|
748
|
+
serializedName: "id",
|
749
|
+
readOnly: true,
|
750
|
+
type: {
|
751
|
+
name: "String"
|
752
|
+
}
|
753
|
+
}
|
754
|
+
}
|
755
|
+
}
|
756
|
+
};
|
757
|
+
|
758
|
+
export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = {
|
759
|
+
type: {
|
760
|
+
name: "Composite",
|
761
|
+
className: "PrivateLinkServiceConnectionState",
|
762
|
+
modelProperties: {
|
763
|
+
status: {
|
764
|
+
serializedName: "status",
|
765
|
+
type: {
|
766
|
+
name: "String"
|
767
|
+
}
|
768
|
+
},
|
769
|
+
description: {
|
770
|
+
serializedName: "description",
|
771
|
+
type: {
|
772
|
+
name: "String"
|
773
|
+
}
|
774
|
+
},
|
775
|
+
actionsRequired: {
|
776
|
+
serializedName: "actionsRequired",
|
777
|
+
type: {
|
778
|
+
name: "String"
|
779
|
+
}
|
780
|
+
}
|
781
|
+
}
|
782
|
+
}
|
783
|
+
};
|
784
|
+
|
785
|
+
export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = {
|
786
|
+
type: {
|
787
|
+
name: "Composite",
|
788
|
+
className: "PrivateEndpointConnectionListResult",
|
789
|
+
modelProperties: {
|
790
|
+
value: {
|
791
|
+
serializedName: "value",
|
792
|
+
type: {
|
793
|
+
name: "Sequence",
|
794
|
+
element: {
|
795
|
+
type: {
|
796
|
+
name: "Composite",
|
797
|
+
className: "PrivateEndpointConnection"
|
798
|
+
}
|
799
|
+
}
|
800
|
+
}
|
801
|
+
}
|
802
|
+
}
|
803
|
+
}
|
804
|
+
};
|
805
|
+
|
806
|
+
export const PrivateLinkResourceListResult: coreClient.CompositeMapper = {
|
807
|
+
type: {
|
808
|
+
name: "Composite",
|
809
|
+
className: "PrivateLinkResourceListResult",
|
810
|
+
modelProperties: {
|
811
|
+
value: {
|
812
|
+
serializedName: "value",
|
813
|
+
type: {
|
814
|
+
name: "Sequence",
|
815
|
+
element: {
|
816
|
+
type: {
|
817
|
+
name: "Composite",
|
818
|
+
className: "PrivateLinkResource"
|
819
|
+
}
|
820
|
+
}
|
821
|
+
}
|
822
|
+
}
|
823
|
+
}
|
824
|
+
}
|
825
|
+
};
|
826
|
+
|
742
827
|
export const WarmStoreConfigurationProperties: coreClient.CompositeMapper = {
|
743
828
|
type: {
|
744
829
|
name: "Composite",
|
@@ -1127,6 +1212,88 @@ export const AccessPolicyResource: coreClient.CompositeMapper = {
|
|
1127
1212
|
}
|
1128
1213
|
};
|
1129
1214
|
|
1215
|
+
export const PrivateEndpointConnection: coreClient.CompositeMapper = {
|
1216
|
+
type: {
|
1217
|
+
name: "Composite",
|
1218
|
+
className: "PrivateEndpointConnection",
|
1219
|
+
modelProperties: {
|
1220
|
+
...Resource.type.modelProperties,
|
1221
|
+
provisioningState: {
|
1222
|
+
serializedName: "properties.provisioningState",
|
1223
|
+
readOnly: true,
|
1224
|
+
type: {
|
1225
|
+
name: "String"
|
1226
|
+
}
|
1227
|
+
},
|
1228
|
+
privateEndpoint: {
|
1229
|
+
serializedName: "properties.privateEndpoint",
|
1230
|
+
type: {
|
1231
|
+
name: "Composite",
|
1232
|
+
className: "PrivateEndpoint"
|
1233
|
+
}
|
1234
|
+
},
|
1235
|
+
groupIds: {
|
1236
|
+
serializedName: "properties.groupIds",
|
1237
|
+
type: {
|
1238
|
+
name: "Sequence",
|
1239
|
+
element: {
|
1240
|
+
type: {
|
1241
|
+
name: "String"
|
1242
|
+
}
|
1243
|
+
}
|
1244
|
+
}
|
1245
|
+
},
|
1246
|
+
privateLinkServiceConnectionState: {
|
1247
|
+
serializedName: "properties.privateLinkServiceConnectionState",
|
1248
|
+
type: {
|
1249
|
+
name: "Composite",
|
1250
|
+
className: "PrivateLinkServiceConnectionState"
|
1251
|
+
}
|
1252
|
+
}
|
1253
|
+
}
|
1254
|
+
}
|
1255
|
+
};
|
1256
|
+
|
1257
|
+
export const PrivateLinkResource: coreClient.CompositeMapper = {
|
1258
|
+
type: {
|
1259
|
+
name: "Composite",
|
1260
|
+
className: "PrivateLinkResource",
|
1261
|
+
modelProperties: {
|
1262
|
+
...Resource.type.modelProperties,
|
1263
|
+
groupId: {
|
1264
|
+
serializedName: "properties.groupId",
|
1265
|
+
readOnly: true,
|
1266
|
+
type: {
|
1267
|
+
name: "String"
|
1268
|
+
}
|
1269
|
+
},
|
1270
|
+
requiredMembers: {
|
1271
|
+
serializedName: "properties.requiredMembers",
|
1272
|
+
readOnly: true,
|
1273
|
+
type: {
|
1274
|
+
name: "Sequence",
|
1275
|
+
element: {
|
1276
|
+
type: {
|
1277
|
+
name: "String"
|
1278
|
+
}
|
1279
|
+
}
|
1280
|
+
}
|
1281
|
+
},
|
1282
|
+
requiredZoneNames: {
|
1283
|
+
serializedName: "properties.requiredZoneNames",
|
1284
|
+
type: {
|
1285
|
+
name: "Sequence",
|
1286
|
+
element: {
|
1287
|
+
type: {
|
1288
|
+
name: "String"
|
1289
|
+
}
|
1290
|
+
}
|
1291
|
+
}
|
1292
|
+
}
|
1293
|
+
}
|
1294
|
+
}
|
1295
|
+
};
|
1296
|
+
|
1130
1297
|
export const Gen1EnvironmentUpdateParameters: coreClient.CompositeMapper = {
|
1131
1298
|
serializedName: "Gen1",
|
1132
1299
|
type: {
|
@@ -1435,6 +1602,25 @@ export const Gen2EnvironmentCreateOrUpdateParameters: coreClient.CompositeMapper
|
|
1435
1602
|
name: "Composite",
|
1436
1603
|
className: "WarmStoreConfigurationProperties"
|
1437
1604
|
}
|
1605
|
+
},
|
1606
|
+
publicNetworkAccess: {
|
1607
|
+
serializedName: "properties.publicNetworkAccess",
|
1608
|
+
type: {
|
1609
|
+
name: "String"
|
1610
|
+
}
|
1611
|
+
},
|
1612
|
+
privateEndpointConnections: {
|
1613
|
+
serializedName: "properties.privateEndpointConnections",
|
1614
|
+
readOnly: true,
|
1615
|
+
type: {
|
1616
|
+
name: "Sequence",
|
1617
|
+
element: {
|
1618
|
+
type: {
|
1619
|
+
name: "Composite",
|
1620
|
+
className: "PrivateEndpointConnection"
|
1621
|
+
}
|
1622
|
+
}
|
1623
|
+
}
|
1438
1624
|
}
|
1439
1625
|
}
|
1440
1626
|
}
|
@@ -1750,6 +1936,25 @@ export const Gen2EnvironmentResourceProperties: coreClient.CompositeMapper = {
|
|
1750
1936
|
name: "Composite",
|
1751
1937
|
className: "WarmStoreConfigurationProperties"
|
1752
1938
|
}
|
1939
|
+
},
|
1940
|
+
publicNetworkAccess: {
|
1941
|
+
serializedName: "publicNetworkAccess",
|
1942
|
+
type: {
|
1943
|
+
name: "String"
|
1944
|
+
}
|
1945
|
+
},
|
1946
|
+
privateEndpointConnections: {
|
1947
|
+
serializedName: "privateEndpointConnections",
|
1948
|
+
readOnly: true,
|
1949
|
+
type: {
|
1950
|
+
name: "Sequence",
|
1951
|
+
element: {
|
1952
|
+
type: {
|
1953
|
+
name: "Composite",
|
1954
|
+
className: "PrivateEndpointConnection"
|
1955
|
+
}
|
1956
|
+
}
|
1957
|
+
}
|
1753
1958
|
}
|
1754
1959
|
}
|
1755
1960
|
}
|
@@ -1915,6 +2120,25 @@ export const Gen2EnvironmentResource: coreClient.CompositeMapper = {
|
|
1915
2120
|
name: "Composite",
|
1916
2121
|
className: "WarmStoreConfigurationProperties"
|
1917
2122
|
}
|
2123
|
+
},
|
2124
|
+
publicNetworkAccess: {
|
2125
|
+
serializedName: "properties.publicNetworkAccess",
|
2126
|
+
type: {
|
2127
|
+
name: "String"
|
2128
|
+
}
|
2129
|
+
},
|
2130
|
+
privateEndpointConnections: {
|
2131
|
+
serializedName: "properties.privateEndpointConnections",
|
2132
|
+
readOnly: true,
|
2133
|
+
type: {
|
2134
|
+
name: "Sequence",
|
2135
|
+
element: {
|
2136
|
+
type: {
|
2137
|
+
name: "Composite",
|
2138
|
+
className: "PrivateEndpointConnection"
|
2139
|
+
}
|
2140
|
+
}
|
2141
|
+
}
|
1918
2142
|
}
|
1919
2143
|
}
|
1920
2144
|
}
|
package/src/models/parameters.ts
CHANGED
@@ -19,7 +19,8 @@ import {
|
|
19
19
|
ReferenceDataSetCreateOrUpdateParameters as ReferenceDataSetCreateOrUpdateParametersMapper,
|
20
20
|
ReferenceDataSetUpdateParameters as ReferenceDataSetUpdateParametersMapper,
|
21
21
|
AccessPolicyCreateOrUpdateParameters as AccessPolicyCreateOrUpdateParametersMapper,
|
22
|
-
AccessPolicyUpdateParameters as AccessPolicyUpdateParametersMapper
|
22
|
+
AccessPolicyUpdateParameters as AccessPolicyUpdateParametersMapper,
|
23
|
+
PrivateEndpointConnection as PrivateEndpointConnectionMapper
|
23
24
|
} from "../models/mappers";
|
24
25
|
|
25
26
|
export const accept: OperationParameter = {
|
@@ -49,7 +50,7 @@ export const $host: OperationURLParameter = {
|
|
49
50
|
export const apiVersion: OperationQueryParameter = {
|
50
51
|
parameterPath: "apiVersion",
|
51
52
|
mapper: {
|
52
|
-
defaultValue: "
|
53
|
+
defaultValue: "2021-03-31-preview",
|
53
54
|
isConstant: true,
|
54
55
|
serializedName: "api-version",
|
55
56
|
type: {
|
@@ -261,3 +262,19 @@ export const accessPolicyUpdateParameters: OperationParameter = {
|
|
261
262
|
parameterPath: "accessPolicyUpdateParameters",
|
262
263
|
mapper: AccessPolicyUpdateParametersMapper
|
263
264
|
};
|
265
|
+
|
266
|
+
export const privateEndpointConnection: OperationParameter = {
|
267
|
+
parameterPath: "privateEndpointConnection",
|
268
|
+
mapper: PrivateEndpointConnectionMapper
|
269
|
+
};
|
270
|
+
|
271
|
+
export const privateEndpointConnectionName: OperationURLParameter = {
|
272
|
+
parameterPath: "privateEndpointConnectionName",
|
273
|
+
mapper: {
|
274
|
+
serializedName: "privateEndpointConnectionName",
|
275
|
+
required: true,
|
276
|
+
type: {
|
277
|
+
name: "String"
|
278
|
+
}
|
279
|
+
}
|
280
|
+
};
|
@@ -103,10 +103,12 @@ export class EnvironmentsImpl implements Environments {
|
|
103
103
|
{ resourceGroupName, environmentName, parameters, options },
|
104
104
|
createOrUpdateOperationSpec
|
105
105
|
);
|
106
|
-
|
106
|
+
const poller = new LroEngine(lro, {
|
107
107
|
resumeFrom: options?.resumeFrom,
|
108
108
|
intervalInMs: options?.updateIntervalInMs
|
109
109
|
});
|
110
|
+
await poller.poll();
|
111
|
+
return poller;
|
110
112
|
}
|
111
113
|
|
112
114
|
/**
|
@@ -218,10 +220,12 @@ export class EnvironmentsImpl implements Environments {
|
|
218
220
|
},
|
219
221
|
updateOperationSpec
|
220
222
|
);
|
221
|
-
|
223
|
+
const poller = new LroEngine(lro, {
|
222
224
|
resumeFrom: options?.resumeFrom,
|
223
225
|
intervalInMs: options?.updateIntervalInMs
|
224
226
|
});
|
227
|
+
await poller.poll();
|
228
|
+
return poller;
|
225
229
|
}
|
226
230
|
|
227
231
|
/**
|
package/src/operations/index.ts
CHANGED
@@ -0,0 +1,234 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
|
9
|
+
import { PrivateEndpointConnections } from "../operationsInterfaces";
|
10
|
+
import * as coreClient from "@azure/core-client";
|
11
|
+
import * as Mappers from "../models/mappers";
|
12
|
+
import * as Parameters from "../models/parameters";
|
13
|
+
import { TimeSeriesInsightsClient } from "../timeSeriesInsightsClient";
|
14
|
+
import {
|
15
|
+
PrivateEndpointConnection,
|
16
|
+
PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
17
|
+
PrivateEndpointConnectionsCreateOrUpdateResponse,
|
18
|
+
PrivateEndpointConnectionsGetOptionalParams,
|
19
|
+
PrivateEndpointConnectionsGetResponse,
|
20
|
+
PrivateEndpointConnectionsDeleteOptionalParams,
|
21
|
+
PrivateEndpointConnectionsListByEnvironmentOptionalParams,
|
22
|
+
PrivateEndpointConnectionsListByEnvironmentResponse
|
23
|
+
} from "../models";
|
24
|
+
|
25
|
+
/** Class containing PrivateEndpointConnections operations. */
|
26
|
+
export class PrivateEndpointConnectionsImpl
|
27
|
+
implements PrivateEndpointConnections {
|
28
|
+
private readonly client: TimeSeriesInsightsClient;
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
32
|
+
* @param client Reference to the service client
|
33
|
+
*/
|
34
|
+
constructor(client: TimeSeriesInsightsClient) {
|
35
|
+
this.client = client;
|
36
|
+
}
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Updates a Private Endpoint connection of the environment in the given resource group.
|
40
|
+
* @param resourceGroupName Name of an Azure Resource group.
|
41
|
+
* @param environmentName The name of the Time Series Insights environment associated with the
|
42
|
+
* specified resource group.
|
43
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
44
|
+
* Azure resource
|
45
|
+
* @param privateEndpointConnection The definition of the private endpoint connection to update.
|
46
|
+
* @param options The options parameters.
|
47
|
+
*/
|
48
|
+
createOrUpdate(
|
49
|
+
resourceGroupName: string,
|
50
|
+
environmentName: string,
|
51
|
+
privateEndpointConnectionName: string,
|
52
|
+
privateEndpointConnection: PrivateEndpointConnection,
|
53
|
+
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
54
|
+
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {
|
55
|
+
return this.client.sendOperationRequest(
|
56
|
+
{
|
57
|
+
resourceGroupName,
|
58
|
+
environmentName,
|
59
|
+
privateEndpointConnectionName,
|
60
|
+
privateEndpointConnection,
|
61
|
+
options
|
62
|
+
},
|
63
|
+
createOrUpdateOperationSpec
|
64
|
+
);
|
65
|
+
}
|
66
|
+
|
67
|
+
/**
|
68
|
+
* Gets the details of the private endpoint connection of the environment in the given resource group.
|
69
|
+
* @param resourceGroupName Name of an Azure Resource group.
|
70
|
+
* @param environmentName The name of the Time Series Insights environment associated with the
|
71
|
+
* specified resource group.
|
72
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
73
|
+
* Azure resource
|
74
|
+
* @param options The options parameters.
|
75
|
+
*/
|
76
|
+
get(
|
77
|
+
resourceGroupName: string,
|
78
|
+
environmentName: string,
|
79
|
+
privateEndpointConnectionName: string,
|
80
|
+
options?: PrivateEndpointConnectionsGetOptionalParams
|
81
|
+
): Promise<PrivateEndpointConnectionsGetResponse> {
|
82
|
+
return this.client.sendOperationRequest(
|
83
|
+
{
|
84
|
+
resourceGroupName,
|
85
|
+
environmentName,
|
86
|
+
privateEndpointConnectionName,
|
87
|
+
options
|
88
|
+
},
|
89
|
+
getOperationSpec
|
90
|
+
);
|
91
|
+
}
|
92
|
+
|
93
|
+
/**
|
94
|
+
* Disconnects the private endpoint connection and deletes it from the environment.
|
95
|
+
* @param resourceGroupName Name of an Azure Resource group.
|
96
|
+
* @param environmentName The name of the Time Series Insights environment associated with the
|
97
|
+
* specified resource group.
|
98
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
99
|
+
* Azure resource
|
100
|
+
* @param options The options parameters.
|
101
|
+
*/
|
102
|
+
delete(
|
103
|
+
resourceGroupName: string,
|
104
|
+
environmentName: string,
|
105
|
+
privateEndpointConnectionName: string,
|
106
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
107
|
+
): Promise<void> {
|
108
|
+
return this.client.sendOperationRequest(
|
109
|
+
{
|
110
|
+
resourceGroupName,
|
111
|
+
environmentName,
|
112
|
+
privateEndpointConnectionName,
|
113
|
+
options
|
114
|
+
},
|
115
|
+
deleteOperationSpec
|
116
|
+
);
|
117
|
+
}
|
118
|
+
|
119
|
+
/**
|
120
|
+
* Gets a list of all private endpoint connections in the given environment.
|
121
|
+
* @param resourceGroupName Name of an Azure Resource group.
|
122
|
+
* @param environmentName The name of the Time Series Insights environment associated with the
|
123
|
+
* specified resource group.
|
124
|
+
* @param options The options parameters.
|
125
|
+
*/
|
126
|
+
listByEnvironment(
|
127
|
+
resourceGroupName: string,
|
128
|
+
environmentName: string,
|
129
|
+
options?: PrivateEndpointConnectionsListByEnvironmentOptionalParams
|
130
|
+
): Promise<PrivateEndpointConnectionsListByEnvironmentResponse> {
|
131
|
+
return this.client.sendOperationRequest(
|
132
|
+
{ resourceGroupName, environmentName, options },
|
133
|
+
listByEnvironmentOperationSpec
|
134
|
+
);
|
135
|
+
}
|
136
|
+
}
|
137
|
+
// Operation Specifications
|
138
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
139
|
+
|
140
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
141
|
+
path:
|
142
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
143
|
+
httpMethod: "PUT",
|
144
|
+
responses: {
|
145
|
+
200: {
|
146
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
147
|
+
},
|
148
|
+
default: {
|
149
|
+
bodyMapper: Mappers.CloudError
|
150
|
+
}
|
151
|
+
},
|
152
|
+
requestBody: Parameters.privateEndpointConnection,
|
153
|
+
queryParameters: [Parameters.apiVersion],
|
154
|
+
urlParameters: [
|
155
|
+
Parameters.$host,
|
156
|
+
Parameters.subscriptionId,
|
157
|
+
Parameters.resourceGroupName,
|
158
|
+
Parameters.environmentName1,
|
159
|
+
Parameters.privateEndpointConnectionName
|
160
|
+
],
|
161
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
162
|
+
mediaType: "json",
|
163
|
+
serializer
|
164
|
+
};
|
165
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
166
|
+
path:
|
167
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
168
|
+
httpMethod: "GET",
|
169
|
+
responses: {
|
170
|
+
200: {
|
171
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
172
|
+
},
|
173
|
+
default: {
|
174
|
+
bodyMapper: Mappers.CloudError
|
175
|
+
}
|
176
|
+
},
|
177
|
+
queryParameters: [Parameters.apiVersion],
|
178
|
+
urlParameters: [
|
179
|
+
Parameters.$host,
|
180
|
+
Parameters.subscriptionId,
|
181
|
+
Parameters.resourceGroupName,
|
182
|
+
Parameters.environmentName1,
|
183
|
+
Parameters.privateEndpointConnectionName
|
184
|
+
],
|
185
|
+
headerParameters: [Parameters.accept],
|
186
|
+
serializer
|
187
|
+
};
|
188
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
189
|
+
path:
|
190
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
191
|
+
httpMethod: "DELETE",
|
192
|
+
responses: {
|
193
|
+
200: {},
|
194
|
+
204: {},
|
195
|
+
404: {
|
196
|
+
isError: true
|
197
|
+
},
|
198
|
+
default: {
|
199
|
+
bodyMapper: Mappers.CloudError
|
200
|
+
}
|
201
|
+
},
|
202
|
+
queryParameters: [Parameters.apiVersion],
|
203
|
+
urlParameters: [
|
204
|
+
Parameters.$host,
|
205
|
+
Parameters.subscriptionId,
|
206
|
+
Parameters.resourceGroupName,
|
207
|
+
Parameters.environmentName1,
|
208
|
+
Parameters.privateEndpointConnectionName
|
209
|
+
],
|
210
|
+
headerParameters: [Parameters.accept],
|
211
|
+
serializer
|
212
|
+
};
|
213
|
+
const listByEnvironmentOperationSpec: coreClient.OperationSpec = {
|
214
|
+
path:
|
215
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/privateEndpointConnections",
|
216
|
+
httpMethod: "GET",
|
217
|
+
responses: {
|
218
|
+
200: {
|
219
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
220
|
+
},
|
221
|
+
default: {
|
222
|
+
bodyMapper: Mappers.CloudError
|
223
|
+
}
|
224
|
+
},
|
225
|
+
queryParameters: [Parameters.apiVersion],
|
226
|
+
urlParameters: [
|
227
|
+
Parameters.$host,
|
228
|
+
Parameters.subscriptionId,
|
229
|
+
Parameters.resourceGroupName,
|
230
|
+
Parameters.environmentName1
|
231
|
+
],
|
232
|
+
headerParameters: [Parameters.accept],
|
233
|
+
serializer
|
234
|
+
};
|
@@ -0,0 +1,137 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import { PrivateLinkResources } from "../operationsInterfaces";
|
11
|
+
import * as coreClient from "@azure/core-client";
|
12
|
+
import * as Mappers from "../models/mappers";
|
13
|
+
import * as Parameters from "../models/parameters";
|
14
|
+
import { TimeSeriesInsightsClient } from "../timeSeriesInsightsClient";
|
15
|
+
import {
|
16
|
+
PrivateLinkResource,
|
17
|
+
PrivateLinkResourcesListSupportedOptionalParams,
|
18
|
+
PrivateLinkResourcesListSupportedResponse
|
19
|
+
} from "../models";
|
20
|
+
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
22
|
+
/** Class containing PrivateLinkResources operations. */
|
23
|
+
export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
24
|
+
private readonly client: TimeSeriesInsightsClient;
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
28
|
+
* @param client Reference to the service client
|
29
|
+
*/
|
30
|
+
constructor(client: TimeSeriesInsightsClient) {
|
31
|
+
this.client = client;
|
32
|
+
}
|
33
|
+
|
34
|
+
/**
|
35
|
+
* Gets a list of all supported private link resource types for the given environment.
|
36
|
+
* @param resourceGroupName Name of an Azure Resource group.
|
37
|
+
* @param environmentName The name of the Time Series Insights environment associated with the
|
38
|
+
* specified resource group.
|
39
|
+
* @param options The options parameters.
|
40
|
+
*/
|
41
|
+
public listSupported(
|
42
|
+
resourceGroupName: string,
|
43
|
+
environmentName: string,
|
44
|
+
options?: PrivateLinkResourcesListSupportedOptionalParams
|
45
|
+
): PagedAsyncIterableIterator<PrivateLinkResource> {
|
46
|
+
const iter = this.listSupportedPagingAll(
|
47
|
+
resourceGroupName,
|
48
|
+
environmentName,
|
49
|
+
options
|
50
|
+
);
|
51
|
+
return {
|
52
|
+
next() {
|
53
|
+
return iter.next();
|
54
|
+
},
|
55
|
+
[Symbol.asyncIterator]() {
|
56
|
+
return this;
|
57
|
+
},
|
58
|
+
byPage: () => {
|
59
|
+
return this.listSupportedPagingPage(
|
60
|
+
resourceGroupName,
|
61
|
+
environmentName,
|
62
|
+
options
|
63
|
+
);
|
64
|
+
}
|
65
|
+
};
|
66
|
+
}
|
67
|
+
|
68
|
+
private async *listSupportedPagingPage(
|
69
|
+
resourceGroupName: string,
|
70
|
+
environmentName: string,
|
71
|
+
options?: PrivateLinkResourcesListSupportedOptionalParams
|
72
|
+
): AsyncIterableIterator<PrivateLinkResource[]> {
|
73
|
+
let result = await this._listSupported(
|
74
|
+
resourceGroupName,
|
75
|
+
environmentName,
|
76
|
+
options
|
77
|
+
);
|
78
|
+
yield result.value || [];
|
79
|
+
}
|
80
|
+
|
81
|
+
private async *listSupportedPagingAll(
|
82
|
+
resourceGroupName: string,
|
83
|
+
environmentName: string,
|
84
|
+
options?: PrivateLinkResourcesListSupportedOptionalParams
|
85
|
+
): AsyncIterableIterator<PrivateLinkResource> {
|
86
|
+
for await (const page of this.listSupportedPagingPage(
|
87
|
+
resourceGroupName,
|
88
|
+
environmentName,
|
89
|
+
options
|
90
|
+
)) {
|
91
|
+
yield* page;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Gets a list of all supported private link resource types for the given environment.
|
97
|
+
* @param resourceGroupName Name of an Azure Resource group.
|
98
|
+
* @param environmentName The name of the Time Series Insights environment associated with the
|
99
|
+
* specified resource group.
|
100
|
+
* @param options The options parameters.
|
101
|
+
*/
|
102
|
+
private _listSupported(
|
103
|
+
resourceGroupName: string,
|
104
|
+
environmentName: string,
|
105
|
+
options?: PrivateLinkResourcesListSupportedOptionalParams
|
106
|
+
): Promise<PrivateLinkResourcesListSupportedResponse> {
|
107
|
+
return this.client.sendOperationRequest(
|
108
|
+
{ resourceGroupName, environmentName, options },
|
109
|
+
listSupportedOperationSpec
|
110
|
+
);
|
111
|
+
}
|
112
|
+
}
|
113
|
+
// Operation Specifications
|
114
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
115
|
+
|
116
|
+
const listSupportedOperationSpec: coreClient.OperationSpec = {
|
117
|
+
path:
|
118
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/privateLinkResources",
|
119
|
+
httpMethod: "GET",
|
120
|
+
responses: {
|
121
|
+
200: {
|
122
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult
|
123
|
+
},
|
124
|
+
default: {
|
125
|
+
bodyMapper: Mappers.CloudError
|
126
|
+
}
|
127
|
+
},
|
128
|
+
queryParameters: [Parameters.apiVersion],
|
129
|
+
urlParameters: [
|
130
|
+
Parameters.$host,
|
131
|
+
Parameters.subscriptionId,
|
132
|
+
Parameters.resourceGroupName,
|
133
|
+
Parameters.environmentName1
|
134
|
+
],
|
135
|
+
headerParameters: [Parameters.accept],
|
136
|
+
serializer
|
137
|
+
};
|