@azure/arm-cognitiveservices 8.0.0 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/cognitiveServicesManagementClient.d.ts +5 -3
- package/dist/browser/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist/browser/cognitiveServicesManagementClient.js +7 -3
- package/dist/browser/cognitiveServicesManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.d.ts +1 -1
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +342 -107
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +45 -17
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +18 -3
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +536 -128
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +6 -1
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +37 -2
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/accountCapabilityHosts.d.ts +29 -4
- package/dist/browser/operations/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/browser/operations/accountCapabilityHosts.js +109 -0
- package/dist/browser/operations/accountCapabilityHosts.js.map +1 -1
- package/dist/browser/operations/accountConnections.d.ts +4 -4
- package/dist/browser/operations/accountConnections.d.ts.map +1 -1
- package/dist/browser/operations/accountConnections.js +2 -2
- package/dist/browser/operations/accountConnections.js.map +1 -1
- package/dist/browser/operations/accounts.d.ts +5 -5
- package/dist/browser/operations/accounts.d.ts.map +1 -1
- package/dist/browser/operations/accounts.js +6 -6
- package/dist/browser/operations/accounts.js.map +1 -1
- package/dist/browser/operations/commitmentPlans.d.ts +5 -5
- package/dist/browser/operations/commitmentPlans.d.ts.map +1 -1
- package/dist/browser/operations/commitmentPlans.js +8 -8
- package/dist/browser/operations/commitmentPlans.js.map +1 -1
- package/dist/browser/operations/commitmentTiers.d.ts +4 -4
- package/dist/browser/operations/commitmentTiers.d.ts.map +1 -1
- package/dist/browser/operations/commitmentTiers.js +2 -2
- package/dist/browser/operations/commitmentTiers.js.map +1 -1
- package/dist/browser/operations/defenderForAISettings.d.ts +4 -4
- package/dist/browser/operations/defenderForAISettings.d.ts.map +1 -1
- package/dist/browser/operations/defenderForAISettings.js +2 -2
- package/dist/browser/operations/defenderForAISettings.js.map +1 -1
- package/dist/browser/operations/deletedAccounts.d.ts +5 -5
- package/dist/browser/operations/deletedAccounts.d.ts.map +1 -1
- package/dist/browser/operations/deletedAccounts.js +2 -2
- package/dist/browser/operations/deletedAccounts.js.map +1 -1
- package/dist/browser/operations/deployments.d.ts +5 -5
- package/dist/browser/operations/deployments.d.ts.map +1 -1
- package/dist/browser/operations/deployments.js +4 -4
- package/dist/browser/operations/deployments.js.map +1 -1
- package/dist/browser/operations/encryptionScopes.d.ts +5 -5
- package/dist/browser/operations/encryptionScopes.d.ts.map +1 -1
- package/dist/browser/operations/encryptionScopes.js +2 -2
- package/dist/browser/operations/encryptionScopes.js.map +1 -1
- package/dist/browser/operations/index.d.ts +2 -0
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +2 -0
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operations/locationBasedModelCapacities.d.ts +4 -4
- package/dist/browser/operations/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/browser/operations/locationBasedModelCapacities.js +2 -2
- package/dist/browser/operations/locationBasedModelCapacities.js.map +1 -1
- package/dist/browser/operations/modelCapacities.d.ts +4 -4
- package/dist/browser/operations/modelCapacities.d.ts.map +1 -1
- package/dist/browser/operations/modelCapacities.js +2 -2
- package/dist/browser/operations/modelCapacities.js.map +1 -1
- package/dist/browser/operations/models.d.ts +4 -4
- package/dist/browser/operations/models.d.ts.map +1 -1
- package/dist/browser/operations/models.js +2 -2
- package/dist/browser/operations/models.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts +5 -5
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +2 -2
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/browser/operations/operations.d.ts +4 -4
- package/dist/browser/operations/operations.d.ts.map +1 -1
- package/dist/browser/operations/operations.js +2 -2
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.d.ts +4 -4
- package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.d.ts +3 -3
- package/dist/browser/operations/privateLinkResources.d.ts.map +1 -1
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/projectCapabilityHosts.d.ts +34 -6
- package/dist/browser/operations/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/browser/operations/projectCapabilityHosts.js +120 -6
- package/dist/browser/operations/projectCapabilityHosts.js.map +1 -1
- package/dist/browser/operations/projectConnections.d.ts +4 -4
- package/dist/browser/operations/projectConnections.d.ts.map +1 -1
- package/dist/browser/operations/projectConnections.js +2 -2
- package/dist/browser/operations/projectConnections.js.map +1 -1
- package/dist/browser/operations/projects.d.ts +5 -5
- package/dist/browser/operations/projects.d.ts.map +1 -1
- package/dist/browser/operations/projects.js +2 -2
- package/dist/browser/operations/projects.js.map +1 -1
- package/dist/browser/operations/quotaTiers.d.ts +55 -0
- package/dist/browser/operations/quotaTiers.d.ts.map +1 -0
- package/dist/browser/operations/quotaTiers.js +195 -0
- package/dist/browser/operations/quotaTiers.js.map +1 -0
- package/dist/browser/operations/raiBlocklistItems.d.ts +5 -5
- package/dist/browser/operations/raiBlocklistItems.d.ts.map +1 -1
- package/dist/browser/operations/raiBlocklistItems.js +2 -2
- package/dist/browser/operations/raiBlocklistItems.js.map +1 -1
- package/dist/browser/operations/raiBlocklists.d.ts +5 -5
- package/dist/browser/operations/raiBlocklists.d.ts.map +1 -1
- package/dist/browser/operations/raiBlocklists.js +2 -2
- package/dist/browser/operations/raiBlocklists.js.map +1 -1
- package/dist/browser/operations/raiContentFilters.d.ts +4 -4
- package/dist/browser/operations/raiContentFilters.d.ts.map +1 -1
- package/dist/browser/operations/raiContentFilters.js +2 -2
- package/dist/browser/operations/raiContentFilters.js.map +1 -1
- package/dist/browser/operations/raiPolicies.d.ts +5 -5
- package/dist/browser/operations/raiPolicies.d.ts.map +1 -1
- package/dist/browser/operations/raiPolicies.js +2 -2
- package/dist/browser/operations/raiPolicies.js.map +1 -1
- package/dist/browser/operations/raiTopics.d.ts +72 -0
- package/dist/browser/operations/raiTopics.d.ts.map +1 -0
- package/dist/browser/operations/raiTopics.js +290 -0
- package/dist/browser/operations/raiTopics.js.map +1 -0
- package/dist/browser/operations/resourceSkus.d.ts +4 -4
- package/dist/browser/operations/resourceSkus.d.ts.map +1 -1
- package/dist/browser/operations/resourceSkus.js +2 -2
- package/dist/browser/operations/resourceSkus.js.map +1 -1
- package/dist/browser/operations/usages.d.ts +4 -4
- package/dist/browser/operations/usages.d.ts.map +1 -1
- package/dist/browser/operations/usages.js +2 -2
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/operationsInterfaces/accountCapabilityHosts.d.ts +10 -2
- package/dist/browser/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
- package/dist/browser/operationsInterfaces/accountConnections.d.ts +2 -2
- package/dist/browser/operationsInterfaces/accountConnections.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/accountConnections.js.map +1 -1
- package/dist/browser/operationsInterfaces/accounts.d.ts +3 -3
- package/dist/browser/operationsInterfaces/accounts.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/accounts.js.map +1 -1
- package/dist/browser/operationsInterfaces/commitmentPlans.d.ts +3 -3
- package/dist/browser/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/commitmentPlans.js.map +1 -1
- package/dist/browser/operationsInterfaces/commitmentTiers.d.ts +2 -2
- package/dist/browser/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/commitmentTiers.js.map +1 -1
- package/dist/browser/operationsInterfaces/defenderForAISettings.d.ts +2 -2
- package/dist/browser/operationsInterfaces/defenderForAISettings.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/defenderForAISettings.js.map +1 -1
- package/dist/browser/operationsInterfaces/deletedAccounts.d.ts +3 -3
- package/dist/browser/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/deletedAccounts.js.map +1 -1
- package/dist/browser/operationsInterfaces/deployments.d.ts +3 -3
- package/dist/browser/operationsInterfaces/deployments.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/deployments.js.map +1 -1
- package/dist/browser/operationsInterfaces/encryptionScopes.d.ts +3 -3
- package/dist/browser/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/encryptionScopes.js.map +1 -1
- package/dist/browser/operationsInterfaces/index.d.ts +2 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +2 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/locationBasedModelCapacities.d.ts +2 -2
- package/dist/browser/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/locationBasedModelCapacities.js.map +1 -1
- package/dist/browser/operationsInterfaces/modelCapacities.d.ts +2 -2
- package/dist/browser/operationsInterfaces/modelCapacities.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/modelCapacities.js.map +1 -1
- package/dist/browser/operationsInterfaces/models.d.ts +2 -2
- package/dist/browser/operationsInterfaces/models.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/models.js.map +1 -1
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +3 -3
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/browser/operationsInterfaces/operations.d.ts +2 -2
- package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -1
- package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
- package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operationsInterfaces/privateLinkResources.d.ts +1 -1
- package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -1
- package/dist/browser/operationsInterfaces/projectCapabilityHosts.d.ts +13 -4
- package/dist/browser/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
- package/dist/browser/operationsInterfaces/projectConnections.d.ts +2 -2
- package/dist/browser/operationsInterfaces/projectConnections.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/projectConnections.js.map +1 -1
- package/dist/browser/operationsInterfaces/projects.d.ts +3 -3
- package/dist/browser/operationsInterfaces/projects.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/projects.js.map +1 -1
- package/dist/browser/operationsInterfaces/quotaTiers.d.ts +34 -0
- package/dist/browser/operationsInterfaces/quotaTiers.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/quotaTiers.js +4 -0
- package/dist/browser/operationsInterfaces/quotaTiers.js.map +1 -0
- package/dist/browser/operationsInterfaces/raiBlocklistItems.d.ts +3 -3
- package/dist/browser/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/raiBlocklistItems.js.map +1 -1
- package/dist/browser/operationsInterfaces/raiBlocklists.d.ts +3 -3
- package/dist/browser/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/raiBlocklists.js.map +1 -1
- package/dist/browser/operationsInterfaces/raiContentFilters.d.ts +2 -2
- package/dist/browser/operationsInterfaces/raiContentFilters.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/raiContentFilters.js.map +1 -1
- package/dist/browser/operationsInterfaces/raiPolicies.d.ts +3 -3
- package/dist/browser/operationsInterfaces/raiPolicies.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/raiPolicies.js.map +1 -1
- package/dist/browser/operationsInterfaces/raiTopics.d.ts +47 -0
- package/dist/browser/operationsInterfaces/raiTopics.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/raiTopics.js +4 -0
- package/dist/browser/operationsInterfaces/raiTopics.js.map +1 -0
- package/dist/browser/operationsInterfaces/resourceSkus.d.ts +2 -2
- package/dist/browser/operationsInterfaces/resourceSkus.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/resourceSkus.js.map +1 -1
- package/dist/browser/operationsInterfaces/usages.d.ts +2 -2
- package/dist/browser/operationsInterfaces/usages.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/usages.js.map +1 -1
- package/dist/commonjs/cognitiveServicesManagementClient.d.ts +5 -3
- package/dist/commonjs/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist/commonjs/cognitiveServicesManagementClient.js +6 -2
- package/dist/commonjs/cognitiveServicesManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts +1 -1
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +342 -107
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +46 -18
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +18 -3
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +539 -131
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +6 -1
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +38 -3
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/accountCapabilityHosts.d.ts +29 -4
- package/dist/commonjs/operations/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/commonjs/operations/accountCapabilityHosts.js +109 -0
- package/dist/commonjs/operations/accountCapabilityHosts.js.map +1 -1
- package/dist/commonjs/operations/accountConnections.d.ts +4 -4
- package/dist/commonjs/operations/accountConnections.d.ts.map +1 -1
- package/dist/commonjs/operations/accountConnections.js +2 -2
- package/dist/commonjs/operations/accountConnections.js.map +1 -1
- package/dist/commonjs/operations/accounts.d.ts +5 -5
- package/dist/commonjs/operations/accounts.d.ts.map +1 -1
- package/dist/commonjs/operations/accounts.js +6 -6
- package/dist/commonjs/operations/accounts.js.map +1 -1
- package/dist/commonjs/operations/commitmentPlans.d.ts +5 -5
- package/dist/commonjs/operations/commitmentPlans.d.ts.map +1 -1
- package/dist/commonjs/operations/commitmentPlans.js +8 -8
- package/dist/commonjs/operations/commitmentPlans.js.map +1 -1
- package/dist/commonjs/operations/commitmentTiers.d.ts +4 -4
- package/dist/commonjs/operations/commitmentTiers.d.ts.map +1 -1
- package/dist/commonjs/operations/commitmentTiers.js +2 -2
- package/dist/commonjs/operations/commitmentTiers.js.map +1 -1
- package/dist/commonjs/operations/defenderForAISettings.d.ts +4 -4
- package/dist/commonjs/operations/defenderForAISettings.d.ts.map +1 -1
- package/dist/commonjs/operations/defenderForAISettings.js +2 -2
- package/dist/commonjs/operations/defenderForAISettings.js.map +1 -1
- package/dist/commonjs/operations/deletedAccounts.d.ts +5 -5
- package/dist/commonjs/operations/deletedAccounts.d.ts.map +1 -1
- package/dist/commonjs/operations/deletedAccounts.js +2 -2
- package/dist/commonjs/operations/deletedAccounts.js.map +1 -1
- package/dist/commonjs/operations/deployments.d.ts +5 -5
- package/dist/commonjs/operations/deployments.d.ts.map +1 -1
- package/dist/commonjs/operations/deployments.js +4 -4
- package/dist/commonjs/operations/deployments.js.map +1 -1
- package/dist/commonjs/operations/encryptionScopes.d.ts +5 -5
- package/dist/commonjs/operations/encryptionScopes.d.ts.map +1 -1
- package/dist/commonjs/operations/encryptionScopes.js +2 -2
- package/dist/commonjs/operations/encryptionScopes.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts +2 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +2 -0
- package/dist/commonjs/operations/index.js.map +1 -1
- package/dist/commonjs/operations/locationBasedModelCapacities.d.ts +4 -4
- package/dist/commonjs/operations/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/commonjs/operations/locationBasedModelCapacities.js +2 -2
- package/dist/commonjs/operations/locationBasedModelCapacities.js.map +1 -1
- package/dist/commonjs/operations/modelCapacities.d.ts +4 -4
- package/dist/commonjs/operations/modelCapacities.d.ts.map +1 -1
- package/dist/commonjs/operations/modelCapacities.js +2 -2
- package/dist/commonjs/operations/modelCapacities.js.map +1 -1
- package/dist/commonjs/operations/models.d.ts +4 -4
- package/dist/commonjs/operations/models.d.ts.map +1 -1
- package/dist/commonjs/operations/models.js +2 -2
- package/dist/commonjs/operations/models.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts +5 -5
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +2 -2
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/commonjs/operations/operations.d.ts +4 -4
- package/dist/commonjs/operations/operations.d.ts.map +1 -1
- package/dist/commonjs/operations/operations.js +2 -2
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.d.ts +4 -4
- package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.d.ts +3 -3
- package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/projectCapabilityHosts.d.ts +34 -6
- package/dist/commonjs/operations/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/commonjs/operations/projectCapabilityHosts.js +120 -6
- package/dist/commonjs/operations/projectCapabilityHosts.js.map +1 -1
- package/dist/commonjs/operations/projectConnections.d.ts +4 -4
- package/dist/commonjs/operations/projectConnections.d.ts.map +1 -1
- package/dist/commonjs/operations/projectConnections.js +2 -2
- package/dist/commonjs/operations/projectConnections.js.map +1 -1
- package/dist/commonjs/operations/projects.d.ts +5 -5
- package/dist/commonjs/operations/projects.d.ts.map +1 -1
- package/dist/commonjs/operations/projects.js +2 -2
- package/dist/commonjs/operations/projects.js.map +1 -1
- package/dist/commonjs/operations/quotaTiers.d.ts +55 -0
- package/dist/commonjs/operations/quotaTiers.d.ts.map +1 -0
- package/dist/commonjs/operations/quotaTiers.js +200 -0
- package/dist/commonjs/operations/quotaTiers.js.map +1 -0
- package/dist/commonjs/operations/raiBlocklistItems.d.ts +5 -5
- package/dist/commonjs/operations/raiBlocklistItems.d.ts.map +1 -1
- package/dist/commonjs/operations/raiBlocklistItems.js +2 -2
- package/dist/commonjs/operations/raiBlocklistItems.js.map +1 -1
- package/dist/commonjs/operations/raiBlocklists.d.ts +5 -5
- package/dist/commonjs/operations/raiBlocklists.d.ts.map +1 -1
- package/dist/commonjs/operations/raiBlocklists.js +2 -2
- package/dist/commonjs/operations/raiBlocklists.js.map +1 -1
- package/dist/commonjs/operations/raiContentFilters.d.ts +4 -4
- package/dist/commonjs/operations/raiContentFilters.d.ts.map +1 -1
- package/dist/commonjs/operations/raiContentFilters.js +2 -2
- package/dist/commonjs/operations/raiContentFilters.js.map +1 -1
- package/dist/commonjs/operations/raiPolicies.d.ts +5 -5
- package/dist/commonjs/operations/raiPolicies.d.ts.map +1 -1
- package/dist/commonjs/operations/raiPolicies.js +2 -2
- package/dist/commonjs/operations/raiPolicies.js.map +1 -1
- package/dist/commonjs/operations/raiTopics.d.ts +72 -0
- package/dist/commonjs/operations/raiTopics.d.ts.map +1 -0
- package/dist/commonjs/operations/raiTopics.js +295 -0
- package/dist/commonjs/operations/raiTopics.js.map +1 -0
- package/dist/commonjs/operations/resourceSkus.d.ts +4 -4
- package/dist/commonjs/operations/resourceSkus.d.ts.map +1 -1
- package/dist/commonjs/operations/resourceSkus.js +2 -2
- package/dist/commonjs/operations/resourceSkus.js.map +1 -1
- package/dist/commonjs/operations/usages.d.ts +4 -4
- package/dist/commonjs/operations/usages.d.ts.map +1 -1
- package/dist/commonjs/operations/usages.js +2 -2
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.d.ts +10 -2
- package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/accountConnections.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/accountConnections.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/accountConnections.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/accounts.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/accounts.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/accounts.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/commitmentPlans.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/commitmentPlans.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/commitmentTiers.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/commitmentTiers.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/defenderForAISettings.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/defenderForAISettings.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/defenderForAISettings.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/deletedAccounts.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/deletedAccounts.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/deployments.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/deployments.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/deployments.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/encryptionScopes.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/encryptionScopes.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +2 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/locationBasedModelCapacities.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/locationBasedModelCapacities.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/modelCapacities.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/modelCapacities.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/modelCapacities.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/models.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/models.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/models.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +1 -1
- package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.d.ts +13 -4
- package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/projectConnections.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/projectConnections.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/projectConnections.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/projects.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/projects.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/projects.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/quotaTiers.d.ts +34 -0
- package/dist/commonjs/operationsInterfaces/quotaTiers.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/quotaTiers.js +5 -0
- package/dist/commonjs/operationsInterfaces/quotaTiers.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/raiBlocklistItems.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiBlocklistItems.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiBlocklists.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiBlocklists.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiContentFilters.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/raiContentFilters.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiContentFilters.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiPolicies.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/raiPolicies.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiPolicies.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/raiTopics.d.ts +47 -0
- package/dist/commonjs/operationsInterfaces/raiTopics.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/raiTopics.js +5 -0
- package/dist/commonjs/operationsInterfaces/raiTopics.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/resourceSkus.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/resourceSkus.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/resourceSkus.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/usages.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/usages.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/usages.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/cognitiveServicesManagementClient.d.ts +5 -3
- package/dist/esm/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist/esm/cognitiveServicesManagementClient.js +7 -3
- package/dist/esm/cognitiveServicesManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.d.ts +1 -1
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +342 -107
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +45 -17
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +18 -3
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +536 -128
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +6 -1
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +37 -2
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/accountCapabilityHosts.d.ts +29 -4
- package/dist/esm/operations/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/esm/operations/accountCapabilityHosts.js +109 -0
- package/dist/esm/operations/accountCapabilityHosts.js.map +1 -1
- package/dist/esm/operations/accountConnections.d.ts +4 -4
- package/dist/esm/operations/accountConnections.d.ts.map +1 -1
- package/dist/esm/operations/accountConnections.js +2 -2
- package/dist/esm/operations/accountConnections.js.map +1 -1
- package/dist/esm/operations/accounts.d.ts +5 -5
- package/dist/esm/operations/accounts.d.ts.map +1 -1
- package/dist/esm/operations/accounts.js +6 -6
- package/dist/esm/operations/accounts.js.map +1 -1
- package/dist/esm/operations/commitmentPlans.d.ts +5 -5
- package/dist/esm/operations/commitmentPlans.d.ts.map +1 -1
- package/dist/esm/operations/commitmentPlans.js +8 -8
- package/dist/esm/operations/commitmentPlans.js.map +1 -1
- package/dist/esm/operations/commitmentTiers.d.ts +4 -4
- package/dist/esm/operations/commitmentTiers.d.ts.map +1 -1
- package/dist/esm/operations/commitmentTiers.js +2 -2
- package/dist/esm/operations/commitmentTiers.js.map +1 -1
- package/dist/esm/operations/defenderForAISettings.d.ts +4 -4
- package/dist/esm/operations/defenderForAISettings.d.ts.map +1 -1
- package/dist/esm/operations/defenderForAISettings.js +2 -2
- package/dist/esm/operations/defenderForAISettings.js.map +1 -1
- package/dist/esm/operations/deletedAccounts.d.ts +5 -5
- package/dist/esm/operations/deletedAccounts.d.ts.map +1 -1
- package/dist/esm/operations/deletedAccounts.js +2 -2
- package/dist/esm/operations/deletedAccounts.js.map +1 -1
- package/dist/esm/operations/deployments.d.ts +5 -5
- package/dist/esm/operations/deployments.d.ts.map +1 -1
- package/dist/esm/operations/deployments.js +4 -4
- package/dist/esm/operations/deployments.js.map +1 -1
- package/dist/esm/operations/encryptionScopes.d.ts +5 -5
- package/dist/esm/operations/encryptionScopes.d.ts.map +1 -1
- package/dist/esm/operations/encryptionScopes.js +2 -2
- package/dist/esm/operations/encryptionScopes.js.map +1 -1
- package/dist/esm/operations/index.d.ts +2 -0
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +2 -0
- package/dist/esm/operations/index.js.map +1 -1
- package/dist/esm/operations/locationBasedModelCapacities.d.ts +4 -4
- package/dist/esm/operations/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/esm/operations/locationBasedModelCapacities.js +2 -2
- package/dist/esm/operations/locationBasedModelCapacities.js.map +1 -1
- package/dist/esm/operations/modelCapacities.d.ts +4 -4
- package/dist/esm/operations/modelCapacities.d.ts.map +1 -1
- package/dist/esm/operations/modelCapacities.js +2 -2
- package/dist/esm/operations/modelCapacities.js.map +1 -1
- package/dist/esm/operations/models.d.ts +4 -4
- package/dist/esm/operations/models.d.ts.map +1 -1
- package/dist/esm/operations/models.js +2 -2
- package/dist/esm/operations/models.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts +5 -5
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +2 -2
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/esm/operations/operations.d.ts +4 -4
- package/dist/esm/operations/operations.d.ts.map +1 -1
- package/dist/esm/operations/operations.js +2 -2
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.d.ts +4 -4
- package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.d.ts +3 -3
- package/dist/esm/operations/privateLinkResources.d.ts.map +1 -1
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/projectCapabilityHosts.d.ts +34 -6
- package/dist/esm/operations/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/esm/operations/projectCapabilityHosts.js +120 -6
- package/dist/esm/operations/projectCapabilityHosts.js.map +1 -1
- package/dist/esm/operations/projectConnections.d.ts +4 -4
- package/dist/esm/operations/projectConnections.d.ts.map +1 -1
- package/dist/esm/operations/projectConnections.js +2 -2
- package/dist/esm/operations/projectConnections.js.map +1 -1
- package/dist/esm/operations/projects.d.ts +5 -5
- package/dist/esm/operations/projects.d.ts.map +1 -1
- package/dist/esm/operations/projects.js +2 -2
- package/dist/esm/operations/projects.js.map +1 -1
- package/dist/esm/operations/quotaTiers.d.ts +55 -0
- package/dist/esm/operations/quotaTiers.d.ts.map +1 -0
- package/dist/esm/operations/quotaTiers.js +195 -0
- package/dist/esm/operations/quotaTiers.js.map +1 -0
- package/dist/esm/operations/raiBlocklistItems.d.ts +5 -5
- package/dist/esm/operations/raiBlocklistItems.d.ts.map +1 -1
- package/dist/esm/operations/raiBlocklistItems.js +2 -2
- package/dist/esm/operations/raiBlocklistItems.js.map +1 -1
- package/dist/esm/operations/raiBlocklists.d.ts +5 -5
- package/dist/esm/operations/raiBlocklists.d.ts.map +1 -1
- package/dist/esm/operations/raiBlocklists.js +2 -2
- package/dist/esm/operations/raiBlocklists.js.map +1 -1
- package/dist/esm/operations/raiContentFilters.d.ts +4 -4
- package/dist/esm/operations/raiContentFilters.d.ts.map +1 -1
- package/dist/esm/operations/raiContentFilters.js +2 -2
- package/dist/esm/operations/raiContentFilters.js.map +1 -1
- package/dist/esm/operations/raiPolicies.d.ts +5 -5
- package/dist/esm/operations/raiPolicies.d.ts.map +1 -1
- package/dist/esm/operations/raiPolicies.js +2 -2
- package/dist/esm/operations/raiPolicies.js.map +1 -1
- package/dist/esm/operations/raiTopics.d.ts +72 -0
- package/dist/esm/operations/raiTopics.d.ts.map +1 -0
- package/dist/esm/operations/raiTopics.js +290 -0
- package/dist/esm/operations/raiTopics.js.map +1 -0
- package/dist/esm/operations/resourceSkus.d.ts +4 -4
- package/dist/esm/operations/resourceSkus.d.ts.map +1 -1
- package/dist/esm/operations/resourceSkus.js +2 -2
- package/dist/esm/operations/resourceSkus.js.map +1 -1
- package/dist/esm/operations/usages.d.ts +4 -4
- package/dist/esm/operations/usages.d.ts.map +1 -1
- package/dist/esm/operations/usages.js +2 -2
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/operationsInterfaces/accountCapabilityHosts.d.ts +10 -2
- package/dist/esm/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
- package/dist/esm/operationsInterfaces/accountConnections.d.ts +2 -2
- package/dist/esm/operationsInterfaces/accountConnections.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/accountConnections.js.map +1 -1
- package/dist/esm/operationsInterfaces/accounts.d.ts +3 -3
- package/dist/esm/operationsInterfaces/accounts.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/accounts.js.map +1 -1
- package/dist/esm/operationsInterfaces/commitmentPlans.d.ts +3 -3
- package/dist/esm/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/commitmentPlans.js.map +1 -1
- package/dist/esm/operationsInterfaces/commitmentTiers.d.ts +2 -2
- package/dist/esm/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/commitmentTiers.js.map +1 -1
- package/dist/esm/operationsInterfaces/defenderForAISettings.d.ts +2 -2
- package/dist/esm/operationsInterfaces/defenderForAISettings.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/defenderForAISettings.js.map +1 -1
- package/dist/esm/operationsInterfaces/deletedAccounts.d.ts +3 -3
- package/dist/esm/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/deletedAccounts.js.map +1 -1
- package/dist/esm/operationsInterfaces/deployments.d.ts +3 -3
- package/dist/esm/operationsInterfaces/deployments.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/deployments.js.map +1 -1
- package/dist/esm/operationsInterfaces/encryptionScopes.d.ts +3 -3
- package/dist/esm/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/encryptionScopes.js.map +1 -1
- package/dist/esm/operationsInterfaces/index.d.ts +2 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +2 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/operationsInterfaces/locationBasedModelCapacities.d.ts +2 -2
- package/dist/esm/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/locationBasedModelCapacities.js.map +1 -1
- package/dist/esm/operationsInterfaces/modelCapacities.d.ts +2 -2
- package/dist/esm/operationsInterfaces/modelCapacities.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/modelCapacities.js.map +1 -1
- package/dist/esm/operationsInterfaces/models.d.ts +2 -2
- package/dist/esm/operationsInterfaces/models.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/models.js.map +1 -1
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +3 -3
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/esm/operationsInterfaces/operations.d.ts +2 -2
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/operations.js.map +1 -1
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +1 -1
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -1
- package/dist/esm/operationsInterfaces/projectCapabilityHosts.d.ts +13 -4
- package/dist/esm/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
- package/dist/esm/operationsInterfaces/projectConnections.d.ts +2 -2
- package/dist/esm/operationsInterfaces/projectConnections.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/projectConnections.js.map +1 -1
- package/dist/esm/operationsInterfaces/projects.d.ts +3 -3
- package/dist/esm/operationsInterfaces/projects.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/projects.js.map +1 -1
- package/dist/esm/operationsInterfaces/quotaTiers.d.ts +34 -0
- package/dist/esm/operationsInterfaces/quotaTiers.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/quotaTiers.js +4 -0
- package/dist/esm/operationsInterfaces/quotaTiers.js.map +1 -0
- package/dist/esm/operationsInterfaces/raiBlocklistItems.d.ts +3 -3
- package/dist/esm/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/raiBlocklistItems.js.map +1 -1
- package/dist/esm/operationsInterfaces/raiBlocklists.d.ts +3 -3
- package/dist/esm/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/raiBlocklists.js.map +1 -1
- package/dist/esm/operationsInterfaces/raiContentFilters.d.ts +2 -2
- package/dist/esm/operationsInterfaces/raiContentFilters.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/raiContentFilters.js.map +1 -1
- package/dist/esm/operationsInterfaces/raiPolicies.d.ts +3 -3
- package/dist/esm/operationsInterfaces/raiPolicies.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/raiPolicies.js.map +1 -1
- package/dist/esm/operationsInterfaces/raiTopics.d.ts +47 -0
- package/dist/esm/operationsInterfaces/raiTopics.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/raiTopics.js +4 -0
- package/dist/esm/operationsInterfaces/raiTopics.js.map +1 -0
- package/dist/esm/operationsInterfaces/resourceSkus.d.ts +2 -2
- package/dist/esm/operationsInterfaces/resourceSkus.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/resourceSkus.js.map +1 -1
- package/dist/esm/operationsInterfaces/usages.d.ts +2 -2
- package/dist/esm/operationsInterfaces/usages.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/usages.js.map +1 -1
- package/dist/react-native/cognitiveServicesManagementClient.d.ts +5 -3
- package/dist/react-native/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist/react-native/cognitiveServicesManagementClient.js +7 -3
- package/dist/react-native/cognitiveServicesManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts +1 -1
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +342 -107
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +45 -17
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +18 -3
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +536 -128
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +6 -1
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +37 -2
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/accountCapabilityHosts.d.ts +29 -4
- package/dist/react-native/operations/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/react-native/operations/accountCapabilityHosts.js +109 -0
- package/dist/react-native/operations/accountCapabilityHosts.js.map +1 -1
- package/dist/react-native/operations/accountConnections.d.ts +4 -4
- package/dist/react-native/operations/accountConnections.d.ts.map +1 -1
- package/dist/react-native/operations/accountConnections.js +2 -2
- package/dist/react-native/operations/accountConnections.js.map +1 -1
- package/dist/react-native/operations/accounts.d.ts +5 -5
- package/dist/react-native/operations/accounts.d.ts.map +1 -1
- package/dist/react-native/operations/accounts.js +6 -6
- package/dist/react-native/operations/accounts.js.map +1 -1
- package/dist/react-native/operations/commitmentPlans.d.ts +5 -5
- package/dist/react-native/operations/commitmentPlans.d.ts.map +1 -1
- package/dist/react-native/operations/commitmentPlans.js +8 -8
- package/dist/react-native/operations/commitmentPlans.js.map +1 -1
- package/dist/react-native/operations/commitmentTiers.d.ts +4 -4
- package/dist/react-native/operations/commitmentTiers.d.ts.map +1 -1
- package/dist/react-native/operations/commitmentTiers.js +2 -2
- package/dist/react-native/operations/commitmentTiers.js.map +1 -1
- package/dist/react-native/operations/defenderForAISettings.d.ts +4 -4
- package/dist/react-native/operations/defenderForAISettings.d.ts.map +1 -1
- package/dist/react-native/operations/defenderForAISettings.js +2 -2
- package/dist/react-native/operations/defenderForAISettings.js.map +1 -1
- package/dist/react-native/operations/deletedAccounts.d.ts +5 -5
- package/dist/react-native/operations/deletedAccounts.d.ts.map +1 -1
- package/dist/react-native/operations/deletedAccounts.js +2 -2
- package/dist/react-native/operations/deletedAccounts.js.map +1 -1
- package/dist/react-native/operations/deployments.d.ts +5 -5
- package/dist/react-native/operations/deployments.d.ts.map +1 -1
- package/dist/react-native/operations/deployments.js +4 -4
- package/dist/react-native/operations/deployments.js.map +1 -1
- package/dist/react-native/operations/encryptionScopes.d.ts +5 -5
- package/dist/react-native/operations/encryptionScopes.d.ts.map +1 -1
- package/dist/react-native/operations/encryptionScopes.js +2 -2
- package/dist/react-native/operations/encryptionScopes.js.map +1 -1
- package/dist/react-native/operations/index.d.ts +2 -0
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +2 -0
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operations/locationBasedModelCapacities.d.ts +4 -4
- package/dist/react-native/operations/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/react-native/operations/locationBasedModelCapacities.js +2 -2
- package/dist/react-native/operations/locationBasedModelCapacities.js.map +1 -1
- package/dist/react-native/operations/modelCapacities.d.ts +4 -4
- package/dist/react-native/operations/modelCapacities.d.ts.map +1 -1
- package/dist/react-native/operations/modelCapacities.js +2 -2
- package/dist/react-native/operations/modelCapacities.js.map +1 -1
- package/dist/react-native/operations/models.d.ts +4 -4
- package/dist/react-native/operations/models.d.ts.map +1 -1
- package/dist/react-native/operations/models.js +2 -2
- package/dist/react-native/operations/models.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts +5 -5
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +2 -2
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/react-native/operations/operations.d.ts +4 -4
- package/dist/react-native/operations/operations.d.ts.map +1 -1
- package/dist/react-native/operations/operations.js +2 -2
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.d.ts +4 -4
- package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.d.ts +3 -3
- package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/projectCapabilityHosts.d.ts +34 -6
- package/dist/react-native/operations/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/react-native/operations/projectCapabilityHosts.js +120 -6
- package/dist/react-native/operations/projectCapabilityHosts.js.map +1 -1
- package/dist/react-native/operations/projectConnections.d.ts +4 -4
- package/dist/react-native/operations/projectConnections.d.ts.map +1 -1
- package/dist/react-native/operations/projectConnections.js +2 -2
- package/dist/react-native/operations/projectConnections.js.map +1 -1
- package/dist/react-native/operations/projects.d.ts +5 -5
- package/dist/react-native/operations/projects.d.ts.map +1 -1
- package/dist/react-native/operations/projects.js +2 -2
- package/dist/react-native/operations/projects.js.map +1 -1
- package/dist/react-native/operations/quotaTiers.d.ts +55 -0
- package/dist/react-native/operations/quotaTiers.d.ts.map +1 -0
- package/dist/react-native/operations/quotaTiers.js +195 -0
- package/dist/react-native/operations/quotaTiers.js.map +1 -0
- package/dist/react-native/operations/raiBlocklistItems.d.ts +5 -5
- package/dist/react-native/operations/raiBlocklistItems.d.ts.map +1 -1
- package/dist/react-native/operations/raiBlocklistItems.js +2 -2
- package/dist/react-native/operations/raiBlocklistItems.js.map +1 -1
- package/dist/react-native/operations/raiBlocklists.d.ts +5 -5
- package/dist/react-native/operations/raiBlocklists.d.ts.map +1 -1
- package/dist/react-native/operations/raiBlocklists.js +2 -2
- package/dist/react-native/operations/raiBlocklists.js.map +1 -1
- package/dist/react-native/operations/raiContentFilters.d.ts +4 -4
- package/dist/react-native/operations/raiContentFilters.d.ts.map +1 -1
- package/dist/react-native/operations/raiContentFilters.js +2 -2
- package/dist/react-native/operations/raiContentFilters.js.map +1 -1
- package/dist/react-native/operations/raiPolicies.d.ts +5 -5
- package/dist/react-native/operations/raiPolicies.d.ts.map +1 -1
- package/dist/react-native/operations/raiPolicies.js +2 -2
- package/dist/react-native/operations/raiPolicies.js.map +1 -1
- package/dist/react-native/operations/raiTopics.d.ts +72 -0
- package/dist/react-native/operations/raiTopics.d.ts.map +1 -0
- package/dist/react-native/operations/raiTopics.js +290 -0
- package/dist/react-native/operations/raiTopics.js.map +1 -0
- package/dist/react-native/operations/resourceSkus.d.ts +4 -4
- package/dist/react-native/operations/resourceSkus.d.ts.map +1 -1
- package/dist/react-native/operations/resourceSkus.js +2 -2
- package/dist/react-native/operations/resourceSkus.js.map +1 -1
- package/dist/react-native/operations/usages.d.ts +4 -4
- package/dist/react-native/operations/usages.d.ts.map +1 -1
- package/dist/react-native/operations/usages.js +2 -2
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/operationsInterfaces/accountCapabilityHosts.d.ts +10 -2
- package/dist/react-native/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
- package/dist/react-native/operationsInterfaces/accountConnections.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/accountConnections.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/accountConnections.js.map +1 -1
- package/dist/react-native/operationsInterfaces/accounts.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/accounts.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/accounts.js.map +1 -1
- package/dist/react-native/operationsInterfaces/commitmentPlans.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/commitmentPlans.js.map +1 -1
- package/dist/react-native/operationsInterfaces/commitmentTiers.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/commitmentTiers.js.map +1 -1
- package/dist/react-native/operationsInterfaces/defenderForAISettings.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/defenderForAISettings.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/defenderForAISettings.js.map +1 -1
- package/dist/react-native/operationsInterfaces/deletedAccounts.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/deletedAccounts.js.map +1 -1
- package/dist/react-native/operationsInterfaces/deployments.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/deployments.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/deployments.js.map +1 -1
- package/dist/react-native/operationsInterfaces/encryptionScopes.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/encryptionScopes.js.map +1 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +2 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/locationBasedModelCapacities.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/locationBasedModelCapacities.js.map +1 -1
- package/dist/react-native/operationsInterfaces/modelCapacities.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/modelCapacities.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/modelCapacities.js.map +1 -1
- package/dist/react-native/operationsInterfaces/models.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/models.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/models.js.map +1 -1
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +1 -1
- package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -1
- package/dist/react-native/operationsInterfaces/projectCapabilityHosts.d.ts +13 -4
- package/dist/react-native/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
- package/dist/react-native/operationsInterfaces/projectConnections.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/projectConnections.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/projectConnections.js.map +1 -1
- package/dist/react-native/operationsInterfaces/projects.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/projects.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/projects.js.map +1 -1
- package/dist/react-native/operationsInterfaces/quotaTiers.d.ts +34 -0
- package/dist/react-native/operationsInterfaces/quotaTiers.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/quotaTiers.js +4 -0
- package/dist/react-native/operationsInterfaces/quotaTiers.js.map +1 -0
- package/dist/react-native/operationsInterfaces/raiBlocklistItems.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/raiBlocklistItems.js.map +1 -1
- package/dist/react-native/operationsInterfaces/raiBlocklists.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/raiBlocklists.js.map +1 -1
- package/dist/react-native/operationsInterfaces/raiContentFilters.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/raiContentFilters.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/raiContentFilters.js.map +1 -1
- package/dist/react-native/operationsInterfaces/raiPolicies.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/raiPolicies.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/raiPolicies.js.map +1 -1
- package/dist/react-native/operationsInterfaces/raiTopics.d.ts +47 -0
- package/dist/react-native/operationsInterfaces/raiTopics.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/raiTopics.js +4 -0
- package/dist/react-native/operationsInterfaces/raiTopics.js.map +1 -0
- package/dist/react-native/operationsInterfaces/resourceSkus.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/resourceSkus.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/resourceSkus.js.map +1 -1
- package/dist/react-native/operationsInterfaces/usages.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/usages.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/usages.js.map +1 -1
- package/package.json +36 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/operations/projects.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAAqF;AACrF,8CAA8C;AAgB9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IACN,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,OAAoC;QAEpC,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,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChF,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,OAAoC,EACpC,QAAuB;QAEvB,IAAI,MAA4B,CAAC;QACjC,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,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AAC;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,iBAAiB;SACtC;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 { Projects } 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 Project,\n ProjectsListNextOptionalParams,\n ProjectsListOptionalParams,\n ProjectsListResponse,\n ProjectsCreateOptionalParams,\n ProjectsCreateResponse,\n ProjectsUpdateOptionalParams,\n ProjectsUpdateResponse,\n ProjectsDeleteOptionalParams,\n ProjectsGetOptionalParams,\n ProjectsGetResponse,\n ProjectsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Projects operations. */\nexport class ProjectsImpl implements Projects {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class Projects class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns all the projects in a Cognitive Services 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?: ProjectsListOptionalParams,\n ): PagedAsyncIterableIterator<Project> {\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?: ProjectsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Project[]> {\n let result: ProjectsListResponse;\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?: ProjectsListOptionalParams,\n ): AsyncIterableIterator<Project> {\n for await (const page of this.listPagingPage(resourceGroupName, accountName, options)) {\n yield* page;\n }\n }\n\n /**\n * Create Cognitive Services Account's Project. Project is a sub-resource of an account which give AI\n * developer it's individual container to work on.\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 projectName The name of Cognitive Services account's project.\n * @param project The parameters to provide for the created project.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n project: Project,\n options?: ProjectsCreateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<ProjectsCreateResponse>, ProjectsCreateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ProjectsCreateResponse> => {\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, projectName, project, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n ProjectsCreateResponse,\n OperationState<ProjectsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create Cognitive Services Account's Project. Project is a sub-resource of an account which give AI\n * developer it's individual container to work on.\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 projectName The name of Cognitive Services account's project.\n * @param project The parameters to provide for the created project.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n project: Project,\n options?: ProjectsCreateOptionalParams,\n ): Promise<ProjectsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n accountName,\n projectName,\n project,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a Cognitive Services Project\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 projectName The name of Cognitive Services account's project.\n * @param project The parameters to provide for the created project.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n project: Project,\n options?: ProjectsUpdateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<ProjectsUpdateResponse>, ProjectsUpdateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ProjectsUpdateResponse> => {\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, projectName, project, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ProjectsUpdateResponse,\n OperationState<ProjectsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates a Cognitive Services Project\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 projectName The name of Cognitive Services account's project.\n * @param project The parameters to provide for the created project.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n project: Project,\n options?: ProjectsUpdateOptionalParams,\n ): Promise<ProjectsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n accountName,\n projectName,\n project,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a Cognitive Services project from the resource group.\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 projectName The name of Cognitive Services account's project.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n options?: ProjectsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\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, projectName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a Cognitive Services project from the resource group.\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 projectName The name of Cognitive Services account's project.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n options?: ProjectsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, accountName, projectName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Returns a Cognitive Services project specified by the parameters.\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 projectName The name of Cognitive Services account's project.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n options?: ProjectsGetOptionalParams,\n ): Promise<ProjectsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, projectName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Returns all the projects in a Cognitive Services 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?: ProjectsListOptionalParams,\n ): Promise<ProjectsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param 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?: ProjectsListNextOptionalParams,\n ): Promise<ProjectsListNextResponse> {\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 createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Project,\n },\n 201: {\n bodyMapper: Mappers.Project,\n },\n 202: {\n bodyMapper: Mappers.Project,\n },\n 204: {\n bodyMapper: Mappers.Project,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.project,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Project,\n },\n 201: {\n bodyMapper: Mappers.Project,\n },\n 202: {\n bodyMapper: Mappers.Project,\n },\n 204: {\n bodyMapper: Mappers.Project,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.project,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.projectName,\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}/projects/{projectName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\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.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Project,\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.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectListResult,\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 listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectListResult,\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":"projects.js","sourceRoot":"","sources":["../../../src/operations/projects.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAGtD,8CAAmD;AACnD,8CAA8C;AAgB9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,Y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B,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 type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { Projects } 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 type { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n Project,\n ProjectsListNextOptionalParams,\n ProjectsListOptionalParams,\n ProjectsListResponse,\n ProjectsCreateOptionalParams,\n ProjectsCreateResponse,\n ProjectsUpdateOptionalParams,\n ProjectsUpdateResponse,\n ProjectsDeleteOptionalParams,\n ProjectsGetOptionalParams,\n ProjectsGetResponse,\n ProjectsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Projects operations. */\nexport class ProjectsImpl implements Projects {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class Projects class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns all the projects in a Cognitive Services 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?: ProjectsListOptionalParams,\n ): PagedAsyncIterableIterator<Project> {\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?: ProjectsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Project[]> {\n let result: ProjectsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, options);\n const 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 const 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?: ProjectsListOptionalParams,\n ): AsyncIterableIterator<Project> {\n for await (const page of this.listPagingPage(resourceGroupName, accountName, options)) {\n yield* page;\n }\n }\n\n /**\n * Create Cognitive Services Account's Project. Project is a sub-resource of an account which give AI\n * developer it's individual container to work on.\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 projectName The name of Cognitive Services account's project.\n * @param project The parameters to provide for the created project.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n project: Project,\n options?: ProjectsCreateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<ProjectsCreateResponse>, ProjectsCreateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ProjectsCreateResponse> => {\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, projectName, project, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n ProjectsCreateResponse,\n OperationState<ProjectsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create Cognitive Services Account's Project. Project is a sub-resource of an account which give AI\n * developer it's individual container to work on.\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 projectName The name of Cognitive Services account's project.\n * @param project The parameters to provide for the created project.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n project: Project,\n options?: ProjectsCreateOptionalParams,\n ): Promise<ProjectsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n accountName,\n projectName,\n project,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a Cognitive Services Project\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 projectName The name of Cognitive Services account's project.\n * @param project The parameters to provide for the created project.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n project: Project,\n options?: ProjectsUpdateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<ProjectsUpdateResponse>, ProjectsUpdateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ProjectsUpdateResponse> => {\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, projectName, project, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ProjectsUpdateResponse,\n OperationState<ProjectsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates a Cognitive Services Project\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 projectName The name of Cognitive Services account's project.\n * @param project The parameters to provide for the created project.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n project: Project,\n options?: ProjectsUpdateOptionalParams,\n ): Promise<ProjectsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n accountName,\n projectName,\n project,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a Cognitive Services project from the resource group.\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 projectName The name of Cognitive Services account's project.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n options?: ProjectsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\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, projectName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a Cognitive Services project from the resource group.\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 projectName The name of Cognitive Services account's project.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n options?: ProjectsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, accountName, projectName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Returns a Cognitive Services project specified by the parameters.\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 projectName The name of Cognitive Services account's project.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n options?: ProjectsGetOptionalParams,\n ): Promise<ProjectsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, projectName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Returns all the projects in a Cognitive Services 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?: ProjectsListOptionalParams,\n ): Promise<ProjectsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param 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?: ProjectsListNextOptionalParams,\n ): Promise<ProjectsListNextResponse> {\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 createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Project,\n },\n 201: {\n bodyMapper: Mappers.Project,\n },\n 202: {\n bodyMapper: Mappers.Project,\n },\n 204: {\n bodyMapper: Mappers.Project,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.project,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Project,\n },\n 201: {\n bodyMapper: Mappers.Project,\n },\n 202: {\n bodyMapper: Mappers.Project,\n },\n 204: {\n bodyMapper: Mappers.Project,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.project,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.projectName,\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}/projects/{projectName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\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.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Project,\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.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectListResult,\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 listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectListResult,\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"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import type { QuotaTiers } from "../operationsInterfaces/index.js";
|
|
3
|
+
import type { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient.js";
|
|
4
|
+
import type { QuotaTier, QuotaTiersListBySubscriptionOptionalParams, QuotaTiersGetOptionalParams, QuotaTiersGetResponse, QuotaTiersUpdateOptionalParams, QuotaTiersUpdateResponse, QuotaTiersCreateOrUpdateOptionalParams, QuotaTiersCreateOrUpdateResponse } from "../models/index.js";
|
|
5
|
+
/** Class containing QuotaTiers operations. */
|
|
6
|
+
export declare class QuotaTiersImpl implements QuotaTiers {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class QuotaTiers class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: CognitiveServicesManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Returns all the resources of a particular type belonging to a subscription.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
listBySubscription(options?: QuotaTiersListBySubscriptionOptionalParams): PagedAsyncIterableIterator<QuotaTier>;
|
|
18
|
+
private listBySubscriptionPagingPage;
|
|
19
|
+
private listBySubscriptionPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Returns all the resources of a particular type belonging to a subscription.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _listBySubscription;
|
|
25
|
+
/**
|
|
26
|
+
* Gets the Quota Tier information for the given subscription. QuotaTiers is a subscription wide
|
|
27
|
+
* resource type. It holds current tier information.
|
|
28
|
+
* @param defaultParam Default parameter. Leave the value as "default".
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
get(defaultParam: string, options?: QuotaTiersGetOptionalParams): Promise<QuotaTiersGetResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Update the Quota Tier information for the given subscription. QuotaTiers is a subscription wide
|
|
34
|
+
* resource type. It holds current tier information.
|
|
35
|
+
* @param defaultParam Default parameter. Leave the value as "default".
|
|
36
|
+
* @param tier The parameters to provide for the quota tier resource.
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
update(defaultParam: string, tier: QuotaTier, options?: QuotaTiersUpdateOptionalParams): Promise<QuotaTiersUpdateResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Update the Quota Tier information for the given subscription. QuotaTiers is a subscription wide
|
|
42
|
+
* resource type. It holds current tier information.
|
|
43
|
+
* @param defaultParam Default parameter. Leave the value as "default".
|
|
44
|
+
* @param tier The parameters to provide for the quota tier resource.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
createOrUpdate(defaultParam: string, tier: QuotaTier, options?: QuotaTiersCreateOrUpdateOptionalParams): Promise<QuotaTiersCreateOrUpdateResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* ListBySubscriptionNext
|
|
50
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
private _listBySubscriptionNext;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=quotaTiers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotaTiers.d.ts","sourceRoot":"","sources":["../../../src/operations/quotaTiers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,KAAK,EACV,SAAS,EAET,0CAA0C,EAE1C,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,wBAAwB,EACxB,sCAAsC,EACtC,gCAAgC,EAEjC,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;OAGG;IACI,kBAAkB,CACvB,OAAO,CAAC,EAAE,0CAA0C,GACnD,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,4BAA4B;YAsB5B,2BAA2B;IAQ1C;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAM3B;;;;;OAKG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIhG;;;;;;OAMG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,SAAS,EACf,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC;IAIpC;;;;;;OAMG;IACH,cAAc,CACZ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,SAAS,EACf,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;CAShC"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.QuotaTiersImpl = void 0;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
8
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
9
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
10
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
11
|
+
/// <reference lib="esnext.asynciterable" />
|
|
12
|
+
/** Class containing QuotaTiers operations. */
|
|
13
|
+
class QuotaTiersImpl {
|
|
14
|
+
client;
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class QuotaTiers class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns all the resources of a particular type belonging to a subscription.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
listBySubscription(options) {
|
|
27
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: (settings) => {
|
|
36
|
+
if (settings?.maxPageSize) {
|
|
37
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
38
|
+
}
|
|
39
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
44
|
+
let result;
|
|
45
|
+
let continuationToken = settings?.continuationToken;
|
|
46
|
+
if (!continuationToken) {
|
|
47
|
+
result = await this._listBySubscription(options);
|
|
48
|
+
const page = result.value || [];
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
51
|
+
yield page;
|
|
52
|
+
}
|
|
53
|
+
while (continuationToken) {
|
|
54
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
const page = result.value || [];
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
async *listBySubscriptionPagingAll(options) {
|
|
62
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
63
|
+
yield* page;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns all the resources of a particular type belonging to a subscription.
|
|
68
|
+
* @param options The options parameters.
|
|
69
|
+
*/
|
|
70
|
+
_listBySubscription(options) {
|
|
71
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Gets the Quota Tier information for the given subscription. QuotaTiers is a subscription wide
|
|
75
|
+
* resource type. It holds current tier information.
|
|
76
|
+
* @param defaultParam Default parameter. Leave the value as "default".
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
get(defaultParam, options) {
|
|
80
|
+
return this.client.sendOperationRequest({ defaultParam, options }, getOperationSpec);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Update the Quota Tier information for the given subscription. QuotaTiers is a subscription wide
|
|
84
|
+
* resource type. It holds current tier information.
|
|
85
|
+
* @param defaultParam Default parameter. Leave the value as "default".
|
|
86
|
+
* @param tier The parameters to provide for the quota tier resource.
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
update(defaultParam, tier, options) {
|
|
90
|
+
return this.client.sendOperationRequest({ defaultParam, tier, options }, updateOperationSpec);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Update the Quota Tier information for the given subscription. QuotaTiers is a subscription wide
|
|
94
|
+
* resource type. It holds current tier information.
|
|
95
|
+
* @param defaultParam Default parameter. Leave the value as "default".
|
|
96
|
+
* @param tier The parameters to provide for the quota tier resource.
|
|
97
|
+
* @param options The options parameters.
|
|
98
|
+
*/
|
|
99
|
+
createOrUpdate(defaultParam, tier, options) {
|
|
100
|
+
return this.client.sendOperationRequest({ defaultParam, tier, options }, createOrUpdateOperationSpec);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* ListBySubscriptionNext
|
|
104
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
105
|
+
* @param options The options parameters.
|
|
106
|
+
*/
|
|
107
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
108
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.QuotaTiersImpl = QuotaTiersImpl;
|
|
112
|
+
// Operation Specifications
|
|
113
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
114
|
+
const listBySubscriptionOperationSpec = {
|
|
115
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/quotaTiers",
|
|
116
|
+
httpMethod: "GET",
|
|
117
|
+
responses: {
|
|
118
|
+
200: {
|
|
119
|
+
bodyMapper: Mappers.QuotaTierListResult,
|
|
120
|
+
},
|
|
121
|
+
default: {
|
|
122
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
queryParameters: [Parameters.apiVersion],
|
|
126
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
127
|
+
headerParameters: [Parameters.accept],
|
|
128
|
+
serializer,
|
|
129
|
+
};
|
|
130
|
+
const getOperationSpec = {
|
|
131
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/quotaTiers/{default}",
|
|
132
|
+
httpMethod: "GET",
|
|
133
|
+
responses: {
|
|
134
|
+
200: {
|
|
135
|
+
bodyMapper: Mappers.QuotaTier,
|
|
136
|
+
},
|
|
137
|
+
default: {
|
|
138
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
queryParameters: [Parameters.apiVersion],
|
|
142
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.defaultParam],
|
|
143
|
+
headerParameters: [Parameters.accept],
|
|
144
|
+
serializer,
|
|
145
|
+
};
|
|
146
|
+
const updateOperationSpec = {
|
|
147
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/quotaTiers/{default}",
|
|
148
|
+
httpMethod: "PATCH",
|
|
149
|
+
responses: {
|
|
150
|
+
200: {
|
|
151
|
+
bodyMapper: Mappers.QuotaTier,
|
|
152
|
+
},
|
|
153
|
+
default: {
|
|
154
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
requestBody: Parameters.tier,
|
|
158
|
+
queryParameters: [Parameters.apiVersion],
|
|
159
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.defaultParam],
|
|
160
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
161
|
+
mediaType: "json",
|
|
162
|
+
serializer,
|
|
163
|
+
};
|
|
164
|
+
const createOrUpdateOperationSpec = {
|
|
165
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/quotaTiers/{default}",
|
|
166
|
+
httpMethod: "PUT",
|
|
167
|
+
responses: {
|
|
168
|
+
200: {
|
|
169
|
+
bodyMapper: Mappers.QuotaTier,
|
|
170
|
+
},
|
|
171
|
+
201: {
|
|
172
|
+
bodyMapper: Mappers.QuotaTier,
|
|
173
|
+
},
|
|
174
|
+
default: {
|
|
175
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
requestBody: Parameters.tier,
|
|
179
|
+
queryParameters: [Parameters.apiVersion],
|
|
180
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.defaultParam],
|
|
181
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
182
|
+
mediaType: "json",
|
|
183
|
+
serializer,
|
|
184
|
+
};
|
|
185
|
+
const listBySubscriptionNextOperationSpec = {
|
|
186
|
+
path: "{nextLink}",
|
|
187
|
+
httpMethod: "GET",
|
|
188
|
+
responses: {
|
|
189
|
+
200: {
|
|
190
|
+
bodyMapper: Mappers.QuotaTierListResult,
|
|
191
|
+
},
|
|
192
|
+
default: {
|
|
193
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
|
|
197
|
+
headerParameters: [Parameters.accept],
|
|
198
|
+
serializer,
|
|
199
|
+
};
|
|
200
|
+
//# sourceMappingURL=quotaTiers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotaTiers.js","sourceRoot":"","sources":["../../../src/operations/quotaTiers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAgBtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAAoC;IAE3D;;;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yright (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 type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { QuotaTiers } 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 type { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport type {\n QuotaTier,\n QuotaTiersListBySubscriptionNextOptionalParams,\n QuotaTiersListBySubscriptionOptionalParams,\n QuotaTiersListBySubscriptionResponse,\n QuotaTiersGetOptionalParams,\n QuotaTiersGetResponse,\n QuotaTiersUpdateOptionalParams,\n QuotaTiersUpdateResponse,\n QuotaTiersCreateOrUpdateOptionalParams,\n QuotaTiersCreateOrUpdateResponse,\n QuotaTiersListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing QuotaTiers operations. */\nexport class QuotaTiersImpl implements QuotaTiers {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class QuotaTiers class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns all the resources of a particular type belonging to a subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: QuotaTiersListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<QuotaTier> {\n const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: QuotaTiersListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<QuotaTier[]> {\n let result: QuotaTiersListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: QuotaTiersListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<QuotaTier> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Returns all the resources of a particular type belonging to a subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: QuotaTiersListBySubscriptionOptionalParams,\n ): Promise<QuotaTiersListBySubscriptionResponse> {\n return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);\n }\n\n /**\n * Gets the Quota Tier information for the given subscription. QuotaTiers is a subscription wide\n * resource type. It holds current tier information.\n * @param defaultParam Default parameter. Leave the value as \"default\".\n * @param options The options parameters.\n */\n get(defaultParam: string, options?: QuotaTiersGetOptionalParams): Promise<QuotaTiersGetResponse> {\n return this.client.sendOperationRequest({ defaultParam, options }, getOperationSpec);\n }\n\n /**\n * Update the Quota Tier information for the given subscription. QuotaTiers is a subscription wide\n * resource type. It holds current tier information.\n * @param defaultParam Default parameter. Leave the value as \"default\".\n * @param tier The parameters to provide for the quota tier resource.\n * @param options The options parameters.\n */\n update(\n defaultParam: string,\n tier: QuotaTier,\n options?: QuotaTiersUpdateOptionalParams,\n ): Promise<QuotaTiersUpdateResponse> {\n return this.client.sendOperationRequest({ defaultParam, tier, options }, updateOperationSpec);\n }\n\n /**\n * Update the Quota Tier information for the given subscription. QuotaTiers is a subscription wide\n * resource type. It holds current tier information.\n * @param defaultParam Default parameter. Leave the value as \"default\".\n * @param tier The parameters to provide for the quota tier resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n defaultParam: string,\n tier: QuotaTier,\n options?: QuotaTiersCreateOrUpdateOptionalParams,\n ): Promise<QuotaTiersCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { defaultParam, tier, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: QuotaTiersListBySubscriptionNextOptionalParams,\n ): Promise<QuotaTiersListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/quotaTiers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaTierListResult,\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/quotaTiers/{default}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaTier,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.defaultParam],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/quotaTiers/{default}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaTier,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.tier,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.defaultParam],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/quotaTiers/{default}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaTier,\n },\n 201: {\n bodyMapper: Mappers.QuotaTier,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.tier,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.defaultParam],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaTierListResult,\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,8 +1,8 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { RaiBlocklistItems } from "../operationsInterfaces/index.js";
|
|
3
|
-
import { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient.js";
|
|
4
|
-
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
-
import { RaiBlocklistItem, RaiBlocklistItemsListOptionalParams, RaiBlocklistItemsGetOptionalParams, RaiBlocklistItemsGetResponse, RaiBlocklistItemsCreateOrUpdateOptionalParams, RaiBlocklistItemsCreateOrUpdateResponse, RaiBlocklistItemsDeleteOptionalParams, RaiBlocklistItemsDeleteResponse, RaiBlocklistItemBulkRequest, RaiBlocklistItemsBatchAddOptionalParams, RaiBlocklistItemsBatchAddResponse, RaiBlocklistItemsBatchDeleteOptionalParams } from "../models/index.js";
|
|
1
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import type { RaiBlocklistItems } from "../operationsInterfaces/index.js";
|
|
3
|
+
import type { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient.js";
|
|
4
|
+
import type { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
+
import type { RaiBlocklistItem, RaiBlocklistItemsListOptionalParams, RaiBlocklistItemsGetOptionalParams, RaiBlocklistItemsGetResponse, RaiBlocklistItemsCreateOrUpdateOptionalParams, RaiBlocklistItemsCreateOrUpdateResponse, RaiBlocklistItemsDeleteOptionalParams, RaiBlocklistItemsDeleteResponse, RaiBlocklistItemBulkRequest, RaiBlocklistItemsBatchAddOptionalParams, RaiBlocklistItemsBatchAddResponse, RaiBlocklistItemsBatchDeleteOptionalParams } from "../models/index.js";
|
|
6
6
|
/** Class containing RaiBlocklistItems operations. */
|
|
7
7
|
export declare class RaiBlocklistItemsImpl implements RaiBlocklistItems {
|
|
8
8
|
private readonly client;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raiBlocklistItems.d.ts","sourceRoot":"","sources":["../../../src/operations/raiBlocklistItems.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"raiBlocklistItems.d.ts","sourceRoot":"","sources":["../../../src/operations/raiBlocklistItems.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAI1E,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AACjG,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AE,MAAM,EAC5B,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,+BAA+B,CAAC,EAC/C,+BAA+B,CAChC,CACF;IA6DD;;;;;;;OAOG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,EACxB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAW3C;;;;;;;OAOG;IACH,QAAQ,CACN,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,EACxB,iBAAiB,EAAE,2BAA2B,EAAE,EAChD,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC;IAa7C;;;;;;;OAOG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,EACxB,sBAAsB,EAAE,MAAM,EAAE,EAChC,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,IAAI,CAAC;IAahB;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAYlB"}
|
|
@@ -50,7 +50,7 @@ class RaiBlocklistItemsImpl {
|
|
|
50
50
|
let continuationToken = settings?.continuationToken;
|
|
51
51
|
if (!continuationToken) {
|
|
52
52
|
result = await this._list(resourceGroupName, accountName, raiBlocklistName, options);
|
|
53
|
-
|
|
53
|
+
const page = result.value || [];
|
|
54
54
|
continuationToken = result.nextLink;
|
|
55
55
|
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
56
|
yield page;
|
|
@@ -58,7 +58,7 @@ class RaiBlocklistItemsImpl {
|
|
|
58
58
|
while (continuationToken) {
|
|
59
59
|
result = await this._listNext(resourceGroupName, accountName, raiBlocklistName, continuationToken, options);
|
|
60
60
|
continuationToken = result.nextLink;
|
|
61
|
-
|
|
61
|
+
const page = result.value || [];
|
|
62
62
|
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
63
|
yield page;
|
|
64
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raiBlocklistItems.js","sourceRoot":"","sources":["../../../src/operations/raiBlocklistItems.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAAqF;AACrF,8CAA8C;AAmB9C,4CAA4C;AAC5C,qDAAqD;AACrD,MAAa,qBAAqB;IACf,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,gBAAwB,EACxB,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;QAC3F,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,gBAAwB,E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gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EAAE,0LAA0L;IAChM,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,sBAAsB;IAC9C,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,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// 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 { RaiBlocklistItems } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport { SimplePollerLike, OperationState, createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n RaiBlocklistItem,\n RaiBlocklistItemsListNextOptionalParams,\n RaiBlocklistItemsListOptionalParams,\n RaiBlocklistItemsListResponse,\n RaiBlocklistItemsGetOptionalParams,\n RaiBlocklistItemsGetResponse,\n RaiBlocklistItemsCreateOrUpdateOptionalParams,\n RaiBlocklistItemsCreateOrUpdateResponse,\n RaiBlocklistItemsDeleteOptionalParams,\n RaiBlocklistItemsDeleteResponse,\n RaiBlocklistItemBulkRequest,\n RaiBlocklistItemsBatchAddOptionalParams,\n RaiBlocklistItemsBatchAddResponse,\n RaiBlocklistItemsBatchDeleteOptionalParams,\n RaiBlocklistItemsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RaiBlocklistItems operations. */\nexport class RaiBlocklistItemsImpl implements RaiBlocklistItems {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class RaiBlocklistItems class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the blocklist items associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n ): PagedAsyncIterableIterator<RaiBlocklistItem> {\n const iter = this.listPagingAll(resourceGroupName, accountName, raiBlocklistName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RaiBlocklistItem[]> {\n let result: RaiBlocklistItemsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, raiBlocklistName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n ): AsyncIterableIterator<RaiBlocklistItem> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the blocklist items associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n ): Promise<RaiBlocklistItemsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiBlocklistName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified custom blocklist Item associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n options?: RaiBlocklistItemsGetOptionalParams,\n ): Promise<RaiBlocklistItemsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified blocklist item associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param raiBlocklistItem Properties describing the custom blocklist.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n raiBlocklistItem: RaiBlocklistItem,\n options?: RaiBlocklistItemsCreateOrUpdateOptionalParams,\n ): Promise<RaiBlocklistItemsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n raiBlocklistItem,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified blocklist Item associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n options?: RaiBlocklistItemsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<RaiBlocklistItemsDeleteResponse>,\n RaiBlocklistItemsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RaiBlocklistItemsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n RaiBlocklistItemsDeleteResponse,\n OperationState<RaiBlocklistItemsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified blocklist Item associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n options?: RaiBlocklistItemsDeleteOptionalParams,\n ): Promise<RaiBlocklistItemsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Batch operation to add blocklist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItems Properties describing the custom blocklist items.\n * @param options The options parameters.\n */\n batchAdd(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItems: RaiBlocklistItemBulkRequest[],\n options?: RaiBlocklistItemsBatchAddOptionalParams,\n ): Promise<RaiBlocklistItemsBatchAddResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItems,\n options,\n },\n batchAddOperationSpec,\n );\n }\n\n /**\n * Batch operation to delete blocklist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemsNames List of RAI Blocklist Items Names.\n * @param options The options parameters.\n */\n batchDelete(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemsNames: string[],\n options?: RaiBlocklistItemsBatchDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemsNames,\n options,\n },\n batchDeleteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n nextLink: string,\n options?: RaiBlocklistItemsListNextOptionalParams,\n ): Promise<RaiBlocklistItemsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiBlocklistName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlockListItemsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklistItem,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n Parameters.raiBlocklistItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklistItem,\n },\n 201: {\n bodyMapper: Mappers.RaiBlocklistItem,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklistItem,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n Parameters.raiBlocklistItemName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n Parameters.raiBlocklistItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst batchAddOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/addRaiBlocklistItems\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklist,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklistItems,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst batchDeleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/deleteRaiBlocklistItems\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklistItemsNames,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlockListItemsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"raiBlocklistItems.js","sourceRoot":"","sources":["../../../src/operations/raiBlocklistItems.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAGtD,8CAAmD;AACnD,8CAA8C;AAmB9C,4CAA4C;AAC5C,qDAAqD;AACr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,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,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// 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 type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { RaiBlocklistItems } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n RaiBlocklistItem,\n RaiBlocklistItemsListNextOptionalParams,\n RaiBlocklistItemsListOptionalParams,\n RaiBlocklistItemsListResponse,\n RaiBlocklistItemsGetOptionalParams,\n RaiBlocklistItemsGetResponse,\n RaiBlocklistItemsCreateOrUpdateOptionalParams,\n RaiBlocklistItemsCreateOrUpdateResponse,\n RaiBlocklistItemsDeleteOptionalParams,\n RaiBlocklistItemsDeleteResponse,\n RaiBlocklistItemBulkRequest,\n RaiBlocklistItemsBatchAddOptionalParams,\n RaiBlocklistItemsBatchAddResponse,\n RaiBlocklistItemsBatchDeleteOptionalParams,\n RaiBlocklistItemsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RaiBlocklistItems operations. */\nexport class RaiBlocklistItemsImpl implements RaiBlocklistItems {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class RaiBlocklistItems class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the blocklist items associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n ): PagedAsyncIterableIterator<RaiBlocklistItem> {\n const iter = this.listPagingAll(resourceGroupName, accountName, raiBlocklistName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RaiBlocklistItem[]> {\n let result: RaiBlocklistItemsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, raiBlocklistName, options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n ): AsyncIterableIterator<RaiBlocklistItem> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the blocklist items associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n options?: RaiBlocklistItemsListOptionalParams,\n ): Promise<RaiBlocklistItemsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiBlocklistName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified custom blocklist Item associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n options?: RaiBlocklistItemsGetOptionalParams,\n ): Promise<RaiBlocklistItemsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified blocklist item associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param raiBlocklistItem Properties describing the custom blocklist.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n raiBlocklistItem: RaiBlocklistItem,\n options?: RaiBlocklistItemsCreateOrUpdateOptionalParams,\n ): Promise<RaiBlocklistItemsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n raiBlocklistItem,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified blocklist Item associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n options?: RaiBlocklistItemsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<RaiBlocklistItemsDeleteResponse>,\n RaiBlocklistItemsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RaiBlocklistItemsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n RaiBlocklistItemsDeleteResponse,\n OperationState<RaiBlocklistItemsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified blocklist Item associated with the custom blocklist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemName: string,\n options?: RaiBlocklistItemsDeleteOptionalParams,\n ): Promise<RaiBlocklistItemsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Batch operation to add blocklist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItems Properties describing the custom blocklist items.\n * @param options The options parameters.\n */\n batchAdd(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItems: RaiBlocklistItemBulkRequest[],\n options?: RaiBlocklistItemsBatchAddOptionalParams,\n ): Promise<RaiBlocklistItemsBatchAddResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItems,\n options,\n },\n batchAddOperationSpec,\n );\n }\n\n /**\n * Batch operation to delete blocklist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param raiBlocklistItemsNames List of RAI Blocklist Items Names.\n * @param options The options parameters.\n */\n batchDelete(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n raiBlocklistItemsNames: string[],\n options?: RaiBlocklistItemsBatchDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n raiBlocklistName,\n raiBlocklistItemsNames,\n options,\n },\n batchDeleteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n raiBlocklistName: string,\n nextLink: string,\n options?: RaiBlocklistItemsListNextOptionalParams,\n ): Promise<RaiBlocklistItemsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, raiBlocklistName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlockListItemsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklistItem,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n Parameters.raiBlocklistItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklistItem,\n },\n 201: {\n bodyMapper: Mappers.RaiBlocklistItem,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklistItem,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n Parameters.raiBlocklistItemName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n Parameters.raiBlocklistItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst batchAddOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/addRaiBlocklistItems\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlocklist,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklistItems,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst batchDeleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/deleteRaiBlocklistItems\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.raiBlocklistItemsNames,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RaiBlockListItemsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.raiBlocklistName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|