@azure/arm-cognitiveservices 7.7.0-beta.1 → 8.0.0
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/README.md +1 -1
- package/dist/browser/cognitiveServicesManagementClient.d.ts +3 -3
- package/dist/browser/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist/browser/cognitiveServicesManagementClient.js +49 -20
- package/dist/browser/cognitiveServicesManagementClient.js.map +1 -1
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +4 -7
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +9 -10
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +38 -35
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +2 -7
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +1 -1
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +297 -136
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +3 -3
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +9 -14
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/accountCapabilityHosts.d.ts +4 -4
- package/dist/browser/operations/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/browser/operations/accountCapabilityHosts.js +32 -26
- package/dist/browser/operations/accountCapabilityHosts.js.map +1 -1
- package/dist/{esm/operations/accountConnection.d.ts → browser/operations/accountConnections.d.ts} +11 -11
- package/dist/browser/operations/accountConnections.d.ts.map +1 -0
- package/dist/{react-native/operations/accountConnection.js → browser/operations/accountConnections.js} +31 -53
- package/dist/browser/operations/accountConnections.js.map +1 -0
- package/dist/browser/operations/accounts.d.ts.map +1 -1
- package/dist/browser/operations/accounts.js +103 -144
- package/dist/browser/operations/accounts.js.map +1 -1
- package/dist/browser/operations/commitmentPlans.d.ts.map +1 -1
- package/dist/browser/operations/commitmentPlans.js +157 -200
- package/dist/browser/operations/commitmentPlans.js.map +1 -1
- package/dist/browser/operations/commitmentTiers.d.ts.map +1 -1
- package/dist/browser/operations/commitmentTiers.js +25 -47
- package/dist/browser/operations/commitmentTiers.js.map +1 -1
- package/dist/browser/operations/defenderForAISettings.d.ts.map +1 -1
- package/dist/browser/operations/defenderForAISettings.js +25 -47
- package/dist/browser/operations/defenderForAISettings.js.map +1 -1
- package/dist/browser/operations/deletedAccounts.d.ts.map +1 -1
- package/dist/browser/operations/deletedAccounts.js +36 -53
- package/dist/browser/operations/deletedAccounts.js.map +1 -1
- package/dist/browser/operations/deployments.d.ts.map +1 -1
- package/dist/browser/operations/deployments.js +80 -104
- package/dist/browser/operations/deployments.js.map +1 -1
- package/dist/browser/operations/encryptionScopes.d.ts.map +1 -1
- package/dist/browser/operations/encryptionScopes.js +36 -53
- package/dist/browser/operations/encryptionScopes.js.map +1 -1
- package/dist/browser/operations/index.d.ts +2 -2
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +6 -9
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operations/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/browser/operations/locationBasedModelCapacities.js +25 -47
- package/dist/browser/operations/locationBasedModelCapacities.js.map +1 -1
- package/dist/browser/operations/modelCapacities.d.ts.map +1 -1
- package/dist/browser/operations/modelCapacities.js +25 -47
- package/dist/browser/operations/modelCapacities.js.map +1 -1
- package/dist/browser/operations/models.d.ts.map +1 -1
- package/dist/browser/operations/models.js +25 -47
- package/dist/browser/operations/models.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +36 -53
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/browser/operations/operations.d.ts.map +1 -1
- package/dist/browser/operations/operations.js +25 -47
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +25 -19
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.d.ts.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +3 -7
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/projectCapabilityHosts.d.ts +4 -4
- package/dist/browser/operations/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/browser/operations/projectCapabilityHosts.js +32 -26
- package/dist/browser/operations/projectCapabilityHosts.js.map +1 -1
- package/dist/browser/operations/{projectConnection.d.ts → projectConnections.d.ts} +11 -11
- package/dist/browser/operations/projectConnections.d.ts.map +1 -0
- package/dist/browser/operations/{projectConnection.js → projectConnections.js} +31 -53
- package/dist/browser/operations/projectConnections.js.map +1 -0
- package/dist/browser/operations/projects.d.ts.map +1 -1
- package/dist/browser/operations/projects.js +58 -65
- package/dist/browser/operations/projects.js.map +1 -1
- package/dist/browser/operations/raiBlocklistItems.d.ts.map +1 -1
- package/dist/browser/operations/raiBlocklistItems.js +36 -53
- package/dist/browser/operations/raiBlocklistItems.js.map +1 -1
- package/dist/browser/operations/raiBlocklists.d.ts.map +1 -1
- package/dist/browser/operations/raiBlocklists.js +36 -53
- package/dist/browser/operations/raiBlocklists.js.map +1 -1
- package/dist/browser/operations/raiContentFilters.d.ts.map +1 -1
- package/dist/browser/operations/raiContentFilters.js +25 -47
- package/dist/browser/operations/raiContentFilters.js.map +1 -1
- package/dist/browser/operations/raiPolicies.d.ts.map +1 -1
- package/dist/browser/operations/raiPolicies.js +36 -53
- package/dist/browser/operations/raiPolicies.js.map +1 -1
- package/dist/browser/operations/resourceSkus.d.ts.map +1 -1
- package/dist/browser/operations/resourceSkus.js +25 -47
- package/dist/browser/operations/resourceSkus.js.map +1 -1
- package/dist/browser/operations/usages.d.ts.map +1 -1
- package/dist/browser/operations/usages.js +25 -47
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/operationsInterfaces/accountCapabilityHosts.d.ts +4 -4
- package/dist/browser/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/accountCapabilityHosts.js +2 -7
- package/dist/browser/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
- package/dist/{esm/operationsInterfaces/accountConnection.d.ts → browser/operationsInterfaces/accountConnections.d.ts} +9 -9
- package/dist/browser/operationsInterfaces/accountConnections.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/accountConnections.js +4 -0
- package/dist/browser/operationsInterfaces/accountConnections.js.map +1 -0
- package/dist/browser/operationsInterfaces/accounts.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/accounts.js +2 -7
- package/dist/browser/operationsInterfaces/accounts.js.map +1 -1
- package/dist/browser/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/commitmentPlans.js +2 -7
- package/dist/browser/operationsInterfaces/commitmentPlans.js.map +1 -1
- package/dist/browser/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/commitmentTiers.js +2 -7
- package/dist/browser/operationsInterfaces/commitmentTiers.js.map +1 -1
- package/dist/browser/operationsInterfaces/defenderForAISettings.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/defenderForAISettings.js +2 -7
- package/dist/browser/operationsInterfaces/defenderForAISettings.js.map +1 -1
- package/dist/browser/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/deletedAccounts.js +2 -7
- package/dist/browser/operationsInterfaces/deletedAccounts.js.map +1 -1
- package/dist/browser/operationsInterfaces/deployments.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/deployments.js +2 -7
- package/dist/browser/operationsInterfaces/deployments.js.map +1 -1
- package/dist/browser/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/encryptionScopes.js +2 -7
- package/dist/browser/operationsInterfaces/encryptionScopes.js.map +1 -1
- package/dist/browser/operationsInterfaces/index.d.ts +2 -2
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +6 -9
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/locationBasedModelCapacities.js +2 -7
- package/dist/browser/operationsInterfaces/locationBasedModelCapacities.js.map +1 -1
- package/dist/browser/operationsInterfaces/modelCapacities.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/modelCapacities.js +2 -7
- package/dist/browser/operationsInterfaces/modelCapacities.js.map +1 -1
- package/dist/browser/operationsInterfaces/models.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/models.js +2 -7
- package/dist/browser/operationsInterfaces/models.js.map +1 -1
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js +2 -7
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js +2 -7
- package/dist/browser/operationsInterfaces/operations.js.map +1 -1
- package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/privateEndpointConnections.js +2 -7
- package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/privateLinkResources.js +2 -7
- package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -1
- package/dist/browser/operationsInterfaces/projectCapabilityHosts.d.ts +4 -4
- package/dist/browser/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/projectCapabilityHosts.js +2 -7
- package/dist/browser/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
- package/dist/{esm/operationsInterfaces/projectConnection.d.ts → browser/operationsInterfaces/projectConnections.d.ts} +9 -9
- package/dist/browser/operationsInterfaces/projectConnections.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/projectConnections.js +4 -0
- package/dist/browser/operationsInterfaces/projectConnections.js.map +1 -0
- package/dist/browser/operationsInterfaces/projects.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/projects.js +2 -7
- package/dist/browser/operationsInterfaces/projects.js.map +1 -1
- package/dist/browser/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/raiBlocklistItems.js +2 -7
- package/dist/browser/operationsInterfaces/raiBlocklistItems.js.map +1 -1
- package/dist/browser/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/raiBlocklists.js +2 -7
- package/dist/browser/operationsInterfaces/raiBlocklists.js.map +1 -1
- package/dist/browser/operationsInterfaces/raiContentFilters.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/raiContentFilters.js +2 -7
- package/dist/browser/operationsInterfaces/raiContentFilters.js.map +1 -1
- package/dist/browser/operationsInterfaces/raiPolicies.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/raiPolicies.js +2 -7
- package/dist/browser/operationsInterfaces/raiPolicies.js.map +1 -1
- package/dist/browser/operationsInterfaces/resourceSkus.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/resourceSkus.js +2 -7
- package/dist/browser/operationsInterfaces/resourceSkus.js.map +1 -1
- package/dist/browser/operationsInterfaces/usages.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/usages.js +2 -7
- package/dist/browser/operationsInterfaces/usages.js.map +1 -1
- package/dist/browser/pagingHelper.d.ts.map +1 -1
- package/dist/browser/pagingHelper.js +4 -11
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/cognitiveServicesManagementClient.d.ts +3 -3
- package/dist/commonjs/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist/commonjs/cognitiveServicesManagementClient.js +48 -19
- package/dist/commonjs/cognitiveServicesManagementClient.js.map +1 -1
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +4 -7
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js +9 -10
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +38 -35
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +2 -7
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +1 -1
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +298 -137
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +3 -3
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +10 -15
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/accountCapabilityHosts.d.ts +4 -4
- package/dist/commonjs/operations/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/commonjs/operations/accountCapabilityHosts.js +32 -26
- package/dist/commonjs/operations/accountCapabilityHosts.js.map +1 -1
- package/dist/{browser/operations/accountConnection.d.ts → commonjs/operations/accountConnections.d.ts} +11 -11
- package/dist/commonjs/operations/accountConnections.d.ts.map +1 -0
- package/dist/commonjs/operations/{accountConnection.js → accountConnections.js} +33 -54
- package/dist/commonjs/operations/accountConnections.js.map +1 -0
- package/dist/commonjs/operations/accounts.d.ts.map +1 -1
- package/dist/commonjs/operations/accounts.js +103 -143
- package/dist/commonjs/operations/accounts.js.map +1 -1
- package/dist/commonjs/operations/commitmentPlans.d.ts.map +1 -1
- package/dist/commonjs/operations/commitmentPlans.js +157 -199
- package/dist/commonjs/operations/commitmentPlans.js.map +1 -1
- package/dist/commonjs/operations/commitmentTiers.d.ts.map +1 -1
- package/dist/commonjs/operations/commitmentTiers.js +25 -46
- package/dist/commonjs/operations/commitmentTiers.js.map +1 -1
- package/dist/commonjs/operations/defenderForAISettings.d.ts.map +1 -1
- package/dist/commonjs/operations/defenderForAISettings.js +25 -46
- package/dist/commonjs/operations/defenderForAISettings.js.map +1 -1
- package/dist/commonjs/operations/deletedAccounts.d.ts.map +1 -1
- package/dist/commonjs/operations/deletedAccounts.js +36 -52
- package/dist/commonjs/operations/deletedAccounts.js.map +1 -1
- package/dist/commonjs/operations/deployments.d.ts.map +1 -1
- package/dist/commonjs/operations/deployments.js +80 -103
- package/dist/commonjs/operations/deployments.js.map +1 -1
- package/dist/commonjs/operations/encryptionScopes.d.ts.map +1 -1
- package/dist/commonjs/operations/encryptionScopes.js +36 -52
- package/dist/commonjs/operations/encryptionScopes.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts +2 -2
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +6 -9
- package/dist/commonjs/operations/index.js.map +1 -1
- package/dist/commonjs/operations/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/commonjs/operations/locationBasedModelCapacities.js +25 -46
- package/dist/commonjs/operations/locationBasedModelCapacities.js.map +1 -1
- package/dist/commonjs/operations/modelCapacities.d.ts.map +1 -1
- package/dist/commonjs/operations/modelCapacities.js +25 -46
- package/dist/commonjs/operations/modelCapacities.js.map +1 -1
- package/dist/commonjs/operations/models.d.ts.map +1 -1
- package/dist/commonjs/operations/models.js +25 -46
- package/dist/commonjs/operations/models.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +36 -52
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/commonjs/operations/operations.d.ts.map +1 -1
- package/dist/commonjs/operations/operations.js +25 -46
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +25 -19
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +3 -7
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/projectCapabilityHosts.d.ts +4 -4
- package/dist/commonjs/operations/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/commonjs/operations/projectCapabilityHosts.js +32 -26
- package/dist/commonjs/operations/projectCapabilityHosts.js.map +1 -1
- package/dist/commonjs/operations/{projectConnection.d.ts → projectConnections.d.ts} +11 -11
- package/dist/commonjs/operations/projectConnections.d.ts.map +1 -0
- package/dist/commonjs/operations/{projectConnection.js → projectConnections.js} +33 -54
- package/dist/commonjs/operations/projectConnections.js.map +1 -0
- package/dist/commonjs/operations/projects.d.ts.map +1 -1
- package/dist/commonjs/operations/projects.js +58 -64
- package/dist/commonjs/operations/projects.js.map +1 -1
- package/dist/commonjs/operations/raiBlocklistItems.d.ts.map +1 -1
- package/dist/commonjs/operations/raiBlocklistItems.js +36 -52
- package/dist/commonjs/operations/raiBlocklistItems.js.map +1 -1
- package/dist/commonjs/operations/raiBlocklists.d.ts.map +1 -1
- package/dist/commonjs/operations/raiBlocklists.js +36 -52
- package/dist/commonjs/operations/raiBlocklists.js.map +1 -1
- package/dist/commonjs/operations/raiContentFilters.d.ts.map +1 -1
- package/dist/commonjs/operations/raiContentFilters.js +25 -46
- package/dist/commonjs/operations/raiContentFilters.js.map +1 -1
- package/dist/commonjs/operations/raiPolicies.d.ts.map +1 -1
- package/dist/commonjs/operations/raiPolicies.js +36 -52
- package/dist/commonjs/operations/raiPolicies.js.map +1 -1
- package/dist/commonjs/operations/resourceSkus.d.ts.map +1 -1
- package/dist/commonjs/operations/resourceSkus.js +25 -46
- package/dist/commonjs/operations/resourceSkus.js.map +1 -1
- package/dist/commonjs/operations/usages.d.ts.map +1 -1
- package/dist/commonjs/operations/usages.js +25 -46
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.d.ts +4 -4
- package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.js +2 -7
- package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
- package/dist/{react-native/operationsInterfaces/accountConnection.d.ts → commonjs/operationsInterfaces/accountConnections.d.ts} +9 -9
- package/dist/commonjs/operationsInterfaces/accountConnections.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/accountConnections.js +5 -0
- package/dist/commonjs/operationsInterfaces/accountConnections.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/accounts.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/accounts.js +2 -7
- package/dist/commonjs/operationsInterfaces/accounts.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/commitmentPlans.js +2 -7
- package/dist/commonjs/operationsInterfaces/commitmentPlans.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/commitmentTiers.js +2 -7
- package/dist/commonjs/operationsInterfaces/commitmentTiers.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/defenderForAISettings.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/defenderForAISettings.js +2 -7
- package/dist/commonjs/operationsInterfaces/defenderForAISettings.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/deletedAccounts.js +2 -7
- package/dist/commonjs/operationsInterfaces/deletedAccounts.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/deployments.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/deployments.js +2 -7
- package/dist/commonjs/operationsInterfaces/deployments.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/encryptionScopes.js +2 -7
- package/dist/commonjs/operationsInterfaces/encryptionScopes.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +6 -9
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/locationBasedModelCapacities.js +2 -7
- package/dist/commonjs/operationsInterfaces/locationBasedModelCapacities.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/modelCapacities.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/modelCapacities.js +2 -7
- package/dist/commonjs/operationsInterfaces/modelCapacities.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/models.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/models.js +2 -7
- package/dist/commonjs/operationsInterfaces/models.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js +2 -7
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.js +2 -7
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +2 -7
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js +2 -7
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.d.ts +4 -4
- package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.js +2 -7
- package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
- package/dist/{react-native/operationsInterfaces/projectConnection.d.ts → commonjs/operationsInterfaces/projectConnections.d.ts} +9 -9
- package/dist/commonjs/operationsInterfaces/projectConnections.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/projectConnections.js +5 -0
- package/dist/commonjs/operationsInterfaces/projectConnections.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/projects.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/projects.js +2 -7
- package/dist/commonjs/operationsInterfaces/projects.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiBlocklistItems.js +2 -7
- package/dist/commonjs/operationsInterfaces/raiBlocklistItems.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiBlocklists.js +2 -7
- package/dist/commonjs/operationsInterfaces/raiBlocklists.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiContentFilters.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiContentFilters.js +2 -7
- package/dist/commonjs/operationsInterfaces/raiContentFilters.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiPolicies.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiPolicies.js +2 -7
- package/dist/commonjs/operationsInterfaces/raiPolicies.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/resourceSkus.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/resourceSkus.js +2 -7
- package/dist/commonjs/operationsInterfaces/resourceSkus.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/usages.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/usages.js +2 -7
- package/dist/commonjs/operationsInterfaces/usages.js.map +1 -1
- package/dist/commonjs/pagingHelper.d.ts.map +1 -1
- package/dist/commonjs/pagingHelper.js +4 -11
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/cognitiveServicesManagementClient.d.ts +3 -3
- package/dist/esm/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist/esm/cognitiveServicesManagementClient.js +49 -20
- package/dist/esm/cognitiveServicesManagementClient.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +4 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js +9 -10
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +38 -35
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +2 -7
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +1 -1
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +297 -136
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +3 -3
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +9 -14
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/accountCapabilityHosts.d.ts +4 -4
- package/dist/esm/operations/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/esm/operations/accountCapabilityHosts.js +32 -26
- package/dist/esm/operations/accountCapabilityHosts.js.map +1 -1
- package/dist/{react-native/operations/accountConnection.d.ts → esm/operations/accountConnections.d.ts} +11 -11
- package/dist/esm/operations/accountConnections.d.ts.map +1 -0
- package/dist/esm/operations/{accountConnection.js → accountConnections.js} +31 -53
- package/dist/esm/operations/accountConnections.js.map +1 -0
- package/dist/esm/operations/accounts.d.ts.map +1 -1
- package/dist/esm/operations/accounts.js +103 -144
- package/dist/esm/operations/accounts.js.map +1 -1
- package/dist/esm/operations/commitmentPlans.d.ts.map +1 -1
- package/dist/esm/operations/commitmentPlans.js +157 -200
- package/dist/esm/operations/commitmentPlans.js.map +1 -1
- package/dist/esm/operations/commitmentTiers.d.ts.map +1 -1
- package/dist/esm/operations/commitmentTiers.js +25 -47
- package/dist/esm/operations/commitmentTiers.js.map +1 -1
- package/dist/esm/operations/defenderForAISettings.d.ts.map +1 -1
- package/dist/esm/operations/defenderForAISettings.js +25 -47
- package/dist/esm/operations/defenderForAISettings.js.map +1 -1
- package/dist/esm/operations/deletedAccounts.d.ts.map +1 -1
- package/dist/esm/operations/deletedAccounts.js +36 -53
- package/dist/esm/operations/deletedAccounts.js.map +1 -1
- package/dist/esm/operations/deployments.d.ts.map +1 -1
- package/dist/esm/operations/deployments.js +80 -104
- package/dist/esm/operations/deployments.js.map +1 -1
- package/dist/esm/operations/encryptionScopes.d.ts.map +1 -1
- package/dist/esm/operations/encryptionScopes.js +36 -53
- package/dist/esm/operations/encryptionScopes.js.map +1 -1
- package/dist/esm/operations/index.d.ts +2 -2
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +6 -9
- package/dist/esm/operations/index.js.map +1 -1
- package/dist/esm/operations/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/esm/operations/locationBasedModelCapacities.js +25 -47
- package/dist/esm/operations/locationBasedModelCapacities.js.map +1 -1
- package/dist/esm/operations/modelCapacities.d.ts.map +1 -1
- package/dist/esm/operations/modelCapacities.js +25 -47
- package/dist/esm/operations/modelCapacities.js.map +1 -1
- package/dist/esm/operations/models.d.ts.map +1 -1
- package/dist/esm/operations/models.js +25 -47
- package/dist/esm/operations/models.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +36 -53
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/esm/operations/operations.d.ts.map +1 -1
- package/dist/esm/operations/operations.js +25 -47
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +25 -19
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.d.ts.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +3 -7
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/projectCapabilityHosts.d.ts +4 -4
- package/dist/esm/operations/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/esm/operations/projectCapabilityHosts.js +32 -26
- package/dist/esm/operations/projectCapabilityHosts.js.map +1 -1
- package/dist/esm/operations/{projectConnection.d.ts → projectConnections.d.ts} +11 -11
- package/dist/esm/operations/projectConnections.d.ts.map +1 -0
- package/dist/esm/operations/{projectConnection.js → projectConnections.js} +31 -53
- package/dist/esm/operations/projectConnections.js.map +1 -0
- package/dist/esm/operations/projects.d.ts.map +1 -1
- package/dist/esm/operations/projects.js +58 -65
- package/dist/esm/operations/projects.js.map +1 -1
- package/dist/esm/operations/raiBlocklistItems.d.ts.map +1 -1
- package/dist/esm/operations/raiBlocklistItems.js +36 -53
- package/dist/esm/operations/raiBlocklistItems.js.map +1 -1
- package/dist/esm/operations/raiBlocklists.d.ts.map +1 -1
- package/dist/esm/operations/raiBlocklists.js +36 -53
- package/dist/esm/operations/raiBlocklists.js.map +1 -1
- package/dist/esm/operations/raiContentFilters.d.ts.map +1 -1
- package/dist/esm/operations/raiContentFilters.js +25 -47
- package/dist/esm/operations/raiContentFilters.js.map +1 -1
- package/dist/esm/operations/raiPolicies.d.ts.map +1 -1
- package/dist/esm/operations/raiPolicies.js +36 -53
- package/dist/esm/operations/raiPolicies.js.map +1 -1
- package/dist/esm/operations/resourceSkus.d.ts.map +1 -1
- package/dist/esm/operations/resourceSkus.js +25 -47
- package/dist/esm/operations/resourceSkus.js.map +1 -1
- package/dist/esm/operations/usages.d.ts.map +1 -1
- package/dist/esm/operations/usages.js +25 -47
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/operationsInterfaces/accountCapabilityHosts.d.ts +4 -4
- package/dist/esm/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/accountCapabilityHosts.js +2 -7
- package/dist/esm/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
- package/dist/{browser/operationsInterfaces/accountConnection.d.ts → esm/operationsInterfaces/accountConnections.d.ts} +9 -9
- package/dist/esm/operationsInterfaces/accountConnections.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/accountConnections.js +4 -0
- package/dist/esm/operationsInterfaces/accountConnections.js.map +1 -0
- package/dist/esm/operationsInterfaces/accounts.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/accounts.js +2 -7
- package/dist/esm/operationsInterfaces/accounts.js.map +1 -1
- package/dist/esm/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/commitmentPlans.js +2 -7
- package/dist/esm/operationsInterfaces/commitmentPlans.js.map +1 -1
- package/dist/esm/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/commitmentTiers.js +2 -7
- package/dist/esm/operationsInterfaces/commitmentTiers.js.map +1 -1
- package/dist/esm/operationsInterfaces/defenderForAISettings.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/defenderForAISettings.js +2 -7
- package/dist/esm/operationsInterfaces/defenderForAISettings.js.map +1 -1
- package/dist/esm/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/deletedAccounts.js +2 -7
- package/dist/esm/operationsInterfaces/deletedAccounts.js.map +1 -1
- package/dist/esm/operationsInterfaces/deployments.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/deployments.js +2 -7
- package/dist/esm/operationsInterfaces/deployments.js.map +1 -1
- package/dist/esm/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/encryptionScopes.js +2 -7
- package/dist/esm/operationsInterfaces/encryptionScopes.js.map +1 -1
- package/dist/esm/operationsInterfaces/index.d.ts +2 -2
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +6 -9
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/locationBasedModelCapacities.js +2 -7
- package/dist/esm/operationsInterfaces/locationBasedModelCapacities.js.map +1 -1
- package/dist/esm/operationsInterfaces/modelCapacities.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/modelCapacities.js +2 -7
- package/dist/esm/operationsInterfaces/modelCapacities.js.map +1 -1
- package/dist/esm/operationsInterfaces/models.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/models.js +2 -7
- package/dist/esm/operationsInterfaces/models.js.map +1 -1
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js +2 -7
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/operations.js +2 -7
- package/dist/esm/operationsInterfaces/operations.js.map +1 -1
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js +2 -7
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/privateLinkResources.js +2 -7
- package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -1
- package/dist/esm/operationsInterfaces/projectCapabilityHosts.d.ts +4 -4
- package/dist/esm/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/projectCapabilityHosts.js +2 -7
- package/dist/esm/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
- package/dist/{commonjs/operationsInterfaces/projectConnection.d.ts → esm/operationsInterfaces/projectConnections.d.ts} +9 -9
- package/dist/esm/operationsInterfaces/projectConnections.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/projectConnections.js +4 -0
- package/dist/esm/operationsInterfaces/projectConnections.js.map +1 -0
- package/dist/esm/operationsInterfaces/projects.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/projects.js +2 -7
- package/dist/esm/operationsInterfaces/projects.js.map +1 -1
- package/dist/esm/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/raiBlocklistItems.js +2 -7
- package/dist/esm/operationsInterfaces/raiBlocklistItems.js.map +1 -1
- package/dist/esm/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/raiBlocklists.js +2 -7
- package/dist/esm/operationsInterfaces/raiBlocklists.js.map +1 -1
- package/dist/esm/operationsInterfaces/raiContentFilters.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/raiContentFilters.js +2 -7
- package/dist/esm/operationsInterfaces/raiContentFilters.js.map +1 -1
- package/dist/esm/operationsInterfaces/raiPolicies.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/raiPolicies.js +2 -7
- package/dist/esm/operationsInterfaces/raiPolicies.js.map +1 -1
- package/dist/esm/operationsInterfaces/resourceSkus.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/resourceSkus.js +2 -7
- package/dist/esm/operationsInterfaces/resourceSkus.js.map +1 -1
- package/dist/esm/operationsInterfaces/usages.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/usages.js +2 -7
- package/dist/esm/operationsInterfaces/usages.js.map +1 -1
- package/dist/esm/pagingHelper.d.ts.map +1 -1
- package/dist/esm/pagingHelper.js +4 -11
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/cognitiveServicesManagementClient.d.ts +3 -3
- package/dist/react-native/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist/react-native/cognitiveServicesManagementClient.js +49 -20
- package/dist/react-native/cognitiveServicesManagementClient.js.map +1 -1
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +4 -7
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js +9 -10
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +38 -35
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +2 -7
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +1 -1
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +297 -136
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +3 -3
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +9 -14
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/accountCapabilityHosts.d.ts +4 -4
- package/dist/react-native/operations/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/react-native/operations/accountCapabilityHosts.js +32 -26
- package/dist/react-native/operations/accountCapabilityHosts.js.map +1 -1
- package/dist/{commonjs/operations/accountConnection.d.ts → react-native/operations/accountConnections.d.ts} +11 -11
- package/dist/react-native/operations/accountConnections.d.ts.map +1 -0
- package/dist/{browser/operations/accountConnection.js → react-native/operations/accountConnections.js} +31 -53
- package/dist/react-native/operations/accountConnections.js.map +1 -0
- package/dist/react-native/operations/accounts.d.ts.map +1 -1
- package/dist/react-native/operations/accounts.js +103 -144
- package/dist/react-native/operations/accounts.js.map +1 -1
- package/dist/react-native/operations/commitmentPlans.d.ts.map +1 -1
- package/dist/react-native/operations/commitmentPlans.js +157 -200
- package/dist/react-native/operations/commitmentPlans.js.map +1 -1
- package/dist/react-native/operations/commitmentTiers.d.ts.map +1 -1
- package/dist/react-native/operations/commitmentTiers.js +25 -47
- package/dist/react-native/operations/commitmentTiers.js.map +1 -1
- package/dist/react-native/operations/defenderForAISettings.d.ts.map +1 -1
- package/dist/react-native/operations/defenderForAISettings.js +25 -47
- package/dist/react-native/operations/defenderForAISettings.js.map +1 -1
- package/dist/react-native/operations/deletedAccounts.d.ts.map +1 -1
- package/dist/react-native/operations/deletedAccounts.js +36 -53
- package/dist/react-native/operations/deletedAccounts.js.map +1 -1
- package/dist/react-native/operations/deployments.d.ts.map +1 -1
- package/dist/react-native/operations/deployments.js +80 -104
- package/dist/react-native/operations/deployments.js.map +1 -1
- package/dist/react-native/operations/encryptionScopes.d.ts.map +1 -1
- package/dist/react-native/operations/encryptionScopes.js +36 -53
- package/dist/react-native/operations/encryptionScopes.js.map +1 -1
- package/dist/react-native/operations/index.d.ts +2 -2
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +6 -9
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operations/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/react-native/operations/locationBasedModelCapacities.js +25 -47
- package/dist/react-native/operations/locationBasedModelCapacities.js.map +1 -1
- package/dist/react-native/operations/modelCapacities.d.ts.map +1 -1
- package/dist/react-native/operations/modelCapacities.js +25 -47
- package/dist/react-native/operations/modelCapacities.js.map +1 -1
- package/dist/react-native/operations/models.d.ts.map +1 -1
- package/dist/react-native/operations/models.js +25 -47
- package/dist/react-native/operations/models.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +36 -53
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/react-native/operations/operations.d.ts.map +1 -1
- package/dist/react-native/operations/operations.js +25 -47
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +25 -19
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +3 -7
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/projectCapabilityHosts.d.ts +4 -4
- package/dist/react-native/operations/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/react-native/operations/projectCapabilityHosts.js +32 -26
- package/dist/react-native/operations/projectCapabilityHosts.js.map +1 -1
- package/dist/react-native/operations/{projectConnection.d.ts → projectConnections.d.ts} +11 -11
- package/dist/react-native/operations/projectConnections.d.ts.map +1 -0
- package/dist/react-native/operations/{projectConnection.js → projectConnections.js} +31 -53
- package/dist/react-native/operations/projectConnections.js.map +1 -0
- package/dist/react-native/operations/projects.d.ts.map +1 -1
- package/dist/react-native/operations/projects.js +58 -65
- package/dist/react-native/operations/projects.js.map +1 -1
- package/dist/react-native/operations/raiBlocklistItems.d.ts.map +1 -1
- package/dist/react-native/operations/raiBlocklistItems.js +36 -53
- package/dist/react-native/operations/raiBlocklistItems.js.map +1 -1
- package/dist/react-native/operations/raiBlocklists.d.ts.map +1 -1
- package/dist/react-native/operations/raiBlocklists.js +36 -53
- package/dist/react-native/operations/raiBlocklists.js.map +1 -1
- package/dist/react-native/operations/raiContentFilters.d.ts.map +1 -1
- package/dist/react-native/operations/raiContentFilters.js +25 -47
- package/dist/react-native/operations/raiContentFilters.js.map +1 -1
- package/dist/react-native/operations/raiPolicies.d.ts.map +1 -1
- package/dist/react-native/operations/raiPolicies.js +36 -53
- package/dist/react-native/operations/raiPolicies.js.map +1 -1
- package/dist/react-native/operations/resourceSkus.d.ts.map +1 -1
- package/dist/react-native/operations/resourceSkus.js +25 -47
- package/dist/react-native/operations/resourceSkus.js.map +1 -1
- package/dist/react-native/operations/usages.d.ts.map +1 -1
- package/dist/react-native/operations/usages.js +25 -47
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/operationsInterfaces/accountCapabilityHosts.d.ts +4 -4
- package/dist/react-native/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/accountCapabilityHosts.js +2 -7
- package/dist/react-native/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
- package/dist/{commonjs/operationsInterfaces/accountConnection.d.ts → react-native/operationsInterfaces/accountConnections.d.ts} +9 -9
- package/dist/react-native/operationsInterfaces/accountConnections.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/accountConnections.js +4 -0
- package/dist/react-native/operationsInterfaces/accountConnections.js.map +1 -0
- package/dist/react-native/operationsInterfaces/accounts.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/accounts.js +2 -7
- package/dist/react-native/operationsInterfaces/accounts.js.map +1 -1
- package/dist/react-native/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/commitmentPlans.js +2 -7
- package/dist/react-native/operationsInterfaces/commitmentPlans.js.map +1 -1
- package/dist/react-native/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/commitmentTiers.js +2 -7
- package/dist/react-native/operationsInterfaces/commitmentTiers.js.map +1 -1
- package/dist/react-native/operationsInterfaces/defenderForAISettings.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/defenderForAISettings.js +2 -7
- package/dist/react-native/operationsInterfaces/defenderForAISettings.js.map +1 -1
- package/dist/react-native/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/deletedAccounts.js +2 -7
- package/dist/react-native/operationsInterfaces/deletedAccounts.js.map +1 -1
- package/dist/react-native/operationsInterfaces/deployments.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/deployments.js +2 -7
- package/dist/react-native/operationsInterfaces/deployments.js.map +1 -1
- package/dist/react-native/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/encryptionScopes.js +2 -7
- package/dist/react-native/operationsInterfaces/encryptionScopes.js.map +1 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +6 -9
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/locationBasedModelCapacities.js +2 -7
- package/dist/react-native/operationsInterfaces/locationBasedModelCapacities.js.map +1 -1
- package/dist/react-native/operationsInterfaces/modelCapacities.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/modelCapacities.js +2 -7
- package/dist/react-native/operationsInterfaces/modelCapacities.js.map +1 -1
- package/dist/react-native/operationsInterfaces/models.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/models.js +2 -7
- package/dist/react-native/operationsInterfaces/models.js.map +1 -1
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js +2 -7
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.js +2 -7
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +2 -7
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/privateLinkResources.js +2 -7
- package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -1
- package/dist/react-native/operationsInterfaces/projectCapabilityHosts.d.ts +4 -4
- package/dist/react-native/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/projectCapabilityHosts.js +2 -7
- package/dist/react-native/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
- package/dist/{browser/operationsInterfaces/projectConnection.d.ts → react-native/operationsInterfaces/projectConnections.d.ts} +9 -9
- package/dist/react-native/operationsInterfaces/projectConnections.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/projectConnections.js +4 -0
- package/dist/react-native/operationsInterfaces/projectConnections.js.map +1 -0
- package/dist/react-native/operationsInterfaces/projects.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/projects.js +2 -7
- package/dist/react-native/operationsInterfaces/projects.js.map +1 -1
- package/dist/react-native/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/raiBlocklistItems.js +2 -7
- package/dist/react-native/operationsInterfaces/raiBlocklistItems.js.map +1 -1
- package/dist/react-native/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/raiBlocklists.js +2 -7
- package/dist/react-native/operationsInterfaces/raiBlocklists.js.map +1 -1
- package/dist/react-native/operationsInterfaces/raiContentFilters.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/raiContentFilters.js +2 -7
- package/dist/react-native/operationsInterfaces/raiContentFilters.js.map +1 -1
- package/dist/react-native/operationsInterfaces/raiPolicies.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/raiPolicies.js +2 -7
- package/dist/react-native/operationsInterfaces/raiPolicies.js.map +1 -1
- package/dist/react-native/operationsInterfaces/resourceSkus.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/resourceSkus.js +2 -7
- package/dist/react-native/operationsInterfaces/resourceSkus.js.map +1 -1
- package/dist/react-native/operationsInterfaces/usages.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/usages.js +2 -7
- package/dist/react-native/operationsInterfaces/usages.js.map +1 -1
- package/dist/react-native/pagingHelper.d.ts.map +1 -1
- package/dist/react-native/pagingHelper.js +4 -11
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +29 -32
- package/CHANGELOG.md +0 -477
- package/dist/browser/operations/accountConnection.d.ts.map +0 -1
- package/dist/browser/operations/accountConnection.js.map +0 -1
- package/dist/browser/operations/projectConnection.d.ts.map +0 -1
- package/dist/browser/operations/projectConnection.js.map +0 -1
- package/dist/browser/operationsInterfaces/accountConnection.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/accountConnection.js +0 -9
- package/dist/browser/operationsInterfaces/accountConnection.js.map +0 -1
- package/dist/browser/operationsInterfaces/projectConnection.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/projectConnection.js +0 -9
- package/dist/browser/operationsInterfaces/projectConnection.js.map +0 -1
- package/dist/commonjs/operations/accountConnection.d.ts.map +0 -1
- package/dist/commonjs/operations/accountConnection.js.map +0 -1
- package/dist/commonjs/operations/projectConnection.d.ts.map +0 -1
- package/dist/commonjs/operations/projectConnection.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/accountConnection.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/accountConnection.js +0 -10
- package/dist/commonjs/operationsInterfaces/accountConnection.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/projectConnection.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/projectConnection.js +0 -10
- package/dist/commonjs/operationsInterfaces/projectConnection.js.map +0 -1
- package/dist/esm/operations/accountConnection.d.ts.map +0 -1
- package/dist/esm/operations/accountConnection.js.map +0 -1
- package/dist/esm/operations/projectConnection.d.ts.map +0 -1
- package/dist/esm/operations/projectConnection.js.map +0 -1
- package/dist/esm/operationsInterfaces/accountConnection.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/accountConnection.js +0 -9
- package/dist/esm/operationsInterfaces/accountConnection.js.map +0 -1
- package/dist/esm/operationsInterfaces/projectConnection.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/projectConnection.js +0 -9
- package/dist/esm/operationsInterfaces/projectConnection.js.map +0 -1
- package/dist/react-native/operations/accountConnection.d.ts.map +0 -1
- package/dist/react-native/operations/accountConnection.js.map +0 -1
- package/dist/react-native/operations/projectConnection.d.ts.map +0 -1
- package/dist/react-native/operations/projectConnection.js.map +0 -1
- package/dist/react-native/operationsInterfaces/accountConnection.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/accountConnection.js +0 -9
- package/dist/react-native/operationsInterfaces/accountConnection.js.map +0 -1
- package/dist/react-native/operationsInterfaces/projectConnection.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/projectConnection.js +0 -9
- package/dist/react-native/operationsInterfaces/projectConnection.js.map +0 -1
- package/review/arm-cognitiveservices.api.md +0 -3079
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
9
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
5
|
exports.RaiBlocklistItemsImpl = void 0;
|
|
11
6
|
const tslib_1 = require("tslib");
|
|
@@ -18,6 +13,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
13
|
/// <reference lib="esnext.asynciterable" />
|
|
19
14
|
/** Class containing RaiBlocklistItems operations. */
|
|
20
15
|
class RaiBlocklistItemsImpl {
|
|
16
|
+
client;
|
|
21
17
|
/**
|
|
22
18
|
* Initialize a new instance of the class RaiBlocklistItems class.
|
|
23
19
|
* @param client Reference to the service client
|
|
@@ -42,52 +38,35 @@ class RaiBlocklistItemsImpl {
|
|
|
42
38
|
return this;
|
|
43
39
|
},
|
|
44
40
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
46
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
43
|
}
|
|
48
44
|
return this.listPagingPage(resourceGroupName, accountName, raiBlocklistName, options, settings);
|
|
49
45
|
},
|
|
50
46
|
};
|
|
51
47
|
}
|
|
52
|
-
listPagingPage(resourceGroupName, accountName, raiBlocklistName, options, settings) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
});
|
|
48
|
+
async *listPagingPage(resourceGroupName, accountName, raiBlocklistName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._list(resourceGroupName, accountName, raiBlocklistName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listNext(resourceGroupName, accountName, raiBlocklistName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
71
65
|
}
|
|
72
|
-
listPagingAll(resourceGroupName, accountName, raiBlocklistName, options) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, accountName, raiBlocklistName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
77
|
-
_c = _f.value;
|
|
78
|
-
_d = false;
|
|
79
|
-
const page = _c;
|
|
80
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
-
finally {
|
|
85
|
-
try {
|
|
86
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
87
|
-
}
|
|
88
|
-
finally { if (e_1) throw e_1.error; }
|
|
89
|
-
}
|
|
90
|
-
});
|
|
66
|
+
async *listPagingAll(resourceGroupName, accountName, raiBlocklistName, options) {
|
|
67
|
+
for await (const page of this.listPagingPage(resourceGroupName, accountName, raiBlocklistName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
91
70
|
}
|
|
92
71
|
/**
|
|
93
72
|
* Gets the blocklist items associated with the custom blocklist.
|
|
@@ -148,14 +127,19 @@ class RaiBlocklistItemsImpl {
|
|
|
148
127
|
return this.client.sendOperationRequest(args, spec);
|
|
149
128
|
};
|
|
150
129
|
const sendOperationFn = async (args, spec) => {
|
|
151
|
-
var _a;
|
|
152
130
|
let currentRawResponse = undefined;
|
|
153
|
-
const providedCallback =
|
|
131
|
+
const providedCallback = args.options?.onResponse;
|
|
154
132
|
const callback = (rawResponse, flatResponse) => {
|
|
155
133
|
currentRawResponse = rawResponse;
|
|
156
|
-
providedCallback
|
|
134
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
135
|
+
};
|
|
136
|
+
const updatedArgs = {
|
|
137
|
+
...args,
|
|
138
|
+
options: {
|
|
139
|
+
...args.options,
|
|
140
|
+
onResponse: callback,
|
|
141
|
+
},
|
|
157
142
|
};
|
|
158
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
159
143
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
160
144
|
return {
|
|
161
145
|
flatResponse,
|
|
@@ -178,8 +162,8 @@ class RaiBlocklistItemsImpl {
|
|
|
178
162
|
spec: deleteOperationSpec,
|
|
179
163
|
});
|
|
180
164
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
181
|
-
restoreFrom: options
|
|
182
|
-
intervalInMs: options
|
|
165
|
+
restoreFrom: options?.resumeFrom,
|
|
166
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
183
167
|
resourceLocationConfig: "location",
|
|
184
168
|
});
|
|
185
169
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raiBlocklistItems.js","sourceRoot":"","sources":["../../../src/operations/raiBlocklistItems.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAAqF;AACrF,8CAA8C;AAmB9C,4CAA4C;AAC5C,qDAAqD;AACrD,MAAa,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,gBAAwB,EACxB,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;QAC3F,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,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G,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { RaiBlocklistItems } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport { SimplePollerLike, OperationState, createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n RaiBlocklistItem,\n RaiBlocklistItemsListNextOptionalParams,\n RaiBlocklistItemsListOptionalParams,\n RaiBlocklistItemsListResponse,\n RaiBlocklistItemsGetOptionalParams,\n RaiBlocklistItemsGetResponse,\n RaiBlocklistItemsCreateOrUpdateOptionalParams,\n RaiBlocklistItemsCreateOrUpdateResponse,\n RaiBlocklistItemsDeleteOptionalParams,\n RaiBlocklistItemsDeleteResponse,\n RaiBlocklistItemBulkRequest,\n RaiBlocklistItemsBatchAddOptionalParams,\n RaiBlocklistItemsBatchAddResponse,\n RaiBlocklistItemsBatchDeleteOptionalParams,\n RaiBlocklistItemsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RaiBlocklistItems operations. */\nexport class RaiBlocklistItemsImpl implements RaiBlocklistItems {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class RaiBlocklistItems class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the blocklist items associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n ): PagedAsyncIterableIterator<RaiBlocklistItem> {\n const iter = this.listPagingAll(resourceGroupName, accountName, raiBlocklistName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RaiBlocklistItem[]> {\n let result: RaiBlocklistItemsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, raiBlocklistName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n ): AsyncIterableIterator<RaiBlocklistItem> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the blocklist items associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n ): Promise<RaiBlocklistItemsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiBlocklistName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified custom blocklist Item associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n options?: RaiBlocklistItemsGetOptionalParams,\n ): Promise<RaiBlocklistItemsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified blocklist item associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param raiBlocklistItem Properties describing the custom blocklist.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n raiBlocklistItem: RaiBlocklistItem,\n options?: RaiBlocklistItemsCreateOrUpdateOptionalParams,\n ): Promise<RaiBlocklistItemsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n raiBlocklistItem,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified blocklist Item associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n options?: RaiBlocklistItemsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<RaiBlocklistItemsDeleteResponse>,\n RaiBlocklistItemsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RaiBlocklistItemsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n RaiBlocklistItemsDeleteResponse,\n OperationState<RaiBlocklistItemsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified blocklist Item associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n options?: RaiBlocklistItemsDeleteOptionalParams,\n ): Promise<RaiBlocklistItemsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Batch operation to add blocklist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItems Properties describing the custom blocklist items.\n * @param options The options parameters.\n */\n batchAdd(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItems: RaiBlocklistItemBulkRequest[],\n options?: RaiBlocklistItemsBatchAddOptionalParams,\n ): Promise<RaiBlocklistItemsBatchAddResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItems,\n options,\n },\n batchAddOperationSpec,\n );\n }\n\n /**\n * Batch operation to delete blocklist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemsNames List of RAI Blocklist Items Names.\n * @param options The options parameters.\n */\n batchDelete(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemsNames: string[],\n options?: RaiBlocklistItemsBatchDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemsNames,\n options,\n },\n batchDeleteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n nextLink: string,\n options?: RaiBlocklistItemsListNextOptionalParams,\n ): Promise<RaiBlocklistItemsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiBlocklistName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlockListItemsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklistItem,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n Parameters.raiBlocklistItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklistItem,\n },\n 201: {\n bodyMapper: Mappers.RaiBlocklistItem,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklistItem,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n Parameters.raiBlocklistItemName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n Parameters.raiBlocklistItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst batchAddOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/addRaiBlocklistItems\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklist,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklistItems,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst batchDeleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/deleteRaiBlocklistItems\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklistItemsNames,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlockListItemsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"raiBlocklistItems.js","sourceRoot":"","sources":["../../../src/operations/raiBlocklistItems.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAAqF;AACrF,8CAA8C;AAmB9C,4CAA4C;AAC5C,qDAAqD;AACrD,MAAa,qBAAqB;IACf,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,gBAAwB,EACxB,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;QAC3F,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ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\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { RaiBlocklistItems } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport { SimplePollerLike, OperationState, createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n RaiBlocklistItem,\n RaiBlocklistItemsListNextOptionalParams,\n RaiBlocklistItemsListOptionalParams,\n RaiBlocklistItemsListResponse,\n RaiBlocklistItemsGetOptionalParams,\n RaiBlocklistItemsGetResponse,\n RaiBlocklistItemsCreateOrUpdateOptionalParams,\n RaiBlocklistItemsCreateOrUpdateResponse,\n RaiBlocklistItemsDeleteOptionalParams,\n RaiBlocklistItemsDeleteResponse,\n RaiBlocklistItemBulkRequest,\n RaiBlocklistItemsBatchAddOptionalParams,\n RaiBlocklistItemsBatchAddResponse,\n RaiBlocklistItemsBatchDeleteOptionalParams,\n RaiBlocklistItemsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RaiBlocklistItems operations. */\nexport class RaiBlocklistItemsImpl implements RaiBlocklistItems {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class RaiBlocklistItems class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the blocklist items associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n ): PagedAsyncIterableIterator<RaiBlocklistItem> {\n const iter = this.listPagingAll(resourceGroupName, accountName, raiBlocklistName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RaiBlocklistItem[]> {\n let result: RaiBlocklistItemsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, raiBlocklistName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n ): AsyncIterableIterator<RaiBlocklistItem> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the blocklist items associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n ): Promise<RaiBlocklistItemsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiBlocklistName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified custom blocklist Item associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n options?: RaiBlocklistItemsGetOptionalParams,\n ): Promise<RaiBlocklistItemsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified blocklist item associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param raiBlocklistItem Properties describing the custom blocklist.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n raiBlocklistItem: RaiBlocklistItem,\n options?: RaiBlocklistItemsCreateOrUpdateOptionalParams,\n ): Promise<RaiBlocklistItemsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n raiBlocklistItem,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified blocklist Item associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n options?: RaiBlocklistItemsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<RaiBlocklistItemsDeleteResponse>,\n RaiBlocklistItemsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RaiBlocklistItemsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n RaiBlocklistItemsDeleteResponse,\n OperationState<RaiBlocklistItemsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified blocklist Item associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n options?: RaiBlocklistItemsDeleteOptionalParams,\n ): Promise<RaiBlocklistItemsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Batch operation to add blocklist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItems Properties describing the custom blocklist items.\n * @param options The options parameters.\n */\n batchAdd(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItems: RaiBlocklistItemBulkRequest[],\n options?: RaiBlocklistItemsBatchAddOptionalParams,\n ): Promise<RaiBlocklistItemsBatchAddResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItems,\n options,\n },\n batchAddOperationSpec,\n );\n }\n\n /**\n * Batch operation to delete blocklist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemsNames List of RAI Blocklist Items Names.\n * @param options The options parameters.\n */\n batchDelete(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemsNames: string[],\n options?: RaiBlocklistItemsBatchDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemsNames,\n options,\n },\n batchDeleteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n nextLink: string,\n options?: RaiBlocklistItemsListNextOptionalParams,\n ): Promise<RaiBlocklistItemsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiBlocklistName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlockListItemsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklistItem,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n Parameters.raiBlocklistItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklistItem,\n },\n 201: {\n bodyMapper: Mappers.RaiBlocklistItem,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklistItem,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n Parameters.raiBlocklistItemName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n Parameters.raiBlocklistItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst batchAddOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/addRaiBlocklistItems\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklist,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklistItems,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst batchDeleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/deleteRaiBlocklistItems\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklistItemsNames,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlockListItemsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raiBlocklists.d.ts","sourceRoot":"","sources":["../../../src/operations/raiBlocklists.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"raiBlocklists.d.ts","sourceRoot":"","sources":["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AE,MAAM,EACxB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CACR,gBAAgB,CAAC,cAAc,CAAC,2BAA2B,CAAC,EAAE,2BAA2B,CAAC,CAC3F;IAuDD;;;;;;OAMG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAUvC;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
9
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
5
|
exports.RaiBlocklistsImpl = void 0;
|
|
11
6
|
const tslib_1 = require("tslib");
|
|
@@ -18,6 +13,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
13
|
/// <reference lib="esnext.asynciterable" />
|
|
19
14
|
/** Class containing RaiBlocklists operations. */
|
|
20
15
|
class RaiBlocklistsImpl {
|
|
16
|
+
client;
|
|
21
17
|
/**
|
|
22
18
|
* Initialize a new instance of the class RaiBlocklists class.
|
|
23
19
|
* @param client Reference to the service client
|
|
@@ -41,52 +37,35 @@ class RaiBlocklistsImpl {
|
|
|
41
37
|
return this;
|
|
42
38
|
},
|
|
43
39
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
45
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
42
|
}
|
|
47
43
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
48
44
|
},
|
|
49
45
|
};
|
|
50
46
|
}
|
|
51
|
-
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
47
|
+
async *listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._list(resourceGroupName, accountName, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listNext(resourceGroupName, accountName, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
70
64
|
}
|
|
71
|
-
listPagingAll(resourceGroupName, accountName, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
65
|
+
async *listPagingAll(resourceGroupName, accountName, options) {
|
|
66
|
+
for await (const page of this.listPagingPage(resourceGroupName, accountName, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
90
69
|
}
|
|
91
70
|
/**
|
|
92
71
|
* Gets the custom blocklists associated with the Azure OpenAI account.
|
|
@@ -136,14 +115,19 @@ class RaiBlocklistsImpl {
|
|
|
136
115
|
return this.client.sendOperationRequest(args, spec);
|
|
137
116
|
};
|
|
138
117
|
const sendOperationFn = async (args, spec) => {
|
|
139
|
-
var _a;
|
|
140
118
|
let currentRawResponse = undefined;
|
|
141
|
-
const providedCallback =
|
|
119
|
+
const providedCallback = args.options?.onResponse;
|
|
142
120
|
const callback = (rawResponse, flatResponse) => {
|
|
143
121
|
currentRawResponse = rawResponse;
|
|
144
|
-
providedCallback
|
|
122
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
123
|
+
};
|
|
124
|
+
const updatedArgs = {
|
|
125
|
+
...args,
|
|
126
|
+
options: {
|
|
127
|
+
...args.options,
|
|
128
|
+
onResponse: callback,
|
|
129
|
+
},
|
|
145
130
|
};
|
|
146
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
147
131
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
148
132
|
return {
|
|
149
133
|
flatResponse,
|
|
@@ -160,8 +144,8 @@ class RaiBlocklistsImpl {
|
|
|
160
144
|
spec: deleteOperationSpec,
|
|
161
145
|
});
|
|
162
146
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
163
|
-
restoreFrom: options
|
|
164
|
-
intervalInMs: options
|
|
147
|
+
restoreFrom: options?.resumeFrom,
|
|
148
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
165
149
|
resourceLocationConfig: "location",
|
|
166
150
|
});
|
|
167
151
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raiBlocklists.js","sourceRoot":"","sources":["../../../src/operations/raiBlocklists.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAAqF;AACrF,8CAA8C;AAe9C,4CAA4C;AAC5C,iDAAiD;AACjD,MAAa,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAyC;QAEzC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChF,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,OAAyC,EACzC,QAAuB;;YAEvB,IAAI,MAAiC,CAAC;YACtC,IAAI,iBAAiB,GAAG,QAAQ,a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AAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { RaiBlocklists } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport { SimplePollerLike, OperationState, createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n RaiBlocklist,\n RaiBlocklistsListNextOptionalParams,\n RaiBlocklistsListOptionalParams,\n RaiBlocklistsListResponse,\n RaiBlocklistsGetOptionalParams,\n RaiBlocklistsGetResponse,\n RaiBlocklistsCreateOrUpdateOptionalParams,\n RaiBlocklistsCreateOrUpdateResponse,\n RaiBlocklistsDeleteOptionalParams,\n RaiBlocklistsDeleteResponse,\n RaiBlocklistsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RaiBlocklists operations. */\nexport class RaiBlocklistsImpl implements RaiBlocklists {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class RaiBlocklists class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the custom blocklists associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: RaiBlocklistsListOptionalParams,\n ): PagedAsyncIterableIterator<RaiBlocklist> {\n const iter = this.listPagingAll(resourceGroupName, accountName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroupName, accountName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: RaiBlocklistsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RaiBlocklist[]> {\n let result: RaiBlocklistsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(resourceGroupName, accountName, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: RaiBlocklistsListOptionalParams,\n ): AsyncIterableIterator<RaiBlocklist> {\n for await (const page of this.listPagingPage(resourceGroupName, accountName, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the custom blocklists associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: RaiBlocklistsListOptionalParams,\n ): Promise<RaiBlocklistsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified custom blocklist associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistsGetOptionalParams,\n ): Promise<RaiBlocklistsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiBlocklistName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified blocklist associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklist Properties describing the custom blocklist.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklist: RaiBlocklist,\n options?: RaiBlocklistsCreateOrUpdateOptionalParams,\n ): Promise<RaiBlocklistsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklist,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified custom blocklist associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<RaiBlocklistsDeleteResponse>, RaiBlocklistsDeleteResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RaiBlocklistsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, accountName, raiBlocklistName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n RaiBlocklistsDeleteResponse,\n OperationState<RaiBlocklistsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified custom blocklist associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistsDeleteOptionalParams,\n ): Promise<RaiBlocklistsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: RaiBlocklistsListNextOptionalParams,\n ): Promise<RaiBlocklistsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlockListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklist,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklist,\n },\n 201: {\n bodyMapper: Mappers.RaiBlocklist,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklist,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.RaiBlocklistsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.RaiBlocklistsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.RaiBlocklistsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.RaiBlocklistsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlockListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"raiBlocklists.js","sourceRoot":"","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KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { RaiBlocklists } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport { SimplePollerLike, OperationState, createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n RaiBlocklist,\n RaiBlocklistsListNextOptionalParams,\n RaiBlocklistsListOptionalParams,\n RaiBlocklistsListResponse,\n RaiBlocklistsGetOptionalParams,\n RaiBlocklistsGetResponse,\n RaiBlocklistsCreateOrUpdateOptionalParams,\n RaiBlocklistsCreateOrUpdateResponse,\n RaiBlocklistsDeleteOptionalParams,\n RaiBlocklistsDeleteResponse,\n RaiBlocklistsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RaiBlocklists operations. */\nexport class RaiBlocklistsImpl implements RaiBlocklists {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class RaiBlocklists class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the custom blocklists associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: RaiBlocklistsListOptionalParams,\n ): PagedAsyncIterableIterator<RaiBlocklist> {\n const iter = this.listPagingAll(resourceGroupName, accountName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroupName, accountName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: RaiBlocklistsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RaiBlocklist[]> {\n let result: RaiBlocklistsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(resourceGroupName, accountName, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: RaiBlocklistsListOptionalParams,\n ): AsyncIterableIterator<RaiBlocklist> {\n for await (const page of this.listPagingPage(resourceGroupName, accountName, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the custom blocklists associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: RaiBlocklistsListOptionalParams,\n ): Promise<RaiBlocklistsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified custom blocklist associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistsGetOptionalParams,\n ): Promise<RaiBlocklistsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiBlocklistName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified blocklist associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklist Properties describing the custom blocklist.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklist: RaiBlocklist,\n options?: RaiBlocklistsCreateOrUpdateOptionalParams,\n ): Promise<RaiBlocklistsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklist,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified custom blocklist associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<RaiBlocklistsDeleteResponse>, RaiBlocklistsDeleteResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RaiBlocklistsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, accountName, raiBlocklistName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n RaiBlocklistsDeleteResponse,\n OperationState<RaiBlocklistsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified custom blocklist associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistsDeleteOptionalParams,\n ): Promise<RaiBlocklistsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: RaiBlocklistsListNextOptionalParams,\n ): Promise<RaiBlocklistsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlockListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklist,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklist,\n },\n 201: {\n bodyMapper: Mappers.RaiBlocklist,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklist,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.RaiBlocklistsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.RaiBlocklistsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.RaiBlocklistsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.RaiBlocklistsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlockListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raiContentFilters.d.ts","sourceRoot":"","sources":["../../../src/operations/raiContentFilters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"raiContentFilters.d.ts","sourceRoot":"","sources":["../../../src/operations/raiContentFilters.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAIrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,gBAAgB,EAEhB,mCAAmC,EAEnC,kCAAkC,EAClC,4BAA4B,EAE7B,MAAM,oBAAoB,CAAC;AAG5B,qDAAqD;AACrD,qBAAa,qBAAsB,YAAW,iBAAiB;IAC7D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;OAIG;IACI,IAAI,CACT,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,0BAA0B,CAAC,gBAAgB,CAAC;YAkBhC,cAAc;YAuBd,aAAa;IAS5B;;;;OAIG;IACH,OAAO,CAAC,KAAK;IAOb;;;;;OAKG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC;IAIxC;;;;;OAKG;IACH,OAAO,CAAC,SAAS;CAOlB"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
9
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
5
|
exports.RaiContentFiltersImpl = void 0;
|
|
11
6
|
const tslib_1 = require("tslib");
|
|
@@ -16,6 +11,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
11
|
/// <reference lib="esnext.asynciterable" />
|
|
17
12
|
/** Class containing RaiContentFilters operations. */
|
|
18
13
|
class RaiContentFiltersImpl {
|
|
14
|
+
client;
|
|
19
15
|
/**
|
|
20
16
|
* Initialize a new instance of the class RaiContentFilters class.
|
|
21
17
|
* @param client Reference to the service client
|
|
@@ -38,52 +34,35 @@ class RaiContentFiltersImpl {
|
|
|
38
34
|
return this;
|
|
39
35
|
},
|
|
40
36
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
42
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
39
|
}
|
|
44
40
|
return this.listPagingPage(location, options, settings);
|
|
45
41
|
},
|
|
46
42
|
};
|
|
47
43
|
}
|
|
48
|
-
listPagingPage(location, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
44
|
+
async *listPagingPage(location, options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._list(location, options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listNext(location, continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
67
61
|
}
|
|
68
|
-
listPagingAll(location, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(location, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
62
|
+
async *listPagingAll(location, options) {
|
|
63
|
+
for await (const page of this.listPagingPage(location, options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
87
66
|
}
|
|
88
67
|
/**
|
|
89
68
|
* List Content Filters types.
|