@azure/arm-batch 7.1.2-alpha.20220427.2 → 7.2.0-alpha.20220720.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +29 -10
  2. package/dist/index.js +400 -106
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/applicationCreateSample.js +1 -1
  7. package/dist-esm/samples-dev/applicationDeleteSample.js +1 -1
  8. package/dist-esm/samples-dev/applicationGetSample.js +1 -1
  9. package/dist-esm/samples-dev/applicationListSample.js +1 -1
  10. package/dist-esm/samples-dev/applicationPackageActivateSample.js +1 -1
  11. package/dist-esm/samples-dev/applicationPackageCreateSample.js +1 -1
  12. package/dist-esm/samples-dev/applicationPackageDeleteSample.js +1 -1
  13. package/dist-esm/samples-dev/applicationPackageGetSample.js +1 -1
  14. package/dist-esm/samples-dev/applicationPackageListSample.js +1 -1
  15. package/dist-esm/samples-dev/applicationUpdateSample.js +1 -1
  16. package/dist-esm/samples-dev/batchAccountCreateSample.js +5 -5
  17. package/dist-esm/samples-dev/batchAccountDeleteSample.js +1 -1
  18. package/dist-esm/samples-dev/batchAccountGetDetectorSample.js +1 -1
  19. package/dist-esm/samples-dev/batchAccountGetKeysSample.js +1 -1
  20. package/dist-esm/samples-dev/batchAccountGetSample.js +2 -2
  21. package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js +1 -1
  22. package/dist-esm/samples-dev/batchAccountListDetectorsSample.js +1 -1
  23. package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +3 -3
  24. package/dist-esm/samples-dev/batchAccountListSample.js +1 -1
  25. package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js +1 -1
  26. package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +1 -1
  27. package/dist-esm/samples-dev/batchAccountUpdateSample.js +1 -1
  28. package/dist-esm/samples-dev/certificateCancelDeletionSample.js +1 -1
  29. package/dist-esm/samples-dev/certificateCreateSample.js +3 -3
  30. package/dist-esm/samples-dev/certificateDeleteSample.js +1 -1
  31. package/dist-esm/samples-dev/certificateGetSample.js +2 -2
  32. package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +2 -2
  33. package/dist-esm/samples-dev/certificateUpdateSample.js +1 -1
  34. package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +2 -2
  35. package/dist-esm/samples-dev/locationGetQuotasSample.js +1 -1
  36. package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js +1 -1
  37. package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +1 -1
  38. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  39. package/dist-esm/samples-dev/poolCreateSample.js +9 -9
  40. package/dist-esm/samples-dev/poolDeleteSample.js +1 -1
  41. package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +1 -1
  42. package/dist-esm/samples-dev/poolGetSample.js +2 -2
  43. package/dist-esm/samples-dev/poolListByBatchAccountSample.js +2 -2
  44. package/dist-esm/samples-dev/poolStopResizeSample.js +1 -1
  45. package/dist-esm/samples-dev/poolUpdateSample.js +4 -4
  46. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.d.ts +2 -0
  47. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.d.ts.map +1 -0
  48. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +32 -0
  49. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -0
  50. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
  51. package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +1 -1
  52. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +1 -1
  53. package/dist-esm/samples-dev/privateLinkResourceGetSample.js +2 -2
  54. package/dist-esm/samples-dev/privateLinkResourceGetSample.js.map +1 -1
  55. package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +1 -1
  56. package/dist-esm/src/batchManagementClient.d.ts +2 -0
  57. package/dist-esm/src/batchManagementClient.d.ts.map +1 -1
  58. package/dist-esm/src/batchManagementClient.js +48 -2
  59. package/dist-esm/src/batchManagementClient.js.map +1 -1
  60. package/dist-esm/src/models/index.d.ts +92 -35
  61. package/dist-esm/src/models/index.d.ts.map +1 -1
  62. package/dist-esm/src/models/mappers.d.ts +4 -0
  63. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  64. package/dist-esm/src/models/mappers.js +146 -2
  65. package/dist-esm/src/models/mappers.js.map +1 -1
  66. package/dist-esm/src/models/parameters.js +1 -1
  67. package/dist-esm/src/operations/batchAccountOperations.d.ts +2 -2
  68. package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
  69. package/dist-esm/src/operations/batchAccountOperations.js +100 -92
  70. package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
  71. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +19 -1
  72. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
  73. package/dist-esm/src/operations/privateEndpointConnectionOperations.js +92 -0
  74. package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
  75. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +1 -1
  76. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -1
  77. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +19 -1
  78. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -1
  79. package/dist-esm/test/batch_examples.d.ts.map +1 -1
  80. package/dist-esm/test/batch_examples.js +20 -22
  81. package/dist-esm/test/batch_examples.js.map +1 -1
  82. package/package.json +10 -7
  83. package/review/arm-batch.api.md +113 -69
  84. package/src/batchManagementClient.ts +60 -2
  85. package/src/models/index.ts +104 -36
  86. package/src/models/mappers.ts +153 -2
  87. package/src/models/parameters.ts +1 -1
  88. package/src/operations/batchAccountOperations.ts +184 -122
  89. package/src/operations/privateEndpointConnectionOperations.ts +134 -0
  90. package/src/operationsInterfaces/batchAccountOperations.ts +9 -4
  91. package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +36 -1
  92. package/types/arm-batch.d.ts +120 -36
@@ -24,6 +24,8 @@ export interface BatchAccountCreateParameters {
24
24
  keyVaultReference?: KeyVaultReference;
25
25
  /** If not specified, the default value is 'enabled'. */
26
26
  publicNetworkAccess?: PublicNetworkAccessType;
27
+ /** The network profile only takes effect when publicNetworkAccess is enabled. */
28
+ networkProfile?: NetworkProfile;
27
29
  /** Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead. */
28
30
  encryption?: EncryptionProperties;
29
31
  /** List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane. This does not affect authentication with the control plane. */
@@ -54,6 +56,30 @@ export interface KeyVaultReference {
54
56
  url: string;
55
57
  }
56
58
 
59
+ /** Network profile for Batch account, which contains network rule settings for each endpoint. */
60
+ export interface NetworkProfile {
61
+ /** Network access profile for batchAccount endpoint (Batch account data plane API). */
62
+ accountAccess?: EndpointAccessProfile;
63
+ /** Network access profile for nodeManagement endpoint (Batch service managing compute nodes for Batch pools). */
64
+ nodeManagementAccess?: EndpointAccessProfile;
65
+ }
66
+
67
+ /** Network access profile for Batch endpoint. */
68
+ export interface EndpointAccessProfile {
69
+ /** Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled. */
70
+ defaultAction: EndpointAccessDefaultAction;
71
+ /** Array of IP ranges to filter client IP address. */
72
+ ipRules?: IPRule[];
73
+ }
74
+
75
+ /** Rule to filter client IP address. */
76
+ export interface IPRule {
77
+ /** Action when client IP address is matched. */
78
+ action: "Allow";
79
+ /** IPv4 address, or IPv4 address range in CIDR format. */
80
+ value: string;
81
+ }
82
+
57
83
  /** Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead. */
58
84
  export interface EncryptionProperties {
59
85
  /** Type of the key source. */
@@ -225,6 +251,10 @@ export interface BatchAccountUpdateParameters {
225
251
  encryption?: EncryptionProperties;
226
252
  /** List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane. This does not affect authentication with the control plane. */
227
253
  allowedAuthenticationModes?: AuthenticationMode[];
254
+ /** If not specified, the default value is 'enabled'. */
255
+ publicNetworkAccess?: PublicNetworkAccessType;
256
+ /** The network profile only takes effect when publicNetworkAccess is enabled. */
257
+ networkProfile?: NetworkProfile;
228
258
  }
229
259
 
230
260
  /** Values returned by the List operation. */
@@ -353,7 +383,7 @@ export interface Operation {
353
383
  display?: OperationDisplay;
354
384
  /** The intended executor of the operation. */
355
385
  origin?: string;
356
- /** Any object */
386
+ /** Properties of the operation. */
357
387
  properties?: Record<string, unknown>;
358
388
  }
359
389
 
@@ -595,7 +625,7 @@ export interface VMExtension {
595
625
  typeHandlerVersion?: string;
596
626
  /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */
597
627
  autoUpgradeMinorVersion?: boolean;
598
- /** Any object */
628
+ /** JSON formatted public settings for the extension. */
599
629
  settings?: Record<string, unknown>;
600
630
  /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */
601
631
  protectedSettings?: Record<string, unknown>;
@@ -1009,26 +1039,34 @@ export interface EndpointDetail {
1009
1039
  }
1010
1040
 
1011
1041
  /** Contains information about the auto-storage account associated with a Batch account. */
1012
- export type AutoStorageProperties = AutoStorageBaseProperties & {
1042
+ export interface AutoStorageProperties extends AutoStorageBaseProperties {
1013
1043
  /** The UTC time at which storage keys were last synchronized with the Batch account. */
1014
1044
  lastKeySync: Date;
1015
- };
1045
+ }
1016
1046
 
1017
1047
  /** Contains information about a private link resource. */
1018
- export type PrivateEndpointConnection = ProxyResource & {
1048
+ export interface PrivateEndpointConnection extends ProxyResource {
1019
1049
  /**
1020
1050
  * The provisioning state of the private endpoint connection.
1021
1051
  * NOTE: This property will not be serialized. It can only be populated by the server.
1022
1052
  */
1023
1053
  readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
1024
- /** The private endpoint of the private endpoint connection. */
1025
- privateEndpoint?: PrivateEndpoint;
1054
+ /**
1055
+ * The private endpoint of the private endpoint connection.
1056
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1057
+ */
1058
+ readonly privateEndpoint?: PrivateEndpoint;
1059
+ /**
1060
+ * The value has one and only one group id.
1061
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1062
+ */
1063
+ readonly groupIds?: string[];
1026
1064
  /** The private link service connection state of the private endpoint connection */
1027
1065
  privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
1028
- };
1066
+ }
1029
1067
 
1030
1068
  /** An application package which represents a particular version of an application. */
1031
- export type ApplicationPackage = ProxyResource & {
1069
+ export interface ApplicationPackage extends ProxyResource {
1032
1070
  /**
1033
1071
  * The current state of the application package.
1034
1072
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1054,20 +1092,20 @@ export type ApplicationPackage = ProxyResource & {
1054
1092
  * NOTE: This property will not be serialized. It can only be populated by the server.
1055
1093
  */
1056
1094
  readonly lastActivationTime?: Date;
1057
- };
1095
+ }
1058
1096
 
1059
1097
  /** Contains information about an application in a Batch account. */
1060
- export type Application = ProxyResource & {
1098
+ export interface Application extends ProxyResource {
1061
1099
  /** The display name for the application. */
1062
1100
  displayName?: string;
1063
1101
  /** A value indicating whether packages within the application may be overwritten using the same version string. */
1064
1102
  allowUpdates?: boolean;
1065
1103
  /** The package to use if a client requests the application but does not specify a version. This property can only be set to the name of an existing package. */
1066
1104
  defaultVersion?: string;
1067
- };
1105
+ }
1068
1106
 
1069
1107
  /** Contains information about a certificate. */
1070
- export type Certificate = ProxyResource & {
1108
+ export interface Certificate extends ProxyResource {
1071
1109
  /** This must match the first portion of the certificate name. Currently required to be 'SHA1'. */
1072
1110
  thumbprintAlgorithm?: string;
1073
1111
  /** This must match the thumbprint from the name. */
@@ -1101,10 +1139,10 @@ export type Certificate = ProxyResource & {
1101
1139
  * NOTE: This property will not be serialized. It can only be populated by the server.
1102
1140
  */
1103
1141
  readonly deleteCertificateError?: DeleteCertificateError;
1104
- };
1142
+ }
1105
1143
 
1106
1144
  /** Contains information about a certificate. */
1107
- export type CertificateCreateOrUpdateParameters = ProxyResource & {
1145
+ export interface CertificateCreateOrUpdateParameters extends ProxyResource {
1108
1146
  /** This must match the first portion of the certificate name. Currently required to be 'SHA1'. */
1109
1147
  thumbprintAlgorithm?: string;
1110
1148
  /** This must match the thumbprint from the name. */
@@ -1115,16 +1153,16 @@ export type CertificateCreateOrUpdateParameters = ProxyResource & {
1115
1153
  data?: string;
1116
1154
  /** This must not be specified if the certificate format is Cer. */
1117
1155
  password?: string;
1118
- };
1156
+ }
1119
1157
 
1120
1158
  /** Contains the information for a detector. */
1121
- export type DetectorResponse = ProxyResource & {
1159
+ export interface DetectorResponse extends ProxyResource {
1122
1160
  /** A base64 encoded string that represents the content of a detector. */
1123
1161
  value?: string;
1124
- };
1162
+ }
1125
1163
 
1126
1164
  /** Contains information about a private link resource. */
1127
- export type PrivateLinkResource = ProxyResource & {
1165
+ export interface PrivateLinkResource extends ProxyResource {
1128
1166
  /**
1129
1167
  * The group id is used to establish the private link connection.
1130
1168
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1140,10 +1178,10 @@ export type PrivateLinkResource = ProxyResource & {
1140
1178
  * NOTE: This property will not be serialized. It can only be populated by the server.
1141
1179
  */
1142
1180
  readonly requiredZoneNames?: string[];
1143
- };
1181
+ }
1144
1182
 
1145
1183
  /** Contains information about a pool. */
1146
- export type Pool = ProxyResource & {
1184
+ export interface Pool extends ProxyResource {
1147
1185
  /** The type of identity used for the Batch Pool. */
1148
1186
  identity?: BatchPoolIdentity;
1149
1187
  /** The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. */
@@ -1226,10 +1264,10 @@ export type Pool = ProxyResource & {
1226
1264
  readonly resizeOperationStatus?: ResizeOperationStatus;
1227
1265
  /** This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. */
1228
1266
  mountConfiguration?: MountConfiguration[];
1229
- };
1267
+ }
1230
1268
 
1231
1269
  /** Contains information about an Azure Batch account. */
1232
- export type BatchAccount = Resource & {
1270
+ export interface BatchAccount extends Resource {
1233
1271
  /** The identity of the Batch account. */
1234
1272
  identity?: BatchAccountIdentity;
1235
1273
  /**
@@ -1237,6 +1275,11 @@ export type BatchAccount = Resource & {
1237
1275
  * NOTE: This property will not be serialized. It can only be populated by the server.
1238
1276
  */
1239
1277
  readonly accountEndpoint?: string;
1278
+ /**
1279
+ * The endpoint used by compute node to connect to the Batch node management service.
1280
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1281
+ */
1282
+ readonly nodeManagementEndpoint?: string;
1240
1283
  /**
1241
1284
  * The provisioned state of the resource
1242
1285
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1252,11 +1295,10 @@ export type BatchAccount = Resource & {
1252
1295
  * NOTE: This property will not be serialized. It can only be populated by the server.
1253
1296
  */
1254
1297
  readonly keyVaultReference?: KeyVaultReference;
1255
- /**
1256
- * If not specified, the default value is 'enabled'.
1257
- * NOTE: This property will not be serialized. It can only be populated by the server.
1258
- */
1259
- readonly publicNetworkAccess?: PublicNetworkAccessType;
1298
+ /** If not specified, the default value is 'enabled'. */
1299
+ publicNetworkAccess?: PublicNetworkAccessType;
1300
+ /** The network profile only takes effect when publicNetworkAccess is enabled. */
1301
+ networkProfile?: NetworkProfile;
1260
1302
  /**
1261
1303
  * List of private endpoint connections associated with the Batch account
1262
1304
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1288,7 +1330,7 @@ export type BatchAccount = Resource & {
1288
1330
  */
1289
1331
  readonly dedicatedCoreQuotaPerVMFamily?: VirtualMachineFamilyCoreQuota[];
1290
1332
  /**
1291
- * Batch is transitioning its core quota system for dedicated cores to be enforced per Virtual Machine family. During this transitional phase, the dedicated core quota per Virtual Machine family may not yet be enforced. If this flag is false, dedicated core quota is enforced via the old dedicatedCoreQuota property on the account and does not consider Virtual Machine family. If this flag is true, dedicated core quota is enforced via the dedicatedCoreQuotaPerVMFamily property on the account, and the old dedicatedCoreQuota does not apply.
1333
+ * If this flag is true, dedicated core quota is enforced via both the dedicatedCoreQuotaPerVMFamily and dedicatedCoreQuota properties on the account. If this flag is false, dedicated core quota is enforced only via the dedicatedCoreQuota property on the account and does not consider Virtual Machine family.
1292
1334
  * NOTE: This property will not be serialized. It can only be populated by the server.
1293
1335
  */
1294
1336
  readonly dedicatedCoreQuotaPerVMFamilyEnforced?: boolean;
@@ -1307,10 +1349,10 @@ export type BatchAccount = Resource & {
1307
1349
  * NOTE: This property will not be serialized. It can only be populated by the server.
1308
1350
  */
1309
1351
  readonly allowedAuthenticationModes?: AuthenticationMode[];
1310
- };
1352
+ }
1311
1353
 
1312
1354
  /** Certificate properties. */
1313
- export type CertificateProperties = CertificateBaseProperties & {
1355
+ export interface CertificateProperties extends CertificateBaseProperties {
1314
1356
  /** NOTE: This property will not be serialized. It can only be populated by the server. */
1315
1357
  readonly provisioningState?: CertificateProvisioningState;
1316
1358
  /**
@@ -1338,15 +1380,16 @@ export type CertificateProperties = CertificateBaseProperties & {
1338
1380
  * NOTE: This property will not be serialized. It can only be populated by the server.
1339
1381
  */
1340
1382
  readonly deleteCertificateError?: DeleteCertificateError;
1341
- };
1383
+ }
1342
1384
 
1343
1385
  /** Certificate properties for create operations */
1344
- export type CertificateCreateOrUpdateProperties = CertificateBaseProperties & {
1386
+ export interface CertificateCreateOrUpdateProperties
1387
+ extends CertificateBaseProperties {
1345
1388
  /** The maximum size is 10KB. */
1346
1389
  data: string;
1347
1390
  /** This must not be specified if the certificate format is Cer. */
1348
1391
  password?: string;
1349
- };
1392
+ }
1350
1393
 
1351
1394
  /** Defines headers for BatchAccount_create operation. */
1352
1395
  export interface BatchAccountCreateHeaders {
@@ -1404,6 +1447,14 @@ export interface PrivateEndpointConnectionUpdateHeaders {
1404
1447
  retryAfter?: number;
1405
1448
  }
1406
1449
 
1450
+ /** Defines headers for PrivateEndpointConnection_delete operation. */
1451
+ export interface PrivateEndpointConnectionDeleteHeaders {
1452
+ /** The URL of the resource used to check the status of the asynchronous operation. */
1453
+ location?: string;
1454
+ /** Suggested delay to check the status of the asynchronous operation. The value is an integer that specifies the delay in seconds. */
1455
+ retryAfter?: number;
1456
+ }
1457
+
1407
1458
  /** Defines headers for Pool_create operation. */
1408
1459
  export interface PoolCreateHeaders {
1409
1460
  /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. */
@@ -1450,6 +1501,8 @@ export type AutoStorageAuthenticationMode =
1450
1501
  export type PoolAllocationMode = "BatchService" | "UserSubscription";
1451
1502
  /** Defines values for PublicNetworkAccessType. */
1452
1503
  export type PublicNetworkAccessType = "Enabled" | "Disabled";
1504
+ /** Defines values for EndpointAccessDefaultAction. */
1505
+ export type EndpointAccessDefaultAction = "Allow" | "Deny";
1453
1506
  /** Defines values for KeySource. */
1454
1507
  export type KeySource = "Microsoft.Batch" | "Microsoft.KeyVault";
1455
1508
  /** Defines values for AuthenticationMode. */
@@ -1469,9 +1522,12 @@ export type ProvisioningState =
1469
1522
  | "Cancelled";
1470
1523
  /** Defines values for PrivateEndpointConnectionProvisioningState. */
1471
1524
  export type PrivateEndpointConnectionProvisioningState =
1472
- | "Succeeded"
1525
+ | "Creating"
1473
1526
  | "Updating"
1474
- | "Failed";
1527
+ | "Deleting"
1528
+ | "Succeeded"
1529
+ | "Failed"
1530
+ | "Cancelled";
1475
1531
  /** Defines values for PrivateLinkServiceConnectionStatus. */
1476
1532
  export type PrivateLinkServiceConnectionStatus =
1477
1533
  | "Approved"
@@ -1958,6 +2014,18 @@ export interface PrivateEndpointConnectionUpdateOptionalParams
1958
2014
  /** Contains response data for the update operation. */
1959
2015
  export type PrivateEndpointConnectionUpdateResponse = PrivateEndpointConnection;
1960
2016
 
2017
+ /** Optional parameters. */
2018
+ export interface PrivateEndpointConnectionDeleteOptionalParams
2019
+ extends coreClient.OperationOptions {
2020
+ /** Delay to wait until next poll, in milliseconds. */
2021
+ updateIntervalInMs?: number;
2022
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2023
+ resumeFrom?: string;
2024
+ }
2025
+
2026
+ /** Contains response data for the delete operation. */
2027
+ export type PrivateEndpointConnectionDeleteResponse = PrivateEndpointConnectionDeleteHeaders;
2028
+
1961
2029
  /** Optional parameters. */
1962
2030
  export interface PrivateEndpointConnectionListByBatchAccountNextOptionalParams
1963
2031
  extends coreClient.OperationOptions {
@@ -63,6 +63,13 @@ export const BatchAccountCreateParameters: coreClient.CompositeMapper = {
63
63
  allowedValues: ["Enabled", "Disabled"]
64
64
  }
65
65
  },
66
+ networkProfile: {
67
+ serializedName: "properties.networkProfile",
68
+ type: {
69
+ name: "Composite",
70
+ className: "NetworkProfile"
71
+ }
72
+ },
66
73
  encryption: {
67
74
  serializedName: "properties.encryption",
68
75
  type: {
@@ -156,6 +163,82 @@ export const KeyVaultReference: coreClient.CompositeMapper = {
156
163
  }
157
164
  };
158
165
 
166
+ export const NetworkProfile: coreClient.CompositeMapper = {
167
+ type: {
168
+ name: "Composite",
169
+ className: "NetworkProfile",
170
+ modelProperties: {
171
+ accountAccess: {
172
+ serializedName: "accountAccess",
173
+ type: {
174
+ name: "Composite",
175
+ className: "EndpointAccessProfile"
176
+ }
177
+ },
178
+ nodeManagementAccess: {
179
+ serializedName: "nodeManagementAccess",
180
+ type: {
181
+ name: "Composite",
182
+ className: "EndpointAccessProfile"
183
+ }
184
+ }
185
+ }
186
+ }
187
+ };
188
+
189
+ export const EndpointAccessProfile: coreClient.CompositeMapper = {
190
+ type: {
191
+ name: "Composite",
192
+ className: "EndpointAccessProfile",
193
+ modelProperties: {
194
+ defaultAction: {
195
+ serializedName: "defaultAction",
196
+ required: true,
197
+ type: {
198
+ name: "Enum",
199
+ allowedValues: ["Allow", "Deny"]
200
+ }
201
+ },
202
+ ipRules: {
203
+ serializedName: "ipRules",
204
+ type: {
205
+ name: "Sequence",
206
+ element: {
207
+ type: {
208
+ name: "Composite",
209
+ className: "IPRule"
210
+ }
211
+ }
212
+ }
213
+ }
214
+ }
215
+ }
216
+ };
217
+
218
+ export const IPRule: coreClient.CompositeMapper = {
219
+ type: {
220
+ name: "Composite",
221
+ className: "IPRule",
222
+ modelProperties: {
223
+ action: {
224
+ defaultValue: "Allow",
225
+ isConstant: true,
226
+ serializedName: "action",
227
+ type: {
228
+ name: "String"
229
+ }
230
+ },
231
+ value: {
232
+ serializedName: "value",
233
+ required: true,
234
+ type: {
235
+ name: "String"
236
+ }
237
+ }
238
+ }
239
+ }
240
+ };
241
+
159
242
  export const EncryptionProperties: coreClient.CompositeMapper = {
160
243
  type: {
161
244
  name: "Composite",
@@ -508,6 +591,21 @@ export const BatchAccountUpdateParameters: coreClient.CompositeMapper = {
508
591
  }
509
592
  }
510
593
  }
594
+ },
595
+ publicNetworkAccess: {
596
+ defaultValue: "Enabled",
597
+ serializedName: "properties.publicNetworkAccess",
598
+ type: {
599
+ name: "Enum",
600
+ allowedValues: ["Enabled", "Disabled"]
601
+ }
602
+ },
603
+ networkProfile: {
604
+ serializedName: "properties.networkProfile",
605
+ type: {
606
+ name: "Composite",
607
+ className: "NetworkProfile"
608
+ }
511
609
  }
512
610
  }
513
611
  }
@@ -2760,7 +2858,14 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = {
2760
2858
  readOnly: true,
2761
2859
  type: {
2762
2860
  name: "Enum",
2763
- allowedValues: ["Succeeded", "Updating", "Failed"]
2861
+ allowedValues: [
2862
+ "Creating",
2863
+ "Updating",
2864
+ "Deleting",
2865
+ "Succeeded",
2866
+ "Failed",
2867
+ "Cancelled"
2868
+ ]
2764
2869
  }
2765
2870
  },
2766
2871
  privateEndpoint: {
@@ -2770,6 +2875,18 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = {
2770
2875
  className: "PrivateEndpoint"
2771
2876
  }
2772
2877
  },
2878
+ groupIds: {
2879
+ serializedName: "properties.groupIds",
2880
+ readOnly: true,
2881
+ type: {
2882
+ name: "Sequence",
2883
+ element: {
2884
+ type: {
2885
+ name: "String"
2886
+ }
2887
+ }
2888
+ }
2889
+ },
2773
2890
  privateLinkServiceConnectionState: {
2774
2891
  serializedName: "properties.privateLinkServiceConnectionState",
2775
2892
  type: {
@@ -3266,6 +3383,13 @@ export const BatchAccount: coreClient.CompositeMapper = {
3266
3383
  name: "String"
3267
3384
  }
3268
3385
  },
3386
+ nodeManagementEndpoint: {
3387
+ serializedName: "properties.nodeManagementEndpoint",
3388
+ readOnly: true,
3389
+ type: {
3390
+ name: "String"
3391
+ }
3392
+ },
3269
3393
  provisioningState: {
3270
3394
  serializedName: "properties.provisioningState",
3271
3395
  readOnly: true,
@@ -3299,13 +3423,19 @@ export const BatchAccount: coreClient.CompositeMapper = {
3299
3423
  publicNetworkAccess: {
3300
3424
  defaultValue: "Enabled",
3301
3425
  serializedName: "properties.publicNetworkAccess",
3302
- readOnly: true,
3303
3426
  nullable: true,
3304
3427
  type: {
3305
3428
  name: "Enum",
3306
3429
  allowedValues: ["Enabled", "Disabled"]
3307
3430
  }
3308
3431
  },
3432
+ networkProfile: {
3433
+ serializedName: "properties.networkProfile",
3434
+ type: {
3435
+ name: "Composite",
3436
+ className: "NetworkProfile"
3437
+ }
3438
+ },
3309
3439
  privateEndpointConnections: {
3310
3440
  serializedName: "properties.privateEndpointConnections",
3311
3441
  readOnly: true,
@@ -3623,6 +3753,27 @@ export const PrivateEndpointConnectionUpdateHeaders: coreClient.CompositeMapper
3623
3753
  }
3624
3754
  };
3625
3755
 
3756
+ export const PrivateEndpointConnectionDeleteHeaders: coreClient.CompositeMapper = {
3757
+ type: {
3758
+ name: "Composite",
3759
+ className: "PrivateEndpointConnectionDeleteHeaders",
3760
+ modelProperties: {
3761
+ location: {
3762
+ serializedName: "location",
3763
+ type: {
3764
+ name: "String"
3765
+ }
3766
+ },
3767
+ retryAfter: {
3768
+ serializedName: "retry-after",
3769
+ type: {
3770
+ name: "Number"
3771
+ }
3772
+ }
3773
+ }
3774
+ }
3775
+ };
3776
+
3626
3777
  export const PoolCreateHeaders: coreClient.CompositeMapper = {
3627
3778
  type: {
3628
3779
  name: "Composite",
@@ -95,7 +95,7 @@ export const accountName: OperationURLParameter = {
95
95
  export const apiVersion: OperationQueryParameter = {
96
96
  parameterPath: "apiVersion",
97
97
  mapper: {
98
- defaultValue: "2022-01-01",
98
+ defaultValue: "2022-06-01",
99
99
  isConstant: true,
100
100
  serializedName: "api-version",
101
101
  type: {