@azure/arm-cognitiveservices 7.7.0 → 8.0.0-alpha.20251006.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist/browser/cognitiveServicesManagementClient.js +9 -19
- 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 +2 -7
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +2 -3
- 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 +12 -17
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +2 -7
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/browser/operations/accountCapabilityHosts.js +3 -8
- package/dist/browser/operations/accountCapabilityHosts.js.map +1 -1
- package/dist/browser/operations/accountConnections.d.ts.map +1 -1
- package/dist/browser/operations/accountConnections.js +2 -7
- package/dist/browser/operations/accountConnections.js.map +1 -1
- package/dist/browser/operations/accounts.d.ts.map +1 -1
- package/dist/browser/operations/accounts.js +5 -18
- 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 +5 -18
- 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 +3 -12
- 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 +2 -7
- 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 +4 -13
- 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 +3 -8
- 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 +3 -8
- package/dist/browser/operations/encryptionScopes.js.map +1 -1
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +4 -7
- 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 +3 -12
- 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 +3 -12
- 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 +3 -12
- 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 +3 -8
- 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 +2 -7
- 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 +3 -8
- 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 +2 -7
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/browser/operations/projectCapabilityHosts.js +3 -8
- package/dist/browser/operations/projectCapabilityHosts.js.map +1 -1
- package/dist/browser/operations/projectConnections.d.ts.map +1 -1
- package/dist/browser/operations/projectConnections.js +2 -7
- package/dist/browser/operations/projectConnections.js.map +1 -1
- package/dist/browser/operations/projects.d.ts.map +1 -1
- package/dist/browser/operations/projects.js +3 -8
- 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 +3 -8
- 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 +3 -8
- 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 +3 -12
- 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 +3 -8
- 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 +3 -12
- 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 +3 -12
- package/dist/browser/operations/usages.js.map +1 -1
- 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/browser/operationsInterfaces/accountConnections.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/accountConnections.js +2 -7
- package/dist/browser/operationsInterfaces/accountConnections.js.map +1 -1
- 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.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +4 -7
- 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.map +1 -1
- package/dist/browser/operationsInterfaces/projectCapabilityHosts.js +2 -7
- package/dist/browser/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
- package/dist/browser/operationsInterfaces/projectConnections.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/projectConnections.js +2 -7
- package/dist/browser/operationsInterfaces/projectConnections.js.map +1 -1
- 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 +2 -7
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist/commonjs/cognitiveServicesManagementClient.js +9 -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 +2 -7
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +2 -3
- 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 +13 -18
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +2 -7
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/commonjs/operations/accountCapabilityHosts.js +2 -7
- package/dist/commonjs/operations/accountCapabilityHosts.js.map +1 -1
- package/dist/commonjs/operations/accountConnections.d.ts.map +1 -1
- package/dist/commonjs/operations/accountConnections.js +2 -7
- package/dist/commonjs/operations/accountConnections.js.map +1 -1
- package/dist/commonjs/operations/accounts.d.ts.map +1 -1
- package/dist/commonjs/operations/accounts.js +4 -17
- 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 +4 -17
- 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 +3 -12
- 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 +2 -7
- 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 +3 -12
- 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 +2 -7
- 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 +2 -7
- package/dist/commonjs/operations/encryptionScopes.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +4 -7
- 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 +3 -12
- 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 +3 -12
- 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 +3 -12
- 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 +2 -7
- 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 +2 -7
- 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 +2 -7
- 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 +2 -7
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/commonjs/operations/projectCapabilityHosts.js +2 -7
- package/dist/commonjs/operations/projectCapabilityHosts.js.map +1 -1
- package/dist/commonjs/operations/projectConnections.d.ts.map +1 -1
- package/dist/commonjs/operations/projectConnections.js +2 -7
- package/dist/commonjs/operations/projectConnections.js.map +1 -1
- package/dist/commonjs/operations/projects.d.ts.map +1 -1
- package/dist/commonjs/operations/projects.js +2 -7
- 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 +2 -7
- 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 +2 -7
- 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 +3 -12
- 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 +2 -7
- 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 +3 -12
- 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 +3 -12
- package/dist/commonjs/operations/usages.js.map +1 -1
- 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/commonjs/operationsInterfaces/accountConnections.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/accountConnections.js +2 -7
- package/dist/commonjs/operationsInterfaces/accountConnections.js.map +1 -1
- 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.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +4 -7
- 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.map +1 -1
- package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.js +2 -7
- package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/projectConnections.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/projectConnections.js +2 -7
- package/dist/commonjs/operationsInterfaces/projectConnections.js.map +1 -1
- 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 +2 -7
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist/esm/cognitiveServicesManagementClient.js +9 -19
- 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 +2 -7
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +2 -3
- 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 +12 -17
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +2 -7
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/esm/operations/accountCapabilityHosts.js +3 -8
- package/dist/esm/operations/accountCapabilityHosts.js.map +1 -1
- package/dist/esm/operations/accountConnections.d.ts.map +1 -1
- package/dist/esm/operations/accountConnections.js +2 -7
- package/dist/esm/operations/accountConnections.js.map +1 -1
- package/dist/esm/operations/accounts.d.ts.map +1 -1
- package/dist/esm/operations/accounts.js +5 -18
- 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 +5 -18
- 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 +3 -12
- 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 +2 -7
- 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 +4 -13
- 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 +3 -8
- 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 +3 -8
- package/dist/esm/operations/encryptionScopes.js.map +1 -1
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +4 -7
- 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 +3 -12
- 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 +3 -12
- 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 +3 -12
- 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 +3 -8
- 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 +2 -7
- 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 +3 -8
- 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 +2 -7
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/esm/operations/projectCapabilityHosts.js +3 -8
- package/dist/esm/operations/projectCapabilityHosts.js.map +1 -1
- package/dist/esm/operations/projectConnections.d.ts.map +1 -1
- package/dist/esm/operations/projectConnections.js +2 -7
- package/dist/esm/operations/projectConnections.js.map +1 -1
- package/dist/esm/operations/projects.d.ts.map +1 -1
- package/dist/esm/operations/projects.js +3 -8
- 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 +3 -8
- 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 +3 -8
- 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 +3 -12
- 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 +3 -8
- 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 +3 -12
- 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 +3 -12
- package/dist/esm/operations/usages.js.map +1 -1
- 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/esm/operationsInterfaces/accountConnections.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/accountConnections.js +2 -7
- package/dist/esm/operationsInterfaces/accountConnections.js.map +1 -1
- 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.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +4 -7
- 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.map +1 -1
- package/dist/esm/operationsInterfaces/projectCapabilityHosts.js +2 -7
- package/dist/esm/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
- package/dist/esm/operationsInterfaces/projectConnections.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/projectConnections.js +2 -7
- package/dist/esm/operationsInterfaces/projectConnections.js.map +1 -1
- 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 +2 -7
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist/react-native/cognitiveServicesManagementClient.js +9 -19
- 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 +2 -7
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +2 -3
- 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 +12 -17
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +2 -7
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/react-native/operations/accountCapabilityHosts.js +3 -8
- package/dist/react-native/operations/accountCapabilityHosts.js.map +1 -1
- package/dist/react-native/operations/accountConnections.d.ts.map +1 -1
- package/dist/react-native/operations/accountConnections.js +2 -7
- package/dist/react-native/operations/accountConnections.js.map +1 -1
- package/dist/react-native/operations/accounts.d.ts.map +1 -1
- package/dist/react-native/operations/accounts.js +5 -18
- 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 +5 -18
- 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 +3 -12
- 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 +2 -7
- 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 +4 -13
- 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 +3 -8
- 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 +3 -8
- package/dist/react-native/operations/encryptionScopes.js.map +1 -1
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +4 -7
- 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 +3 -12
- 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 +3 -12
- 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 +3 -12
- 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 +3 -8
- 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 +2 -7
- 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 +3 -8
- 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 +2 -7
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/react-native/operations/projectCapabilityHosts.js +3 -8
- package/dist/react-native/operations/projectCapabilityHosts.js.map +1 -1
- package/dist/react-native/operations/projectConnections.d.ts.map +1 -1
- package/dist/react-native/operations/projectConnections.js +2 -7
- package/dist/react-native/operations/projectConnections.js.map +1 -1
- package/dist/react-native/operations/projects.d.ts.map +1 -1
- package/dist/react-native/operations/projects.js +3 -8
- 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 +3 -8
- 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 +3 -8
- 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 +3 -12
- 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 +3 -8
- 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 +3 -12
- 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 +3 -12
- package/dist/react-native/operations/usages.js.map +1 -1
- 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/react-native/operationsInterfaces/accountConnections.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/accountConnections.js +2 -7
- package/dist/react-native/operationsInterfaces/accountConnections.js.map +1 -1
- 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.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +4 -7
- 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.map +1 -1
- package/dist/react-native/operationsInterfaces/projectCapabilityHosts.js +2 -7
- package/dist/react-native/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
- package/dist/react-native/operationsInterfaces/projectConnections.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/projectConnections.js +2 -7
- package/dist/react-native/operationsInterfaces/projectConnections.js.map +1 -1
- 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 +2 -7
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +25 -28
- package/CHANGELOG.md +0 -590
- package/review/arm-cognitiveservices-node.api.md +0 -3075
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
8
3
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
4
|
import * as coreClient from "@azure/core-client";
|
|
10
5
|
import * as Mappers from "../models/mappers.js";
|
|
11
6
|
import * as Parameters from "../models/parameters.js";
|
|
12
|
-
import { createHttpPoller
|
|
7
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
13
8
|
import { createLroSpec } from "../lroImpl.js";
|
|
14
9
|
/// <reference lib="esnext.asynciterable" />
|
|
15
10
|
/** Class containing RaiBlocklists operations. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raiBlocklists.js","sourceRoot":"","sources":["../../../src/operations/raiBlocklists.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,E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jB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,kKAAkK;IACxK,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,0BAA0B;SAClD;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,0BAA0B;SAClD;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,0BAA0B;SAClD;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,0BAA0B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,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 {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} 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(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\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(\n resourceGroupName,\n accountName,\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 options?: RaiBlocklistsListOptionalParams,\n ): AsyncIterableIterator<RaiBlocklist> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\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<\n OperationState<RaiBlocklistsDeleteResponse>,\n RaiBlocklistsDeleteResponse\n >\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 =\n 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":"","sources":["../../../src/operations/raiBlocklists.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAoC,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAe9C,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IACX,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;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E;YACH,aAAa,EAAE,OAAO,CAAC,0BAA0B;SAClD;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,0BAA0B;SAClD;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,0BAA0B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,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":["// 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,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
8
3
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
4
|
import * as coreClient from "@azure/core-client";
|
|
10
5
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -106,11 +101,7 @@ const listOperationSpec = {
|
|
|
106
101
|
},
|
|
107
102
|
},
|
|
108
103
|
queryParameters: [Parameters.apiVersion],
|
|
109
|
-
urlParameters: [
|
|
110
|
-
Parameters.$host,
|
|
111
|
-
Parameters.subscriptionId,
|
|
112
|
-
Parameters.location,
|
|
113
|
-
],
|
|
104
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.location],
|
|
114
105
|
headerParameters: [Parameters.accept],
|
|
115
106
|
serializer,
|
|
116
107
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raiContentFilters.js","sourceRoot":"","sources":["../../../src/operations/raiContentFilters.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"raiContentFilters.js","sourceRoot":"","sources":["../../../src/operations/raiContentFilters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,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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 { RaiContentFilters } 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 {\n RaiContentFilter,\n RaiContentFiltersListNextOptionalParams,\n RaiContentFiltersListOptionalParams,\n RaiContentFiltersListResponse,\n RaiContentFiltersGetOptionalParams,\n RaiContentFiltersGetResponse,\n RaiContentFiltersListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RaiContentFilters operations. */\nexport class RaiContentFiltersImpl implements RaiContentFilters {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class RaiContentFilters class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * List Content Filters types.\n * @param location Resource location.\n * @param options The options parameters.\n */\n public list(\n location: string,\n options?: RaiContentFiltersListOptionalParams,\n ): PagedAsyncIterableIterator<RaiContentFilter> {\n const iter = this.listPagingAll(location, 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(location, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n location: string,\n options?: RaiContentFiltersListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RaiContentFilter[]> {\n let result: RaiContentFiltersListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(location, 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(location, 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 location: string,\n options?: RaiContentFiltersListOptionalParams,\n ): AsyncIterableIterator<RaiContentFilter> {\n for await (const page of this.listPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * List Content Filters types.\n * @param location Resource location.\n * @param options The options parameters.\n */\n private _list(\n location: string,\n options?: RaiContentFiltersListOptionalParams,\n ): Promise<RaiContentFiltersListResponse> {\n return this.client.sendOperationRequest({ location, options }, listOperationSpec);\n }\n\n /**\n * Get Content Filters by Name.\n * @param location Resource location.\n * @param filterName The name of the RAI Content Filter.\n * @param options The options parameters.\n */\n get(\n location: string,\n filterName: string,\n options?: RaiContentFiltersGetOptionalParams,\n ): Promise<RaiContentFiltersGetResponse> {\n return this.client.sendOperationRequest({ location, filterName, options }, getOperationSpec);\n }\n\n /**\n * ListNext\n * @param location Resource location.\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 location: string,\n nextLink: string,\n options?: RaiContentFiltersListNextOptionalParams,\n ): Promise<RaiContentFiltersListNextResponse> {\n return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/raiContentFilters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiContentFilterListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.location],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/raiContentFilters/{filterName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiContentFilter,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n Parameters.filterName,\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.RaiContentFilterListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raiPolicies.d.ts","sourceRoot":"","sources":["../../../src/operations/raiPolicies.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"raiPolicies.d.ts","sourceRoot":"","sources":["../../../src/operations/raiPolicies.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAI/D,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAoB,MAAM,iBAAiB,CAAC;AAErF,OAAO,EACL,SAAS,EAET,6BAA6B,EAE7B,4BAA4B,EAC5B,sBAAsB,EACtB,uCAAuC,EACvC,iCAAiC,EACjC,+BAA+B,EAC/B,yBAAyB,EAE1B,MAAM,oBAAoB,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IT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
8
3
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
4
|
import * as coreClient from "@azure/core-client";
|
|
10
5
|
import * as Mappers from "../models/mappers.js";
|
|
11
6
|
import * as Parameters from "../models/parameters.js";
|
|
12
|
-
import { createHttpPoller
|
|
7
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
13
8
|
import { createLroSpec } from "../lroImpl.js";
|
|
14
9
|
/// <reference lib="esnext.asynciterable" />
|
|
15
10
|
/** Class containing RaiPolicies operations. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raiPolicies.js","sourceRoot":"","sources":["../../../src/operations/raiPolicies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAe9C,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IACT,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAuC;QAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAA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ChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,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,mBAAmB;SACxC;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 { RaiPolicies } 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 {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n RaiPolicy,\n RaiPoliciesListNextOptionalParams,\n RaiPoliciesListOptionalParams,\n RaiPoliciesListResponse,\n RaiPoliciesGetOptionalParams,\n RaiPoliciesGetResponse,\n RaiPoliciesCreateOrUpdateOptionalParams,\n RaiPoliciesCreateOrUpdateResponse,\n RaiPoliciesDeleteOptionalParams,\n RaiPoliciesDeleteResponse,\n RaiPoliciesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RaiPolicies operations. */\nexport class RaiPoliciesImpl implements RaiPolicies {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class RaiPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the content filters 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?: RaiPoliciesListOptionalParams,\n ): PagedAsyncIterableIterator<RaiPolicy> {\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(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: RaiPoliciesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RaiPolicy[]> {\n let result: RaiPoliciesListResponse;\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(\n resourceGroupName,\n accountName,\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 options?: RaiPoliciesListOptionalParams,\n ): AsyncIterableIterator<RaiPolicy> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the content filters 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?: RaiPoliciesListOptionalParams,\n ): Promise<RaiPoliciesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified Content Filters 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 raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n raiPolicyName: string,\n options?: RaiPoliciesGetOptionalParams,\n ): Promise<RaiPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiPolicyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified Content Filters 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 raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account\n * @param raiPolicy Properties describing the Content Filters.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n raiPolicyName: string,\n raiPolicy: RaiPolicy,\n options?: RaiPoliciesCreateOrUpdateOptionalParams,\n ): Promise<RaiPoliciesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiPolicyName, raiPolicy, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified Content Filters 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 raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n raiPolicyName: string,\n options?: RaiPoliciesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<RaiPoliciesDeleteResponse>,\n RaiPoliciesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RaiPoliciesDeleteResponse> => {\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 =\n 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, raiPolicyName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n RaiPoliciesDeleteResponse,\n OperationState<RaiPoliciesDeleteResponse>\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 Content Filters 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 raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n raiPolicyName: string,\n options?: RaiPoliciesDeleteOptionalParams,\n ): Promise<RaiPoliciesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n raiPolicyName,\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?: RaiPoliciesListNextOptionalParams,\n ): Promise<RaiPoliciesListNextResponse> {\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}/raiPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiPolicyListResult,\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}/raiPolicies/{raiPolicyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiPolicy,\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.raiPolicyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiPolicies/{raiPolicyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiPolicy,\n },\n 201: {\n bodyMapper: Mappers.RaiPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiPolicy,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiPolicyName,\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}/raiPolicies/{raiPolicyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.RaiPoliciesDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.RaiPoliciesDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.RaiPoliciesDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.RaiPoliciesDeleteHeaders,\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.raiPolicyName,\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.RaiPolicyListResult,\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":"raiPolicies.js","sourceRoot":"","sources":["../../../src/operations/raiPolicies.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAoC,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAe9C,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IACT,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAuC;QAEvC,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,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CA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,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;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":["// 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 { RaiPolicies } 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 RaiPolicy,\n RaiPoliciesListNextOptionalParams,\n RaiPoliciesListOptionalParams,\n RaiPoliciesListResponse,\n RaiPoliciesGetOptionalParams,\n RaiPoliciesGetResponse,\n RaiPoliciesCreateOrUpdateOptionalParams,\n RaiPoliciesCreateOrUpdateResponse,\n RaiPoliciesDeleteOptionalParams,\n RaiPoliciesDeleteResponse,\n RaiPoliciesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RaiPolicies operations. */\nexport class RaiPoliciesImpl implements RaiPolicies {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class RaiPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the content filters 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?: RaiPoliciesListOptionalParams,\n ): PagedAsyncIterableIterator<RaiPolicy> {\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?: RaiPoliciesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RaiPolicy[]> {\n let result: RaiPoliciesListResponse;\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?: RaiPoliciesListOptionalParams,\n ): AsyncIterableIterator<RaiPolicy> {\n for await (const page of this.listPagingPage(resourceGroupName, accountName, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the content filters 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?: RaiPoliciesListOptionalParams,\n ): Promise<RaiPoliciesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified Content Filters 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 raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n raiPolicyName: string,\n options?: RaiPoliciesGetOptionalParams,\n ): Promise<RaiPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiPolicyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified Content Filters 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 raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account\n * @param raiPolicy Properties describing the Content Filters.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n raiPolicyName: string,\n raiPolicy: RaiPolicy,\n options?: RaiPoliciesCreateOrUpdateOptionalParams,\n ): Promise<RaiPoliciesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiPolicyName, raiPolicy, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified Content Filters 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 raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n raiPolicyName: string,\n options?: RaiPoliciesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<RaiPoliciesDeleteResponse>, RaiPoliciesDeleteResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RaiPoliciesDeleteResponse> => {\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, raiPolicyName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n RaiPoliciesDeleteResponse,\n OperationState<RaiPoliciesDeleteResponse>\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 Content Filters 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 raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n raiPolicyName: string,\n options?: RaiPoliciesDeleteOptionalParams,\n ): Promise<RaiPoliciesDeleteResponse> {\n const poller = await this.beginDelete(resourceGroupName, accountName, raiPolicyName, options);\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?: RaiPoliciesListNextOptionalParams,\n ): Promise<RaiPoliciesListNextResponse> {\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}/raiPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiPolicyListResult,\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}/raiPolicies/{raiPolicyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiPolicy,\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.raiPolicyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiPolicies/{raiPolicyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiPolicy,\n },\n 201: {\n bodyMapper: Mappers.RaiPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiPolicy,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiPolicyName,\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}/raiPolicies/{raiPolicyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.RaiPoliciesDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.RaiPoliciesDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.RaiPoliciesDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.RaiPoliciesDeleteHeaders,\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.raiPolicyName,\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.RaiPolicyListResult,\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":"resourceSkus.d.ts","sourceRoot":"","sources":["../../../src/operations/resourceSkus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resourceSkus.d.ts","sourceRoot":"","sources":["../../../src/operations/resourceSkus.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAIhE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,WAAW,EAEX,8BAA8B,EAG/B,MAAM,oBAAoB,CAAC;AAG5B,gDAAgD;AAChD,qBAAa,gBAAiB,YAAW,YAAY;IACnD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;OAGG;IACI,IAAI,CAAC,OAAO,CAAC,EAAE,8BAA8B,GAAG,0BAA0B,CAAC,WAAW,CAAC;YAkB/E,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAIb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CAMlB"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
8
3
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
4
|
import * as coreClient from "@azure/core-client";
|
|
10
5
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -109,11 +104,7 @@ const listNextOperationSpec = {
|
|
|
109
104
|
bodyMapper: Mappers.ErrorResponse,
|
|
110
105
|
},
|
|
111
106
|
},
|
|
112
|
-
urlParameters: [
|
|
113
|
-
Parameters.$host,
|
|
114
|
-
Parameters.subscriptionId,
|
|
115
|
-
Parameters.nextLink,
|
|
116
|
-
],
|
|
107
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
|
|
117
108
|
headerParameters: [Parameters.accept],
|
|
118
109
|
serializer,
|
|
119
110
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceSkus.js","sourceRoot":"","sources":["../../../src/operations/resourceSkus.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"resourceSkus.js","sourceRoot":"","sources":["../../../src/operations/resourceSkus.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IACV,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CAAC,OAAwC;QAClD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAAwC,EACxC,QAAuB;QAEvB,IAAI,MAAgC,CAAC;QACrC,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAA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C,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,4EAA4E;IAClF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,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,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,QAAQ,CAAC;IACjF,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 { ResourceSkus } 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 {\n ResourceSku,\n ResourceSkusListNextOptionalParams,\n ResourceSkusListOptionalParams,\n ResourceSkusListResponse,\n ResourceSkusListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ResourceSkus operations. */\nexport class ResourceSkusImpl implements ResourceSkus {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class ResourceSkus class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription.\n * @param options The options parameters.\n */\n public list(options?: ResourceSkusListOptionalParams): PagedAsyncIterableIterator<ResourceSku> {\n const iter = this.listPagingAll(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(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: ResourceSkusListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ResourceSku[]> {\n let result: ResourceSkusListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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(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 options?: ResourceSkusListOptionalParams,\n ): AsyncIterableIterator<ResourceSku> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription.\n * @param options The options parameters.\n */\n private _list(options?: ResourceSkusListOptionalParams): Promise<ResourceSkusListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\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 nextLink: string,\n options?: ResourceSkusListNextOptionalParams,\n ): Promise<ResourceSkusListNextResponse> {\n return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceSkuListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceSkuListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usages.d.ts","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usages.d.ts","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAI1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,KAAK,EAEL,wBAAwB,EAGzB,MAAM,oBAAoB,CAAC;AAG5B,0CAA0C;AAC1C,qBAAa,UAAW,YAAW,MAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;OAIG;IACI,IAAI,CACT,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,wBAAwB,GACjC,0BAA0B,CAAC,KAAK,CAAC;YAkBrB,cAAc;YAuBd,aAAa;IAS5B;;;;OAIG;IACH,OAAO,CAAC,KAAK;IAIb;;;;;OAKG;IACH,OAAO,CAAC,SAAS;CAOlB"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
8
3
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
4
|
import * as coreClient from "@azure/core-client";
|
|
10
5
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -97,11 +92,7 @@ const listOperationSpec = {
|
|
|
97
92
|
},
|
|
98
93
|
},
|
|
99
94
|
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
|
100
|
-
urlParameters: [
|
|
101
|
-
Parameters.$host,
|
|
102
|
-
Parameters.subscriptionId,
|
|
103
|
-
Parameters.location,
|
|
104
|
-
],
|
|
95
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.location],
|
|
105
96
|
headerParameters: [Parameters.accept],
|
|
106
97
|
serializer,
|
|
107
98
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,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O,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3D,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,QAAQ,CAAC;IACjF,gBAAgB,EAAE,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,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;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 { Usages } 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 {\n Usage,\n UsagesListNextOptionalParams,\n UsagesListOptionalParams,\n UsagesListResponse,\n UsagesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Usages operations. */\nexport class UsagesImpl implements Usages {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class Usages class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Get usages for the requested subscription\n * @param location Resource location.\n * @param options The options parameters.\n */\n public list(\n location: string,\n options?: UsagesListOptionalParams,\n ): PagedAsyncIterableIterator<Usage> {\n const iter = this.listPagingAll(location, 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(location, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n location: string,\n options?: UsagesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Usage[]> {\n let result: UsagesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(location, 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(location, 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 location: string,\n options?: UsagesListOptionalParams,\n ): AsyncIterableIterator<Usage> {\n for await (const page of this.listPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * Get usages for the requested subscription\n * @param location Resource location.\n * @param options The options parameters.\n */\n private _list(location: string, options?: UsagesListOptionalParams): Promise<UsagesListResponse> {\n return this.client.sendOperationRequest({ location, options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param location Resource location.\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 location: string,\n nextLink: string,\n options?: UsagesListNextOptionalParams,\n ): Promise<UsagesListNextResponse> {\n return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsageListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.location],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsageListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountCapabilityHosts.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/accountCapabilityHosts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accountCapabilityHosts.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/accountCapabilityHosts.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,0CAA0C,EAC1C,oCAAoC,EACpC,uCAAuC,EACvC,iCAAiC,EACjC,cAAc,EACd,kDAAkD,EAClD,4CAA4C,EAC7C,MAAM,oBAAoB,CAAC;AAE5B,uDAAuD;AACvD,MAAM,WAAW,sBAAsB;IACrC;;;;;;;OAOG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,oCAAoC,CAAC,EACpD,oCAAoC,CACrC,CACF,CAAC;IACF;;;;;;;OAOG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,oCAAoC,CAAC,CAAC;IACjD;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC,CAAC;IAC9C;;;;;;;;OAQG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,4CAA4C,CAAC,EAC5D,4CAA4C,CAC7C,CACF,CAAC;IACF;;;;;;;;OAQG;IACH,0BAA0B,CACxB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CAAC,4CAA4C,CAAC,CAAC;CAC1D"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
8
3
|
export {};
|
|
9
4
|
//# sourceMappingURL=accountCapabilityHosts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountCapabilityHosts.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/accountCapabilityHosts.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"accountCapabilityHosts.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/accountCapabilityHosts.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","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 { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n AccountCapabilityHostsDeleteOptionalParams,\n AccountCapabilityHostsDeleteResponse,\n AccountCapabilityHostsGetOptionalParams,\n AccountCapabilityHostsGetResponse,\n CapabilityHost,\n AccountCapabilityHostsCreateOrUpdateOptionalParams,\n AccountCapabilityHostsCreateOrUpdateResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a AccountCapabilityHosts. */\nexport interface AccountCapabilityHosts {\n /**\n * Delete account capabilityHost.\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 capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n accountName: string,\n capabilityHostName: string,\n options?: AccountCapabilityHostsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AccountCapabilityHostsDeleteResponse>,\n AccountCapabilityHostsDeleteResponse\n >\n >;\n /**\n * Delete account capabilityHost.\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 capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n capabilityHostName: string,\n options?: AccountCapabilityHostsDeleteOptionalParams,\n ): Promise<AccountCapabilityHostsDeleteResponse>;\n /**\n * Get account capabilityHost.\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 capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n capabilityHostName: string,\n options?: AccountCapabilityHostsGetOptionalParams,\n ): Promise<AccountCapabilityHostsGetResponse>;\n /**\n * Create or update account capabilityHost.\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 capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param capabilityHost CapabilityHost definition.\n * @param options The options parameters.\n */\n beginCreateOrUpdate(\n resourceGroupName: string,\n accountName: string,\n capabilityHostName: string,\n capabilityHost: CapabilityHost,\n options?: AccountCapabilityHostsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AccountCapabilityHostsCreateOrUpdateResponse>,\n AccountCapabilityHostsCreateOrUpdateResponse\n >\n >;\n /**\n * Create or update account capabilityHost.\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 capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param capabilityHost CapabilityHost definition.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n accountName: string,\n capabilityHostName: string,\n capabilityHost: CapabilityHost,\n options?: AccountCapabilityHostsCreateOrUpdateOptionalParams,\n ): Promise<AccountCapabilityHostsCreateOrUpdateResponse>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountConnections.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/accountConnections.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accountConnections.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/accountConnections.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE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utoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
8
3
|
export {};
|
|
9
4
|
//# sourceMappingURL=accountConnections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountConnections.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/accountConnections.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"accountConnections.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/accountConnections.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","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 } from \"@azure/core-paging\";\nimport {\n ConnectionPropertiesV2BasicResource,\n AccountConnectionsListOptionalParams,\n AccountConnectionsDeleteOptionalParams,\n AccountConnectionsGetOptionalParams,\n AccountConnectionsGetResponse,\n AccountConnectionsUpdateOptionalParams,\n AccountConnectionsUpdateResponse,\n AccountConnectionsCreateOptionalParams,\n AccountConnectionsCreateResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a AccountConnections. */\nexport interface AccountConnections {\n /**\n * Lists all the available Cognitive Services account connections under the specified 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 list(\n resourceGroupName: string,\n accountName: string,\n options?: AccountConnectionsListOptionalParams,\n ): PagedAsyncIterableIterator<ConnectionPropertiesV2BasicResource>;\n /**\n * Delete Cognitive Services account connection by name.\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 connectionName Friendly name of the connection\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n connectionName: string,\n options?: AccountConnectionsDeleteOptionalParams,\n ): Promise<void>;\n /**\n * Lists Cognitive Services account connection by name.\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 connectionName Friendly name of the connection\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n connectionName: string,\n options?: AccountConnectionsGetOptionalParams,\n ): Promise<AccountConnectionsGetResponse>;\n /**\n * Update Cognitive Services account connection under the specified 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 connectionName Friendly name of the connection\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n connectionName: string,\n options?: AccountConnectionsUpdateOptionalParams,\n ): Promise<AccountConnectionsUpdateResponse>;\n /**\n * Create or update Cognitive Services account connection under the specified 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 connectionName Friendly name of the connection\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n connectionName: string,\n options?: AccountConnectionsCreateOptionalParams,\n ): Promise<AccountConnectionsCreateResponse>;\n}\n"]}
|