@barndoor-ai/sdk 1.2.0 → 2.0.0-dev.g37b8897
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +98 -254
- package/dist/apis/DlpApi.d.ts +666 -0
- package/dist/apis/DlpApi.js +1983 -0
- package/dist/apis/IdentityApi.d.ts +168 -0
- package/dist/apis/IdentityApi.js +545 -0
- package/dist/apis/LlmGatewayApi.d.ts +1250 -0
- package/dist/apis/LlmGatewayApi.js +3724 -0
- package/dist/apis/NotificationApi.d.ts +145 -0
- package/dist/apis/NotificationApi.js +442 -0
- package/dist/apis/PolicyApi.d.ts +510 -0
- package/dist/apis/PolicyApi.js +1213 -0
- package/dist/apis/RegistryApi.d.ts +594 -0
- package/dist/apis/RegistryApi.js +1387 -0
- package/dist/apis/SystemManagementApi.d.ts +265 -0
- package/dist/apis/SystemManagementApi.js +661 -0
- package/dist/apis/index.d.ts +7 -0
- package/dist/apis/index.js +25 -0
- package/dist/esm/apis/DlpApi.d.ts +666 -0
- package/dist/esm/apis/DlpApi.js +1946 -0
- package/dist/esm/apis/IdentityApi.d.ts +168 -0
- package/dist/esm/apis/IdentityApi.js +508 -0
- package/dist/esm/apis/LlmGatewayApi.d.ts +1250 -0
- package/dist/esm/apis/LlmGatewayApi.js +3687 -0
- package/dist/esm/apis/NotificationApi.d.ts +145 -0
- package/dist/esm/apis/NotificationApi.js +405 -0
- package/dist/esm/apis/PolicyApi.d.ts +510 -0
- package/dist/esm/apis/PolicyApi.js +1176 -0
- package/dist/esm/apis/RegistryApi.d.ts +594 -0
- package/dist/esm/apis/RegistryApi.js +1350 -0
- package/dist/esm/apis/SystemManagementApi.d.ts +265 -0
- package/dist/esm/apis/SystemManagementApi.js +624 -0
- package/dist/esm/apis/index.d.ts +7 -0
- package/dist/esm/apis/index.js +9 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/lib/auth.d.ts +95 -0
- package/dist/esm/lib/auth.js +175 -0
- package/dist/esm/lib/cli.d.ts +44 -0
- package/dist/esm/lib/cli.js +89 -0
- package/dist/esm/lib/client.d.ts +51 -0
- package/dist/esm/lib/client.js +45 -0
- package/dist/esm/lib/config.d.ts +14 -0
- package/dist/esm/lib/config.js +62 -0
- package/dist/esm/lib/http.d.ts +23 -0
- package/dist/esm/lib/http.js +80 -0
- package/dist/esm/lib/index.d.ts +15 -0
- package/dist/esm/lib/index.js +15 -0
- package/dist/esm/lib/mcp.d.ts +41 -0
- package/dist/esm/lib/mcp.js +78 -0
- package/dist/esm/models/AWSTrustInfoResponse.d.ts +34 -0
- package/dist/esm/models/AWSTrustInfoResponse.js +47 -0
- package/dist/esm/models/AddRouteGroupMembersRequest.d.ts +36 -0
- package/dist/esm/models/AddRouteGroupMembersRequest.js +45 -0
- package/dist/esm/models/AdminModelPricing.d.ts +133 -0
- package/dist/esm/models/AdminModelPricing.js +101 -0
- package/dist/esm/models/AffectedPoliciesResponse.d.ts +48 -0
- package/dist/esm/models/AffectedPoliciesResponse.js +52 -0
- package/dist/esm/models/AffectedPolicyPreview.d.ts +49 -0
- package/dist/esm/models/AffectedPolicyPreview.js +57 -0
- package/dist/esm/models/AgentPolicyCounts.d.ts +36 -0
- package/dist/esm/models/AgentPolicyCounts.js +43 -0
- package/dist/esm/models/AgentRuntimeCapabilities.d.ts +85 -0
- package/dist/esm/models/AgentRuntimeCapabilities.js +67 -0
- package/dist/esm/models/AgentRuntimeProfile.d.ts +77 -0
- package/dist/esm/models/AgentRuntimeProfile.js +89 -0
- package/dist/esm/models/AgentType.d.ts +25 -0
- package/dist/esm/models/AgentType.js +43 -0
- package/dist/esm/models/AlertType.d.ts +44 -0
- package/dist/esm/models/AlertType.js +62 -0
- package/dist/esm/models/AlertTypeOption.d.ts +42 -0
- package/dist/esm/models/AlertTypeOption.js +55 -0
- package/dist/esm/models/AllowListEntryResponse.d.ts +58 -0
- package/dist/esm/models/AllowListEntryResponse.js +71 -0
- package/dist/esm/models/ApiKey.d.ts +89 -0
- package/dist/esm/models/ApiKey.js +85 -0
- package/dist/esm/models/ApiKeyDisabledResponse.d.ts +30 -0
- package/dist/esm/models/ApiKeyDisabledResponse.js +43 -0
- package/dist/esm/models/ApiKeyKind.d.ts +36 -0
- package/dist/esm/models/ApiKeyKind.js +54 -0
- package/dist/esm/models/AppType.d.ts +30 -0
- package/dist/esm/models/AppType.js +48 -0
- package/dist/esm/models/Application.d.ts +58 -0
- package/dist/esm/models/Application.js +72 -0
- package/dist/esm/models/ApplicationCounts.d.ts +38 -0
- package/dist/esm/models/ApplicationCounts.js +51 -0
- package/dist/esm/models/ApplicationDirectoryBase.d.ts +87 -0
- package/dist/esm/models/ApplicationDirectoryBase.js +101 -0
- package/dist/esm/models/ApplicationDirectoryResponse.d.ts +92 -0
- package/dist/esm/models/ApplicationDirectoryResponse.js +106 -0
- package/dist/esm/models/ApplicationLlmGatewayPayload.d.ts +30 -0
- package/dist/esm/models/ApplicationLlmGatewayPayload.js +43 -0
- package/dist/esm/models/ApplicationPayload.d.ts +38 -0
- package/dist/esm/models/ApplicationPayload.js +47 -0
- package/dist/esm/models/ApplicationResponse.d.ts +68 -0
- package/dist/esm/models/ApplicationResponse.js +81 -0
- package/dist/esm/models/ApplicationWriteConfirmationsPayload.d.ts +30 -0
- package/dist/esm/models/ApplicationWriteConfirmationsPayload.js +43 -0
- package/dist/esm/models/ArchivePricingResponse.d.ts +45 -0
- package/dist/esm/models/ArchivePricingResponse.js +55 -0
- package/dist/esm/models/AttentionTier.d.ts +34 -0
- package/dist/esm/models/AttentionTier.js +52 -0
- package/dist/esm/models/AutoDisabledReason.d.ts +27 -0
- package/dist/esm/models/AutoDisabledReason.js +45 -0
- package/dist/esm/models/AwsBedrockGuardrailsConnectionResponse.d.ts +66 -0
- package/dist/esm/models/AwsBedrockGuardrailsConnectionResponse.js +71 -0
- package/dist/esm/models/AwsComprehendPiiConnectionResponse.d.ts +62 -0
- package/dist/esm/models/AwsComprehendPiiConnectionResponse.js +67 -0
- package/dist/esm/models/AwsRoleConfigResponse.d.ts +34 -0
- package/dist/esm/models/AwsRoleConfigResponse.js +45 -0
- package/dist/esm/models/AwsRoleValidationResponse.d.ts +31 -0
- package/dist/esm/models/AwsRoleValidationResponse.js +43 -0
- package/dist/esm/models/AzureAiLanguagePiiConnectionResponse.d.ts +46 -0
- package/dist/esm/models/AzureAiLanguagePiiConnectionResponse.js +59 -0
- package/dist/esm/models/AzureContentSafetyConnectionResponse.d.ts +46 -0
- package/dist/esm/models/AzureContentSafetyConnectionResponse.js +59 -0
- package/dist/esm/models/BillingMode.d.ts +36 -0
- package/dist/esm/models/BillingMode.js +54 -0
- package/dist/esm/models/BillingReason.d.ts +42 -0
- package/dist/esm/models/BillingReason.js +60 -0
- package/dist/esm/models/BudgetAction.d.ts +26 -0
- package/dist/esm/models/BudgetAction.js +44 -0
- package/dist/esm/models/BudgetLimitKind.d.ts +25 -0
- package/dist/esm/models/BudgetLimitKind.js +43 -0
- package/dist/esm/models/BudgetPeriod.d.ts +33 -0
- package/dist/esm/models/BudgetPeriod.js +51 -0
- package/dist/esm/models/BudgetTargetKind.d.ts +28 -0
- package/dist/esm/models/BudgetTargetKind.js +46 -0
- package/dist/esm/models/BudgetTargetStatus.d.ts +58 -0
- package/dist/esm/models/BudgetTargetStatus.js +69 -0
- package/dist/esm/models/ChangeAttribution.d.ts +73 -0
- package/dist/esm/models/ChangeAttribution.js +56 -0
- package/dist/esm/models/ChannelListResponse.d.ts +32 -0
- package/dist/esm/models/ChannelListResponse.js +44 -0
- package/dist/esm/models/ChannelOptionsResponse.d.ts +43 -0
- package/dist/esm/models/ChannelOptionsResponse.js +53 -0
- package/dist/esm/models/ChannelResponse.d.ts +87 -0
- package/dist/esm/models/ChannelResponse.js +92 -0
- package/dist/esm/models/ChannelSubscription.d.ts +31 -0
- package/dist/esm/models/ChannelSubscription.js +44 -0
- package/dist/esm/models/ChannelSubscriptionInput.d.ts +38 -0
- package/dist/esm/models/ChannelSubscriptionInput.js +44 -0
- package/dist/esm/models/ChannelTestResponse.d.ts +37 -0
- package/dist/esm/models/ChannelTestResponse.js +45 -0
- package/dist/esm/models/ChannelType.d.ts +49 -0
- package/dist/esm/models/ChannelType.js +67 -0
- package/dist/esm/models/ChannelUpsertRequest.d.ts +86 -0
- package/dist/esm/models/ChannelUpsertRequest.js +61 -0
- package/dist/esm/models/ConditionOfInput.d.ts +31 -0
- package/dist/esm/models/ConditionOfInput.js +44 -0
- package/dist/esm/models/ConditionOfOutput.d.ts +31 -0
- package/dist/esm/models/ConditionOfOutput.js +44 -0
- package/dist/esm/models/ConfigureDestinationRequest.d.ts +78 -0
- package/dist/esm/models/ConfigureDestinationRequest.js +65 -0
- package/dist/esm/models/Connection.d.ts +126 -0
- package/dist/esm/models/Connection.js +102 -0
- package/dist/esm/models/ConnectionInitiateResponse.d.ts +42 -0
- package/dist/esm/models/ConnectionInitiateResponse.js +53 -0
- package/dist/esm/models/ConnectionRead.d.ts +58 -0
- package/dist/esm/models/ConnectionRead.js +64 -0
- package/dist/esm/models/ConnectionStatus.d.ts +26 -0
- package/dist/esm/models/ConnectionStatus.js +31 -0
- package/dist/esm/models/CreateAllowListEntryRequest.d.ts +42 -0
- package/dist/esm/models/CreateAllowListEntryRequest.js +51 -0
- package/dist/esm/models/CreateApiKeyRequest.d.ts +51 -0
- package/dist/esm/models/CreateApiKeyRequest.js +54 -0
- package/dist/esm/models/CreateApiKeyResponse.d.ts +58 -0
- package/dist/esm/models/CreateApiKeyResponse.js +68 -0
- package/dist/esm/models/CreateBudgetRequest.d.ts +110 -0
- package/dist/esm/models/CreateBudgetRequest.js +81 -0
- package/dist/esm/models/CreateConnectionRequest.d.ts +61 -0
- package/dist/esm/models/CreateConnectionRequest.js +61 -0
- package/dist/esm/models/CreateCustomDetectionTypeRequest.d.ts +47 -0
- package/dist/esm/models/CreateCustomDetectionTypeRequest.js +54 -0
- package/dist/esm/models/CreateDetectionEngineRequest.d.ts +46 -0
- package/dist/esm/models/CreateDetectionEngineRequest.js +53 -0
- package/dist/esm/models/CreateEnforcementPolicyRequest.d.ts +77 -0
- package/dist/esm/models/CreateEnforcementPolicyRequest.js +70 -0
- package/dist/esm/models/CreateModelAccessRequest.d.ts +60 -0
- package/dist/esm/models/CreateModelAccessRequest.js +64 -0
- package/dist/esm/models/CreateModelMappingRequest.d.ts +103 -0
- package/dist/esm/models/CreateModelMappingRequest.js +70 -0
- package/dist/esm/models/CreatePolicy.d.ts +60 -0
- package/dist/esm/models/CreatePolicy.js +61 -0
- package/dist/esm/models/CreatePricingRequest.d.ts +88 -0
- package/dist/esm/models/CreatePricingRequest.js +72 -0
- package/dist/esm/models/CreateProfileRequest.d.ts +49 -0
- package/dist/esm/models/CreateProfileRequest.js +58 -0
- package/dist/esm/models/CreateProviderRequest.d.ts +124 -0
- package/dist/esm/models/CreateProviderRequest.js +84 -0
- package/dist/esm/models/CreateRateLimitRequest.d.ts +95 -0
- package/dist/esm/models/CreateRateLimitRequest.js +69 -0
- package/dist/esm/models/CreateRouteGroupRequest.d.ts +46 -0
- package/dist/esm/models/CreateRouteGroupRequest.js +49 -0
- package/dist/esm/models/CredentialsPayload.d.ts +52 -0
- package/dist/esm/models/CredentialsPayload.js +51 -0
- package/dist/esm/models/CustomDetectionPatternRequest.d.ts +34 -0
- package/dist/esm/models/CustomDetectionPatternRequest.js +47 -0
- package/dist/esm/models/CustomDetectionPatternResponse.d.ts +34 -0
- package/dist/esm/models/CustomDetectionPatternResponse.js +47 -0
- package/dist/esm/models/CustomDetectionTypeResponse.d.ts +71 -0
- package/dist/esm/models/CustomDetectionTypeResponse.js +84 -0
- package/dist/esm/models/CustomDetectionTypesResponse.d.ts +31 -0
- package/dist/esm/models/CustomDetectionTypesResponse.js +44 -0
- package/dist/esm/models/DefaultModelAccess.d.ts +35 -0
- package/dist/esm/models/DefaultModelAccess.js +53 -0
- package/dist/esm/models/DefaultPricingEntry.d.ts +81 -0
- package/dist/esm/models/DefaultPricingEntry.js +78 -0
- package/dist/esm/models/DeletedResponse.d.ts +35 -0
- package/dist/esm/models/DeletedResponse.js +43 -0
- package/dist/esm/models/DestinationResponse.d.ts +48 -0
- package/dist/esm/models/DestinationResponse.js +61 -0
- package/dist/esm/models/DetectionEngineCapabilitiesResponse.d.ts +62 -0
- package/dist/esm/models/DetectionEngineCapabilitiesResponse.js +75 -0
- package/dist/esm/models/DetectionEngineResponse.d.ts +93 -0
- package/dist/esm/models/DetectionEngineResponse.js +99 -0
- package/dist/esm/models/DetectionTypeInfoResponse.d.ts +59 -0
- package/dist/esm/models/DetectionTypeInfoResponse.js +71 -0
- package/dist/esm/models/DetectionTypesResponse.d.ts +31 -0
- package/dist/esm/models/DetectionTypesResponse.js +44 -0
- package/dist/esm/models/DlpAwsTrustInfoResponse.d.ts +34 -0
- package/dist/esm/models/DlpAwsTrustInfoResponse.js +47 -0
- package/dist/esm/models/DlpErrorResponse.d.ts +41 -0
- package/dist/esm/models/DlpErrorResponse.js +43 -0
- package/dist/esm/models/EffectivePricing.d.ts +89 -0
- package/dist/esm/models/EffectivePricing.js +56 -0
- package/dist/esm/models/EnforcementPoliciesResponse.d.ts +31 -0
- package/dist/esm/models/EnforcementPoliciesResponse.js +44 -0
- package/dist/esm/models/EnforcementPolicyMcpTargetRequest.d.ts +34 -0
- package/dist/esm/models/EnforcementPolicyMcpTargetRequest.js +47 -0
- package/dist/esm/models/EnforcementPolicyMcpTargetResponse.d.ts +38 -0
- package/dist/esm/models/EnforcementPolicyMcpTargetResponse.js +51 -0
- package/dist/esm/models/EnforcementPolicyPrincipalRequest.d.ts +34 -0
- package/dist/esm/models/EnforcementPolicyPrincipalRequest.js +47 -0
- package/dist/esm/models/EnforcementPolicyPrincipalResponse.d.ts +38 -0
- package/dist/esm/models/EnforcementPolicyPrincipalResponse.js +51 -0
- package/dist/esm/models/EnforcementPolicyResponse.d.ts +101 -0
- package/dist/esm/models/EnforcementPolicyResponse.js +110 -0
- package/dist/esm/models/ErrorDetail.d.ts +38 -0
- package/dist/esm/models/ErrorDetail.js +45 -0
- package/dist/esm/models/ErrorModel.d.ts +51 -0
- package/dist/esm/models/ErrorModel.js +52 -0
- package/dist/esm/models/ExportDestination.d.ts +74 -0
- package/dist/esm/models/ExportDestination.js +63 -0
- package/dist/esm/models/ExportHealthCheck.d.ts +42 -0
- package/dist/esm/models/ExportHealthCheck.js +48 -0
- package/dist/esm/models/ExportResponse.d.ts +69 -0
- package/dist/esm/models/ExportResponse.js +83 -0
- package/dist/esm/models/ExportRuntimeStatus.d.ts +47 -0
- package/dist/esm/models/ExportRuntimeStatus.js +51 -0
- package/dist/esm/models/ExportSettings.d.ts +50 -0
- package/dist/esm/models/ExportSettings.js +61 -0
- package/dist/esm/models/ExportsResponse.d.ts +31 -0
- package/dist/esm/models/ExportsResponse.js +44 -0
- package/dist/esm/models/Expression.d.ts +30 -0
- package/dist/esm/models/Expression.js +43 -0
- package/dist/esm/models/FieldControlPoliciesResponse.d.ts +31 -0
- package/dist/esm/models/FieldControlPoliciesResponse.js +44 -0
- package/dist/esm/models/FieldControlPolicyResponse.d.ts +70 -0
- package/dist/esm/models/FieldControlPolicyResponse.js +83 -0
- package/dist/esm/models/FilterCategory.d.ts +39 -0
- package/dist/esm/models/FilterCategory.js +50 -0
- package/dist/esm/models/FilterOption.d.ts +38 -0
- package/dist/esm/models/FilterOption.js +49 -0
- package/dist/esm/models/GoogleDlpConnectionResponse.d.ts +46 -0
- package/dist/esm/models/GoogleDlpConnectionResponse.js +59 -0
- package/dist/esm/models/GovernanceConfig.d.ts +52 -0
- package/dist/esm/models/GovernanceConfig.js +48 -0
- package/dist/esm/models/HTTPValidationError.d.ts +31 -0
- package/dist/esm/models/HTTPValidationError.js +42 -0
- package/dist/esm/models/IdListResponse.d.ts +30 -0
- package/dist/esm/models/IdListResponse.js +41 -0
- package/dist/esm/models/IdpConnectionConfig.d.ts +89 -0
- package/dist/esm/models/IdpConnectionConfig.js +85 -0
- package/dist/esm/models/IdpConnectionResponse.d.ts +86 -0
- package/dist/esm/models/IdpConnectionResponse.js +69 -0
- package/dist/esm/models/IdpRoleMappingConfig.d.ts +30 -0
- package/dist/esm/models/IdpRoleMappingConfig.js +41 -0
- package/dist/esm/models/IdpRoleMappingResponse.d.ts +38 -0
- package/dist/esm/models/IdpRoleMappingResponse.js +45 -0
- package/dist/esm/models/IdpSettingsResponse.d.ts +38 -0
- package/dist/esm/models/IdpSettingsResponse.js +45 -0
- package/dist/esm/models/IdpTestResult.d.ts +40 -0
- package/dist/esm/models/IdpTestResult.js +49 -0
- package/dist/esm/models/LabeledOption.d.ts +34 -0
- package/dist/esm/models/LabeledOption.js +47 -0
- package/dist/esm/models/ListProfilesResponse.d.ts +31 -0
- package/dist/esm/models/ListProfilesResponse.js +44 -0
- package/dist/esm/models/ListRoutingRulesResponse.d.ts +40 -0
- package/dist/esm/models/ListRoutingRulesResponse.js +49 -0
- package/dist/esm/models/LlmGatewayAwsRoleConfigResponse.d.ts +42 -0
- package/dist/esm/models/LlmGatewayAwsRoleConfigResponse.js +45 -0
- package/dist/esm/models/LlmGatewayAwsTrustInfoResponse.d.ts +34 -0
- package/dist/esm/models/LlmGatewayAwsTrustInfoResponse.js +47 -0
- package/dist/esm/models/LocationInner.d.ts +26 -0
- package/dist/esm/models/LocationInner.js +31 -0
- package/dist/esm/models/LongContextTier.d.ts +58 -0
- package/dist/esm/models/LongContextTier.js +55 -0
- package/dist/esm/models/LongContextTierEntry.d.ts +48 -0
- package/dist/esm/models/LongContextTierEntry.js +55 -0
- package/dist/esm/models/LongContextTierRequest.d.ts +53 -0
- package/dist/esm/models/LongContextTierRequest.js +55 -0
- package/dist/esm/models/MCPServerCategory.d.ts +50 -0
- package/dist/esm/models/MCPServerCategory.js +64 -0
- package/dist/esm/models/MCPServerDirectoryBase.d.ts +126 -0
- package/dist/esm/models/MCPServerDirectoryBase.js +134 -0
- package/dist/esm/models/MCPServerDirectoryRead.d.ts +135 -0
- package/dist/esm/models/MCPServerDirectoryRead.js +143 -0
- package/dist/esm/models/MCPServerDirectoryReadWithServers.d.ts +140 -0
- package/dist/esm/models/MCPServerDirectoryReadWithServers.js +148 -0
- package/dist/esm/models/MaskFormat.d.ts +45 -0
- package/dist/esm/models/MaskFormat.js +52 -0
- package/dist/esm/models/MaskKeep.d.ts +25 -0
- package/dist/esm/models/MaskKeep.js +43 -0
- package/dist/esm/models/Match.d.ts +25 -0
- package/dist/esm/models/Match.js +65 -0
- package/dist/esm/models/Match1.d.ts +25 -0
- package/dist/esm/models/Match1.js +65 -0
- package/dist/esm/models/MetadataPatchRequest.d.ts +34 -0
- package/dist/esm/models/MetadataPatchRequest.js +43 -0
- package/dist/esm/models/ModelAccessTarget.d.ts +43 -0
- package/dist/esm/models/ModelAccessTarget.js +72 -0
- package/dist/esm/models/ModelAccessTargetOneOf.d.ts +46 -0
- package/dist/esm/models/ModelAccessTargetOneOf.js +55 -0
- package/dist/esm/models/ModelAccessTargetOneOf1.d.ts +46 -0
- package/dist/esm/models/ModelAccessTargetOneOf1.js +55 -0
- package/dist/esm/models/ModelAccessTargetOneOf2.d.ts +46 -0
- package/dist/esm/models/ModelAccessTargetOneOf2.js +55 -0
- package/dist/esm/models/ModelAccessTargetOneOf3.d.ts +46 -0
- package/dist/esm/models/ModelAccessTargetOneOf3.js +59 -0
- package/dist/esm/models/ModelAccessTargetOneOf4.d.ts +55 -0
- package/dist/esm/models/ModelAccessTargetOneOf4.js +55 -0
- package/dist/esm/models/ModelMapping.d.ts +155 -0
- package/dist/esm/models/ModelMapping.js +104 -0
- package/dist/esm/models/ModelMappingWithBudgetStatus.d.ts +192 -0
- package/dist/esm/models/ModelMappingWithBudgetStatus.js +118 -0
- package/dist/esm/models/ModelMappingWithProvider.d.ts +134 -0
- package/dist/esm/models/ModelMappingWithProvider.js +116 -0
- package/dist/esm/models/ModelMappingWithProviderAndBudgetStatus.d.ts +155 -0
- package/dist/esm/models/ModelMappingWithProviderAndBudgetStatus.js +130 -0
- package/dist/esm/models/ModelPricing.d.ts +94 -0
- package/dist/esm/models/ModelPricing.js +79 -0
- package/dist/esm/models/ModelRouteGroup.d.ts +92 -0
- package/dist/esm/models/ModelRouteGroup.js +76 -0
- package/dist/esm/models/ModelSource.d.ts +35 -0
- package/dist/esm/models/ModelSource.js +53 -0
- package/dist/esm/models/ModelStaleStatus.d.ts +31 -0
- package/dist/esm/models/ModelStaleStatus.js +44 -0
- package/dist/esm/models/ModelSyncMode.d.ts +35 -0
- package/dist/esm/models/ModelSyncMode.js +53 -0
- package/dist/esm/models/OAuthConfig.d.ts +39 -0
- package/dist/esm/models/OAuthConfig.js +46 -0
- package/dist/esm/models/OfInner.d.ts +25 -0
- package/dist/esm/models/OfInner.js +65 -0
- package/dist/esm/models/OfInner1.d.ts +25 -0
- package/dist/esm/models/OfInner1.js +65 -0
- package/dist/esm/models/OperatorAllInput.d.ts +31 -0
- package/dist/esm/models/OperatorAllInput.js +44 -0
- package/dist/esm/models/OperatorAllOutput.d.ts +31 -0
- package/dist/esm/models/OperatorAllOutput.js +44 -0
- package/dist/esm/models/OperatorAnyInput.d.ts +31 -0
- package/dist/esm/models/OperatorAnyInput.js +44 -0
- package/dist/esm/models/OperatorAnyOutput.d.ts +31 -0
- package/dist/esm/models/OperatorAnyOutput.js +44 -0
- package/dist/esm/models/OperatorNoneInput.d.ts +31 -0
- package/dist/esm/models/OperatorNoneInput.js +44 -0
- package/dist/esm/models/OperatorNoneOutput.d.ts +31 -0
- package/dist/esm/models/OperatorNoneOutput.js +44 -0
- package/dist/esm/models/OrgConfigResponse.d.ts +50 -0
- package/dist/esm/models/OrgConfigResponse.js +63 -0
- package/dist/esm/models/OrganizationRolesGroupsResponse.d.ts +39 -0
- package/dist/esm/models/OrganizationRolesGroupsResponse.js +47 -0
- package/dist/esm/models/PaginatedResponseAllowListEntryResponse.d.ts +39 -0
- package/dist/esm/models/PaginatedResponseAllowListEntryResponse.js +52 -0
- package/dist/esm/models/PaginatedResponseAllowListEntryResponseItemsInner.d.ts +58 -0
- package/dist/esm/models/PaginatedResponseAllowListEntryResponseItemsInner.js +71 -0
- package/dist/esm/models/PaginationMeta.d.ts +50 -0
- package/dist/esm/models/PaginationMeta.js +63 -0
- package/dist/esm/models/PaginationResponseApplicationDirectoryResponse.d.ts +36 -0
- package/dist/esm/models/PaginationResponseApplicationDirectoryResponse.js +49 -0
- package/dist/esm/models/PaginationResponseApplicationResponse.d.ts +36 -0
- package/dist/esm/models/PaginationResponseApplicationResponse.js +49 -0
- package/dist/esm/models/PaginationResponseMCPServerDirectoryReadWithServers.d.ts +36 -0
- package/dist/esm/models/PaginationResponseMCPServerDirectoryReadWithServers.js +49 -0
- package/dist/esm/models/PaginationResponsePolicyImpactSummary.d.ts +36 -0
- package/dist/esm/models/PaginationResponsePolicyImpactSummary.js +49 -0
- package/dist/esm/models/PaginationResponsePolicyRevisionSummary.d.ts +36 -0
- package/dist/esm/models/PaginationResponsePolicyRevisionSummary.js +49 -0
- package/dist/esm/models/PaginationResponsePolicySummary.d.ts +36 -0
- package/dist/esm/models/PaginationResponsePolicySummary.js +49 -0
- package/dist/esm/models/PaginationResponseServerListResponse.d.ts +36 -0
- package/dist/esm/models/PaginationResponseServerListResponse.js +49 -0
- package/dist/esm/models/PolicyAttributionResponse.d.ts +47 -0
- package/dist/esm/models/PolicyAttributionResponse.js +56 -0
- package/dist/esm/models/PolicyDetail.d.ts +83 -0
- package/dist/esm/models/PolicyDetail.js +87 -0
- package/dist/esm/models/PolicyDetailResponse.d.ts +31 -0
- package/dist/esm/models/PolicyDetailResponse.js +44 -0
- package/dist/esm/models/PolicyImpactSeverityCounts.d.ts +51 -0
- package/dist/esm/models/PolicyImpactSeverityCounts.js +47 -0
- package/dist/esm/models/PolicyImpactSummary.d.ts +105 -0
- package/dist/esm/models/PolicyImpactSummary.js +98 -0
- package/dist/esm/models/PolicyRevisionCompareResponse.d.ts +58 -0
- package/dist/esm/models/PolicyRevisionCompareResponse.js +60 -0
- package/dist/esm/models/PolicyRevisionCompareSide.d.ts +54 -0
- package/dist/esm/models/PolicyRevisionCompareSide.js +62 -0
- package/dist/esm/models/PolicyRevisionDetailResponse.d.ts +37 -0
- package/dist/esm/models/PolicyRevisionDetailResponse.js +46 -0
- package/dist/esm/models/PolicyRevisionSummary.d.ts +79 -0
- package/dist/esm/models/PolicyRevisionSummary.js +75 -0
- package/dist/esm/models/PolicyRuleConditionInput.d.ts +31 -0
- package/dist/esm/models/PolicyRuleConditionInput.js +44 -0
- package/dist/esm/models/PolicyRuleConditionOutput.d.ts +31 -0
- package/dist/esm/models/PolicyRuleConditionOutput.js +44 -0
- package/dist/esm/models/PolicyRuleInput.d.ts +55 -0
- package/dist/esm/models/PolicyRuleInput.js +56 -0
- package/dist/esm/models/PolicyRuleOutput.d.ts +55 -0
- package/dist/esm/models/PolicyRuleOutput.js +56 -0
- package/dist/esm/models/PolicyStatus.d.ts +34 -0
- package/dist/esm/models/PolicyStatus.js +52 -0
- package/dist/esm/models/PolicySummary.d.ts +86 -0
- package/dist/esm/models/PolicySummary.js +82 -0
- package/dist/esm/models/PolicySummaryResponse.d.ts +46 -0
- package/dist/esm/models/PolicySummaryResponse.js +49 -0
- package/dist/esm/models/Posture.d.ts +31 -0
- package/dist/esm/models/Posture.js +49 -0
- package/dist/esm/models/PresidioConnectionResponse.d.ts +46 -0
- package/dist/esm/models/PresidioConnectionResponse.js +59 -0
- package/dist/esm/models/PricingChangeSource.d.ts +34 -0
- package/dist/esm/models/PricingChangeSource.js +52 -0
- package/dist/esm/models/PricingRuleSummary.d.ts +146 -0
- package/dist/esm/models/PricingRuleSummary.js +111 -0
- package/dist/esm/models/PricingSyncMode.d.ts +27 -0
- package/dist/esm/models/PricingSyncMode.js +45 -0
- package/dist/esm/models/Protocol.d.ts +25 -0
- package/dist/esm/models/Protocol.js +43 -0
- package/dist/esm/models/Provider.d.ts +200 -0
- package/dist/esm/models/Provider.js +137 -0
- package/dist/esm/models/ProviderConnectionResponse.d.ts +28 -0
- package/dist/esm/models/ProviderConnectionResponse.js +86 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf.d.ts +57 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf.js +71 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf1.d.ts +49 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf1.js +63 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf2.d.ts +57 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf2.js +71 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf3.d.ts +73 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf3.js +79 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf4.d.ts +77 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf4.js +83 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf5.d.ts +57 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf5.js +71 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf6.d.ts +57 -0
- package/dist/esm/models/ProviderConnectionResponseOneOf6.js +71 -0
- package/dist/esm/models/PublishBlocker.d.ts +27 -0
- package/dist/esm/models/PublishBlocker.js +45 -0
- package/dist/esm/models/ReorderEntry.d.ts +34 -0
- package/dist/esm/models/ReorderEntry.js +47 -0
- package/dist/esm/models/ReorderModelMappingsRequest.d.ts +31 -0
- package/dist/esm/models/ReorderModelMappingsRequest.js +44 -0
- package/dist/esm/models/ReorderedResponse.d.ts +30 -0
- package/dist/esm/models/ReorderedResponse.js +43 -0
- package/dist/esm/models/ResolvedProtectionResponse.d.ts +31 -0
- package/dist/esm/models/ResolvedProtectionResponse.js +44 -0
- package/dist/esm/models/ResolvedProtectionRuleResponse.d.ts +87 -0
- package/dist/esm/models/ResolvedProtectionRuleResponse.js +84 -0
- package/dist/esm/models/ResolvedRef.d.ts +42 -0
- package/dist/esm/models/ResolvedRef.js +54 -0
- package/dist/esm/models/RevokedResponse.d.ts +30 -0
- package/dist/esm/models/RevokedResponse.js +43 -0
- package/dist/esm/models/RouteHealthStatus.d.ts +53 -0
- package/dist/esm/models/RouteHealthStatus.js +59 -0
- package/dist/esm/models/RoutingPolicy.d.ts +90 -0
- package/dist/esm/models/RoutingPolicy.js +92 -0
- package/dist/esm/models/RoutingPolicyDraft.d.ts +68 -0
- package/dist/esm/models/RoutingPolicyDraft.js +65 -0
- package/dist/esm/models/RoutingPolicyUpdate.d.ts +69 -0
- package/dist/esm/models/RoutingPolicyUpdate.js +61 -0
- package/dist/esm/models/RoutingRule.d.ts +60 -0
- package/dist/esm/models/RoutingRule.js +69 -0
- package/dist/esm/models/RoutingRuleDraft.d.ts +46 -0
- package/dist/esm/models/RoutingRuleDraft.js +53 -0
- package/dist/esm/models/RoutingRuleWriteResponse.d.ts +65 -0
- package/dist/esm/models/RoutingRuleWriteResponse.js +74 -0
- package/dist/esm/models/RoutingSlot.d.ts +41 -0
- package/dist/esm/models/RoutingSlot.js +47 -0
- package/dist/esm/models/RuleConflict.d.ts +43 -0
- package/dist/esm/models/RuleConflict.js +51 -0
- package/dist/esm/models/ScopeJson.d.ts +42 -0
- package/dist/esm/models/ScopeJson.js +47 -0
- package/dist/esm/models/ScopeType.d.ts +43 -0
- package/dist/esm/models/ScopeType.js +61 -0
- package/dist/esm/models/ServerConnectionResponse.d.ts +62 -0
- package/dist/esm/models/ServerConnectionResponse.js +66 -0
- package/dist/esm/models/ServerListResponse.d.ts +156 -0
- package/dist/esm/models/ServerListResponse.js +163 -0
- package/dist/esm/models/ServerResponse.d.ts +158 -0
- package/dist/esm/models/ServerResponse.js +167 -0
- package/dist/esm/models/ServerSource.d.ts +30 -0
- package/dist/esm/models/ServerSource.js +48 -0
- package/dist/esm/models/SetApiKeyDisabledRequest.d.ts +30 -0
- package/dist/esm/models/SetApiKeyDisabledRequest.js +43 -0
- package/dist/esm/models/StaleReason.d.ts +24 -0
- package/dist/esm/models/StaleReason.js +42 -0
- package/dist/esm/models/TestFindingResponse.d.ts +90 -0
- package/dist/esm/models/TestFindingResponse.js +99 -0
- package/dist/esm/models/TestProcessTextRequest.d.ts +55 -0
- package/dist/esm/models/TestProcessTextRequest.js +58 -0
- package/dist/esm/models/TestProcessTextResponse.d.ts +56 -0
- package/dist/esm/models/TestProcessTextResponse.js +65 -0
- package/dist/esm/models/TokenizationConnectionResponse.d.ts +38 -0
- package/dist/esm/models/TokenizationConnectionResponse.js +51 -0
- package/dist/esm/models/TrafficType.d.ts +26 -0
- package/dist/esm/models/TrafficType.js +44 -0
- package/dist/esm/models/UpdateBudgetRequest.d.ts +64 -0
- package/dist/esm/models/UpdateBudgetRequest.js +57 -0
- package/dist/esm/models/UpdateConnectionRequest.d.ts +56 -0
- package/dist/esm/models/UpdateConnectionRequest.js +53 -0
- package/dist/esm/models/UpdateContractRequest.d.ts +41 -0
- package/dist/esm/models/UpdateContractRequest.js +48 -0
- package/dist/esm/models/UpdateCustomDetectionTypeRequest.d.ts +47 -0
- package/dist/esm/models/UpdateCustomDetectionTypeRequest.js +50 -0
- package/dist/esm/models/UpdateDetectionEngineRequest.d.ts +46 -0
- package/dist/esm/models/UpdateDetectionEngineRequest.js +49 -0
- package/dist/esm/models/UpdateEnforcementPolicyRequest.d.ts +77 -0
- package/dist/esm/models/UpdateEnforcementPolicyRequest.js +66 -0
- package/dist/esm/models/UpdateFieldControlPolicyRequest.d.ts +42 -0
- package/dist/esm/models/UpdateFieldControlPolicyRequest.js +47 -0
- package/dist/esm/models/UpdateModelAccessRequest.d.ts +70 -0
- package/dist/esm/models/UpdateModelAccessRequest.js +58 -0
- package/dist/esm/models/UpdateModelMappingRequest.d.ts +79 -0
- package/dist/esm/models/UpdateModelMappingRequest.js +59 -0
- package/dist/esm/models/UpdateOrgConfigRequest.d.ts +34 -0
- package/dist/esm/models/UpdateOrgConfigRequest.js +43 -0
- package/dist/esm/models/UpdatePolicy.d.ts +56 -0
- package/dist/esm/models/UpdatePolicy.js +55 -0
- package/dist/esm/models/UpdatePricingRequest.d.ts +70 -0
- package/dist/esm/models/UpdatePricingRequest.js +58 -0
- package/dist/esm/models/UpdateProviderRequest.d.ts +124 -0
- package/dist/esm/models/UpdateProviderRequest.js +74 -0
- package/dist/esm/models/UpdateRateLimitRequest.d.ts +87 -0
- package/dist/esm/models/UpdateRateLimitRequest.js +65 -0
- package/dist/esm/models/UpdateRouteGroupRequest.d.ts +46 -0
- package/dist/esm/models/UpdateRouteGroupRequest.js +47 -0
- package/dist/esm/models/UpdateSettingsRequest.d.ts +50 -0
- package/dist/esm/models/UpdateSettingsRequest.js +51 -0
- package/dist/esm/models/UpsertAwsBedrockGuardrailsRequest.d.ts +66 -0
- package/dist/esm/models/UpsertAwsBedrockGuardrailsRequest.js +61 -0
- package/dist/esm/models/UpsertAwsComprehendPiiRequest.d.ts +62 -0
- package/dist/esm/models/UpsertAwsComprehendPiiRequest.js +57 -0
- package/dist/esm/models/UpsertAzureAiLanguagePiiRequest.d.ts +42 -0
- package/dist/esm/models/UpsertAzureAiLanguagePiiRequest.js +49 -0
- package/dist/esm/models/UpsertAzureContentSafetyRequest.d.ts +42 -0
- package/dist/esm/models/UpsertAzureContentSafetyRequest.js +49 -0
- package/dist/esm/models/UpsertConnectionRequest.d.ts +28 -0
- package/dist/esm/models/UpsertConnectionRequest.js +86 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf.d.ts +53 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf.js +61 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf1.d.ts +45 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf1.js +57 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf2.d.ts +53 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf2.js +61 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf3.d.ts +73 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf3.js +69 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf4.d.ts +77 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf4.js +73 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf5.d.ts +53 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf5.js +61 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf6.d.ts +53 -0
- package/dist/esm/models/UpsertConnectionRequestOneOf6.js +61 -0
- package/dist/esm/models/UpsertFieldControlPolicyRequest.d.ts +46 -0
- package/dist/esm/models/UpsertFieldControlPolicyRequest.js +53 -0
- package/dist/esm/models/UpsertGoogleDlpRequest.d.ts +42 -0
- package/dist/esm/models/UpsertGoogleDlpRequest.js +49 -0
- package/dist/esm/models/UpsertPresidioRequest.d.ts +42 -0
- package/dist/esm/models/UpsertPresidioRequest.js +49 -0
- package/dist/esm/models/UpsertTokenizationRequest.d.ts +34 -0
- package/dist/esm/models/UpsertTokenizationRequest.js +45 -0
- package/dist/esm/models/ValidateAwsRoleRequest.d.ts +38 -0
- package/dist/esm/models/ValidateAwsRoleRequest.js +51 -0
- package/dist/esm/models/ValidatePolicyRequest.d.ts +42 -0
- package/dist/esm/models/ValidatePolicyRequest.js +49 -0
- package/dist/esm/models/ValidatePolicyResponse.d.ts +38 -0
- package/dist/esm/models/ValidatePolicyResponse.js +49 -0
- package/dist/esm/models/ValidationError.d.ts +47 -0
- package/dist/esm/models/ValidationError.js +56 -0
- package/dist/esm/models/WebhookSecretResponse.d.ts +30 -0
- package/dist/esm/models/WebhookSecretResponse.js +43 -0
- package/dist/esm/models/WithAttributionModelAccessPolicy.d.ts +119 -0
- package/dist/esm/models/WithAttributionModelAccessPolicy.js +93 -0
- package/dist/esm/models/WithAttributionRateLimitPolicy.d.ts +188 -0
- package/dist/esm/models/WithAttributionRateLimitPolicy.js +100 -0
- package/dist/esm/models/WithAttributionTokenBudget.d.ts +200 -0
- package/dist/esm/models/WithAttributionTokenBudget.js +120 -0
- package/dist/esm/models/index.d.ts +272 -0
- package/dist/esm/models/index.js +274 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/runtime.d.ts +214 -0
- package/dist/esm/runtime.js +416 -0
- package/dist/index.d.ts +4 -41
- package/dist/index.js +22 -13
- package/dist/lib/auth.d.ts +95 -0
- package/dist/lib/auth.js +215 -0
- package/dist/lib/cli.d.ts +44 -0
- package/dist/lib/cli.js +92 -0
- package/dist/lib/client.d.ts +51 -0
- package/dist/lib/client.js +48 -0
- package/dist/lib/config.d.ts +14 -0
- package/dist/lib/config.js +66 -0
- package/dist/lib/http.d.ts +23 -0
- package/dist/lib/http.js +83 -0
- package/dist/lib/index.d.ts +15 -0
- package/dist/lib/index.js +30 -0
- package/dist/lib/mcp.d.ts +41 -0
- package/dist/lib/mcp.js +82 -0
- package/dist/models/AWSTrustInfoResponse.d.ts +34 -0
- package/dist/models/AWSTrustInfoResponse.js +54 -0
- package/dist/models/AddRouteGroupMembersRequest.d.ts +36 -0
- package/dist/models/AddRouteGroupMembersRequest.js +52 -0
- package/dist/models/AdminModelPricing.d.ts +133 -0
- package/dist/models/AdminModelPricing.js +108 -0
- package/dist/models/AffectedPoliciesResponse.d.ts +48 -0
- package/dist/models/AffectedPoliciesResponse.js +59 -0
- package/dist/models/AffectedPolicyPreview.d.ts +49 -0
- package/dist/models/AffectedPolicyPreview.js +64 -0
- package/dist/models/AgentPolicyCounts.d.ts +36 -0
- package/dist/models/AgentPolicyCounts.js +50 -0
- package/dist/models/AgentRuntimeCapabilities.d.ts +85 -0
- package/dist/models/AgentRuntimeCapabilities.js +74 -0
- package/dist/models/AgentRuntimeProfile.d.ts +77 -0
- package/dist/models/AgentRuntimeProfile.js +96 -0
- package/dist/models/AgentType.d.ts +25 -0
- package/dist/models/AgentType.js +51 -0
- package/dist/models/AlertType.d.ts +44 -0
- package/dist/models/AlertType.js +70 -0
- package/dist/models/AlertTypeOption.d.ts +42 -0
- package/dist/models/AlertTypeOption.js +62 -0
- package/dist/models/AllowListEntryResponse.d.ts +58 -0
- package/dist/models/AllowListEntryResponse.js +78 -0
- package/dist/models/ApiKey.d.ts +89 -0
- package/dist/models/ApiKey.js +92 -0
- package/dist/models/ApiKeyDisabledResponse.d.ts +30 -0
- package/dist/models/ApiKeyDisabledResponse.js +50 -0
- package/dist/models/ApiKeyKind.d.ts +36 -0
- package/dist/models/ApiKeyKind.js +62 -0
- package/dist/models/AppType.d.ts +30 -0
- package/dist/models/AppType.js +56 -0
- package/dist/models/Application.d.ts +58 -0
- package/dist/models/Application.js +79 -0
- package/dist/models/ApplicationCounts.d.ts +38 -0
- package/dist/models/ApplicationCounts.js +58 -0
- package/dist/models/ApplicationDirectoryBase.d.ts +87 -0
- package/dist/models/ApplicationDirectoryBase.js +108 -0
- package/dist/models/ApplicationDirectoryResponse.d.ts +92 -0
- package/dist/models/ApplicationDirectoryResponse.js +113 -0
- package/dist/models/ApplicationLlmGatewayPayload.d.ts +30 -0
- package/dist/models/ApplicationLlmGatewayPayload.js +50 -0
- package/dist/models/ApplicationPayload.d.ts +38 -0
- package/dist/models/ApplicationPayload.js +54 -0
- package/dist/models/ApplicationResponse.d.ts +68 -0
- package/dist/models/ApplicationResponse.js +88 -0
- package/dist/models/ApplicationWriteConfirmationsPayload.d.ts +30 -0
- package/dist/models/ApplicationWriteConfirmationsPayload.js +50 -0
- package/dist/models/ArchivePricingResponse.d.ts +45 -0
- package/dist/models/ArchivePricingResponse.js +62 -0
- package/dist/models/AttentionTier.d.ts +34 -0
- package/dist/models/AttentionTier.js +60 -0
- package/dist/models/AutoDisabledReason.d.ts +27 -0
- package/dist/models/AutoDisabledReason.js +53 -0
- package/dist/models/AwsBedrockGuardrailsConnectionResponse.d.ts +66 -0
- package/dist/models/AwsBedrockGuardrailsConnectionResponse.js +78 -0
- package/dist/models/AwsComprehendPiiConnectionResponse.d.ts +62 -0
- package/dist/models/AwsComprehendPiiConnectionResponse.js +74 -0
- package/dist/models/AwsRoleConfigResponse.d.ts +34 -0
- package/dist/models/AwsRoleConfigResponse.js +52 -0
- package/dist/models/AwsRoleValidationResponse.d.ts +31 -0
- package/dist/models/AwsRoleValidationResponse.js +50 -0
- package/dist/models/AzureAiLanguagePiiConnectionResponse.d.ts +46 -0
- package/dist/models/AzureAiLanguagePiiConnectionResponse.js +66 -0
- package/dist/models/AzureContentSafetyConnectionResponse.d.ts +46 -0
- package/dist/models/AzureContentSafetyConnectionResponse.js +66 -0
- package/dist/models/BillingMode.d.ts +36 -0
- package/dist/models/BillingMode.js +62 -0
- package/dist/models/BillingReason.d.ts +42 -0
- package/dist/models/BillingReason.js +68 -0
- package/dist/models/BudgetAction.d.ts +26 -0
- package/dist/models/BudgetAction.js +52 -0
- package/dist/models/BudgetLimitKind.d.ts +25 -0
- package/dist/models/BudgetLimitKind.js +51 -0
- package/dist/models/BudgetPeriod.d.ts +33 -0
- package/dist/models/BudgetPeriod.js +59 -0
- package/dist/models/BudgetTargetKind.d.ts +28 -0
- package/dist/models/BudgetTargetKind.js +54 -0
- package/dist/models/BudgetTargetStatus.d.ts +58 -0
- package/dist/models/BudgetTargetStatus.js +76 -0
- package/dist/models/ChangeAttribution.d.ts +73 -0
- package/dist/models/ChangeAttribution.js +63 -0
- package/dist/models/ChannelListResponse.d.ts +32 -0
- package/dist/models/ChannelListResponse.js +51 -0
- package/dist/models/ChannelOptionsResponse.d.ts +43 -0
- package/dist/models/ChannelOptionsResponse.js +60 -0
- package/dist/models/ChannelResponse.d.ts +87 -0
- package/dist/models/ChannelResponse.js +99 -0
- package/dist/models/ChannelSubscription.d.ts +31 -0
- package/dist/models/ChannelSubscription.js +51 -0
- package/dist/models/ChannelSubscriptionInput.d.ts +38 -0
- package/dist/models/ChannelSubscriptionInput.js +51 -0
- package/dist/models/ChannelTestResponse.d.ts +37 -0
- package/dist/models/ChannelTestResponse.js +52 -0
- package/dist/models/ChannelType.d.ts +49 -0
- package/dist/models/ChannelType.js +75 -0
- package/dist/models/ChannelUpsertRequest.d.ts +86 -0
- package/dist/models/ChannelUpsertRequest.js +68 -0
- package/dist/models/ConditionOfInput.d.ts +31 -0
- package/dist/models/ConditionOfInput.js +51 -0
- package/dist/models/ConditionOfOutput.d.ts +31 -0
- package/dist/models/ConditionOfOutput.js +51 -0
- package/dist/models/ConfigureDestinationRequest.d.ts +78 -0
- package/dist/models/ConfigureDestinationRequest.js +72 -0
- package/dist/models/Connection.d.ts +126 -0
- package/dist/models/Connection.js +109 -0
- package/dist/models/ConnectionInitiateResponse.d.ts +42 -0
- package/dist/models/ConnectionInitiateResponse.js +60 -0
- package/dist/models/ConnectionRead.d.ts +58 -0
- package/dist/models/ConnectionRead.js +71 -0
- package/dist/models/ConnectionStatus.d.ts +26 -0
- package/dist/models/ConnectionStatus.js +38 -0
- package/dist/models/CreateAllowListEntryRequest.d.ts +42 -0
- package/dist/models/CreateAllowListEntryRequest.js +58 -0
- package/dist/models/CreateApiKeyRequest.d.ts +51 -0
- package/dist/models/CreateApiKeyRequest.js +61 -0
- package/dist/models/CreateApiKeyResponse.d.ts +58 -0
- package/dist/models/CreateApiKeyResponse.js +75 -0
- package/dist/models/CreateBudgetRequest.d.ts +110 -0
- package/dist/models/CreateBudgetRequest.js +88 -0
- package/dist/models/CreateConnectionRequest.d.ts +61 -0
- package/dist/models/CreateConnectionRequest.js +68 -0
- package/dist/models/CreateCustomDetectionTypeRequest.d.ts +47 -0
- package/dist/models/CreateCustomDetectionTypeRequest.js +61 -0
- package/dist/models/CreateDetectionEngineRequest.d.ts +46 -0
- package/dist/models/CreateDetectionEngineRequest.js +60 -0
- package/dist/models/CreateEnforcementPolicyRequest.d.ts +77 -0
- package/dist/models/CreateEnforcementPolicyRequest.js +77 -0
- package/dist/models/CreateModelAccessRequest.d.ts +60 -0
- package/dist/models/CreateModelAccessRequest.js +71 -0
- package/dist/models/CreateModelMappingRequest.d.ts +103 -0
- package/dist/models/CreateModelMappingRequest.js +77 -0
- package/dist/models/CreatePolicy.d.ts +60 -0
- package/dist/models/CreatePolicy.js +68 -0
- package/dist/models/CreatePricingRequest.d.ts +88 -0
- package/dist/models/CreatePricingRequest.js +79 -0
- package/dist/models/CreateProfileRequest.d.ts +49 -0
- package/dist/models/CreateProfileRequest.js +65 -0
- package/dist/models/CreateProviderRequest.d.ts +124 -0
- package/dist/models/CreateProviderRequest.js +91 -0
- package/dist/models/CreateRateLimitRequest.d.ts +95 -0
- package/dist/models/CreateRateLimitRequest.js +76 -0
- package/dist/models/CreateRouteGroupRequest.d.ts +46 -0
- package/dist/models/CreateRouteGroupRequest.js +56 -0
- package/dist/models/CredentialsPayload.d.ts +52 -0
- package/dist/models/CredentialsPayload.js +58 -0
- package/dist/models/CustomDetectionPatternRequest.d.ts +34 -0
- package/dist/models/CustomDetectionPatternRequest.js +54 -0
- package/dist/models/CustomDetectionPatternResponse.d.ts +34 -0
- package/dist/models/CustomDetectionPatternResponse.js +54 -0
- package/dist/models/CustomDetectionTypeResponse.d.ts +71 -0
- package/dist/models/CustomDetectionTypeResponse.js +91 -0
- package/dist/models/CustomDetectionTypesResponse.d.ts +31 -0
- package/dist/models/CustomDetectionTypesResponse.js +51 -0
- package/dist/models/DefaultModelAccess.d.ts +35 -0
- package/dist/models/DefaultModelAccess.js +61 -0
- package/dist/models/DefaultPricingEntry.d.ts +81 -0
- package/dist/models/DefaultPricingEntry.js +85 -0
- package/dist/models/DeletedResponse.d.ts +35 -0
- package/dist/models/DeletedResponse.js +50 -0
- package/dist/models/DestinationResponse.d.ts +48 -0
- package/dist/models/DestinationResponse.js +68 -0
- package/dist/models/DetectionEngineCapabilitiesResponse.d.ts +62 -0
- package/dist/models/DetectionEngineCapabilitiesResponse.js +82 -0
- package/dist/models/DetectionEngineResponse.d.ts +93 -0
- package/dist/models/DetectionEngineResponse.js +106 -0
- package/dist/models/DetectionTypeInfoResponse.d.ts +59 -0
- package/dist/models/DetectionTypeInfoResponse.js +78 -0
- package/dist/models/DetectionTypesResponse.d.ts +31 -0
- package/dist/models/DetectionTypesResponse.js +51 -0
- package/dist/models/DlpAwsTrustInfoResponse.d.ts +34 -0
- package/dist/models/DlpAwsTrustInfoResponse.js +54 -0
- package/dist/models/DlpErrorResponse.d.ts +41 -0
- package/dist/models/DlpErrorResponse.js +50 -0
- package/dist/models/EffectivePricing.d.ts +89 -0
- package/dist/models/EffectivePricing.js +63 -0
- package/dist/models/EnforcementPoliciesResponse.d.ts +31 -0
- package/dist/models/EnforcementPoliciesResponse.js +51 -0
- package/dist/models/EnforcementPolicyMcpTargetRequest.d.ts +34 -0
- package/dist/models/EnforcementPolicyMcpTargetRequest.js +54 -0
- package/dist/models/EnforcementPolicyMcpTargetResponse.d.ts +38 -0
- package/dist/models/EnforcementPolicyMcpTargetResponse.js +58 -0
- package/dist/models/EnforcementPolicyPrincipalRequest.d.ts +34 -0
- package/dist/models/EnforcementPolicyPrincipalRequest.js +54 -0
- package/dist/models/EnforcementPolicyPrincipalResponse.d.ts +38 -0
- package/dist/models/EnforcementPolicyPrincipalResponse.js +58 -0
- package/dist/models/EnforcementPolicyResponse.d.ts +101 -0
- package/dist/models/EnforcementPolicyResponse.js +117 -0
- package/dist/models/ErrorDetail.d.ts +38 -0
- package/dist/models/ErrorDetail.js +52 -0
- package/dist/models/ErrorModel.d.ts +51 -0
- package/dist/models/ErrorModel.js +59 -0
- package/dist/models/ExportDestination.d.ts +74 -0
- package/dist/models/ExportDestination.js +70 -0
- package/dist/models/ExportHealthCheck.d.ts +42 -0
- package/dist/models/ExportHealthCheck.js +55 -0
- package/dist/models/ExportResponse.d.ts +69 -0
- package/dist/models/ExportResponse.js +90 -0
- package/dist/models/ExportRuntimeStatus.d.ts +47 -0
- package/dist/models/ExportRuntimeStatus.js +58 -0
- package/dist/models/ExportSettings.d.ts +50 -0
- package/dist/models/ExportSettings.js +68 -0
- package/dist/models/ExportsResponse.d.ts +31 -0
- package/dist/models/ExportsResponse.js +51 -0
- package/dist/models/Expression.d.ts +30 -0
- package/dist/models/Expression.js +50 -0
- package/dist/models/FieldControlPoliciesResponse.d.ts +31 -0
- package/dist/models/FieldControlPoliciesResponse.js +51 -0
- package/dist/models/FieldControlPolicyResponse.d.ts +70 -0
- package/dist/models/FieldControlPolicyResponse.js +90 -0
- package/dist/models/FilterCategory.d.ts +39 -0
- package/dist/models/FilterCategory.js +57 -0
- package/dist/models/FilterOption.d.ts +38 -0
- package/dist/models/FilterOption.js +56 -0
- package/dist/models/GoogleDlpConnectionResponse.d.ts +46 -0
- package/dist/models/GoogleDlpConnectionResponse.js +66 -0
- package/dist/models/GovernanceConfig.d.ts +52 -0
- package/dist/models/GovernanceConfig.js +55 -0
- package/dist/models/HTTPValidationError.d.ts +31 -0
- package/dist/models/HTTPValidationError.js +49 -0
- package/dist/models/IdListResponse.d.ts +30 -0
- package/dist/models/IdListResponse.js +48 -0
- package/dist/models/IdpConnectionConfig.d.ts +89 -0
- package/dist/models/IdpConnectionConfig.js +93 -0
- package/dist/models/IdpConnectionResponse.d.ts +86 -0
- package/dist/models/IdpConnectionResponse.js +76 -0
- package/dist/models/IdpRoleMappingConfig.d.ts +30 -0
- package/dist/models/IdpRoleMappingConfig.js +48 -0
- package/dist/models/IdpRoleMappingResponse.d.ts +38 -0
- package/dist/models/IdpRoleMappingResponse.js +52 -0
- package/dist/models/IdpSettingsResponse.d.ts +38 -0
- package/dist/models/IdpSettingsResponse.js +52 -0
- package/dist/models/IdpTestResult.d.ts +40 -0
- package/dist/models/IdpTestResult.js +56 -0
- package/dist/models/LabeledOption.d.ts +34 -0
- package/dist/models/LabeledOption.js +54 -0
- package/dist/models/ListProfilesResponse.d.ts +31 -0
- package/dist/models/ListProfilesResponse.js +51 -0
- package/dist/models/ListRoutingRulesResponse.d.ts +40 -0
- package/dist/models/ListRoutingRulesResponse.js +56 -0
- package/dist/models/LlmGatewayAwsRoleConfigResponse.d.ts +42 -0
- package/dist/models/LlmGatewayAwsRoleConfigResponse.js +52 -0
- package/dist/models/LlmGatewayAwsTrustInfoResponse.d.ts +34 -0
- package/dist/models/LlmGatewayAwsTrustInfoResponse.js +54 -0
- package/dist/models/LocationInner.d.ts +26 -0
- package/dist/models/LocationInner.js +38 -0
- package/dist/models/LongContextTier.d.ts +58 -0
- package/dist/models/LongContextTier.js +62 -0
- package/dist/models/LongContextTierEntry.d.ts +48 -0
- package/dist/models/LongContextTierEntry.js +62 -0
- package/dist/models/LongContextTierRequest.d.ts +53 -0
- package/dist/models/LongContextTierRequest.js +62 -0
- package/dist/models/MCPServerCategory.d.ts +50 -0
- package/dist/models/MCPServerCategory.js +71 -0
- package/dist/models/MCPServerDirectoryBase.d.ts +126 -0
- package/dist/models/MCPServerDirectoryBase.js +141 -0
- package/dist/models/MCPServerDirectoryRead.d.ts +135 -0
- package/dist/models/MCPServerDirectoryRead.js +150 -0
- package/dist/models/MCPServerDirectoryReadWithServers.d.ts +140 -0
- package/dist/models/MCPServerDirectoryReadWithServers.js +155 -0
- package/dist/models/MaskFormat.d.ts +45 -0
- package/dist/models/MaskFormat.js +59 -0
- package/dist/models/MaskKeep.d.ts +25 -0
- package/dist/models/MaskKeep.js +51 -0
- package/dist/models/Match.d.ts +25 -0
- package/dist/models/Match.js +71 -0
- package/dist/models/Match1.d.ts +25 -0
- package/dist/models/Match1.js +71 -0
- package/dist/models/MetadataPatchRequest.d.ts +34 -0
- package/dist/models/MetadataPatchRequest.js +50 -0
- package/dist/models/ModelAccessTarget.d.ts +43 -0
- package/dist/models/ModelAccessTarget.js +78 -0
- package/dist/models/ModelAccessTargetOneOf.d.ts +46 -0
- package/dist/models/ModelAccessTargetOneOf.js +63 -0
- package/dist/models/ModelAccessTargetOneOf1.d.ts +46 -0
- package/dist/models/ModelAccessTargetOneOf1.js +63 -0
- package/dist/models/ModelAccessTargetOneOf2.d.ts +46 -0
- package/dist/models/ModelAccessTargetOneOf2.js +63 -0
- package/dist/models/ModelAccessTargetOneOf3.d.ts +46 -0
- package/dist/models/ModelAccessTargetOneOf3.js +67 -0
- package/dist/models/ModelAccessTargetOneOf4.d.ts +55 -0
- package/dist/models/ModelAccessTargetOneOf4.js +63 -0
- package/dist/models/ModelMapping.d.ts +155 -0
- package/dist/models/ModelMapping.js +111 -0
- package/dist/models/ModelMappingWithBudgetStatus.d.ts +192 -0
- package/dist/models/ModelMappingWithBudgetStatus.js +125 -0
- package/dist/models/ModelMappingWithProvider.d.ts +134 -0
- package/dist/models/ModelMappingWithProvider.js +123 -0
- package/dist/models/ModelMappingWithProviderAndBudgetStatus.d.ts +155 -0
- package/dist/models/ModelMappingWithProviderAndBudgetStatus.js +137 -0
- package/dist/models/ModelPricing.d.ts +94 -0
- package/dist/models/ModelPricing.js +86 -0
- package/dist/models/ModelRouteGroup.d.ts +92 -0
- package/dist/models/ModelRouteGroup.js +83 -0
- package/dist/models/ModelSource.d.ts +35 -0
- package/dist/models/ModelSource.js +61 -0
- package/dist/models/ModelStaleStatus.d.ts +31 -0
- package/dist/models/ModelStaleStatus.js +51 -0
- package/dist/models/ModelSyncMode.d.ts +35 -0
- package/dist/models/ModelSyncMode.js +61 -0
- package/dist/models/OAuthConfig.d.ts +39 -0
- package/dist/models/OAuthConfig.js +53 -0
- package/dist/models/OfInner.d.ts +25 -0
- package/dist/models/OfInner.js +71 -0
- package/dist/models/OfInner1.d.ts +25 -0
- package/dist/models/OfInner1.js +71 -0
- package/dist/models/OperatorAllInput.d.ts +31 -0
- package/dist/models/OperatorAllInput.js +51 -0
- package/dist/models/OperatorAllOutput.d.ts +31 -0
- package/dist/models/OperatorAllOutput.js +51 -0
- package/dist/models/OperatorAnyInput.d.ts +31 -0
- package/dist/models/OperatorAnyInput.js +51 -0
- package/dist/models/OperatorAnyOutput.d.ts +31 -0
- package/dist/models/OperatorAnyOutput.js +51 -0
- package/dist/models/OperatorNoneInput.d.ts +31 -0
- package/dist/models/OperatorNoneInput.js +51 -0
- package/dist/models/OperatorNoneOutput.d.ts +31 -0
- package/dist/models/OperatorNoneOutput.js +51 -0
- package/dist/models/OrgConfigResponse.d.ts +50 -0
- package/dist/models/OrgConfigResponse.js +70 -0
- package/dist/models/OrganizationRolesGroupsResponse.d.ts +39 -0
- package/dist/models/OrganizationRolesGroupsResponse.js +54 -0
- package/dist/models/PaginatedResponseAllowListEntryResponse.d.ts +39 -0
- package/dist/models/PaginatedResponseAllowListEntryResponse.js +59 -0
- package/dist/models/PaginatedResponseAllowListEntryResponseItemsInner.d.ts +58 -0
- package/dist/models/PaginatedResponseAllowListEntryResponseItemsInner.js +78 -0
- package/dist/models/PaginationMeta.d.ts +50 -0
- package/dist/models/PaginationMeta.js +70 -0
- package/dist/models/PaginationResponseApplicationDirectoryResponse.d.ts +36 -0
- package/dist/models/PaginationResponseApplicationDirectoryResponse.js +56 -0
- package/dist/models/PaginationResponseApplicationResponse.d.ts +36 -0
- package/dist/models/PaginationResponseApplicationResponse.js +56 -0
- package/dist/models/PaginationResponseMCPServerDirectoryReadWithServers.d.ts +36 -0
- package/dist/models/PaginationResponseMCPServerDirectoryReadWithServers.js +56 -0
- package/dist/models/PaginationResponsePolicyImpactSummary.d.ts +36 -0
- package/dist/models/PaginationResponsePolicyImpactSummary.js +56 -0
- package/dist/models/PaginationResponsePolicyRevisionSummary.d.ts +36 -0
- package/dist/models/PaginationResponsePolicyRevisionSummary.js +56 -0
- package/dist/models/PaginationResponsePolicySummary.d.ts +36 -0
- package/dist/models/PaginationResponsePolicySummary.js +56 -0
- package/dist/models/PaginationResponseServerListResponse.d.ts +36 -0
- package/dist/models/PaginationResponseServerListResponse.js +56 -0
- package/dist/models/PolicyAttributionResponse.d.ts +47 -0
- package/dist/models/PolicyAttributionResponse.js +63 -0
- package/dist/models/PolicyDetail.d.ts +83 -0
- package/dist/models/PolicyDetail.js +94 -0
- package/dist/models/PolicyDetailResponse.d.ts +31 -0
- package/dist/models/PolicyDetailResponse.js +51 -0
- package/dist/models/PolicyImpactSeverityCounts.d.ts +51 -0
- package/dist/models/PolicyImpactSeverityCounts.js +54 -0
- package/dist/models/PolicyImpactSummary.d.ts +105 -0
- package/dist/models/PolicyImpactSummary.js +105 -0
- package/dist/models/PolicyRevisionCompareResponse.d.ts +58 -0
- package/dist/models/PolicyRevisionCompareResponse.js +67 -0
- package/dist/models/PolicyRevisionCompareSide.d.ts +54 -0
- package/dist/models/PolicyRevisionCompareSide.js +69 -0
- package/dist/models/PolicyRevisionDetailResponse.d.ts +37 -0
- package/dist/models/PolicyRevisionDetailResponse.js +53 -0
- package/dist/models/PolicyRevisionSummary.d.ts +79 -0
- package/dist/models/PolicyRevisionSummary.js +82 -0
- package/dist/models/PolicyRuleConditionInput.d.ts +31 -0
- package/dist/models/PolicyRuleConditionInput.js +51 -0
- package/dist/models/PolicyRuleConditionOutput.d.ts +31 -0
- package/dist/models/PolicyRuleConditionOutput.js +51 -0
- package/dist/models/PolicyRuleInput.d.ts +55 -0
- package/dist/models/PolicyRuleInput.js +63 -0
- package/dist/models/PolicyRuleOutput.d.ts +55 -0
- package/dist/models/PolicyRuleOutput.js +63 -0
- package/dist/models/PolicyStatus.d.ts +34 -0
- package/dist/models/PolicyStatus.js +60 -0
- package/dist/models/PolicySummary.d.ts +86 -0
- package/dist/models/PolicySummary.js +89 -0
- package/dist/models/PolicySummaryResponse.d.ts +46 -0
- package/dist/models/PolicySummaryResponse.js +56 -0
- package/dist/models/Posture.d.ts +31 -0
- package/dist/models/Posture.js +57 -0
- package/dist/models/PresidioConnectionResponse.d.ts +46 -0
- package/dist/models/PresidioConnectionResponse.js +66 -0
- package/dist/models/PricingChangeSource.d.ts +34 -0
- package/dist/models/PricingChangeSource.js +60 -0
- package/dist/models/PricingRuleSummary.d.ts +146 -0
- package/dist/models/PricingRuleSummary.js +118 -0
- package/dist/models/PricingSyncMode.d.ts +27 -0
- package/dist/models/PricingSyncMode.js +53 -0
- package/dist/models/Protocol.d.ts +25 -0
- package/dist/models/Protocol.js +51 -0
- package/dist/models/Provider.d.ts +200 -0
- package/dist/models/Provider.js +144 -0
- package/dist/models/ProviderConnectionResponse.d.ts +28 -0
- package/dist/models/ProviderConnectionResponse.js +92 -0
- package/dist/models/ProviderConnectionResponseOneOf.d.ts +57 -0
- package/dist/models/ProviderConnectionResponseOneOf.js +79 -0
- package/dist/models/ProviderConnectionResponseOneOf1.d.ts +49 -0
- package/dist/models/ProviderConnectionResponseOneOf1.js +71 -0
- package/dist/models/ProviderConnectionResponseOneOf2.d.ts +57 -0
- package/dist/models/ProviderConnectionResponseOneOf2.js +79 -0
- package/dist/models/ProviderConnectionResponseOneOf3.d.ts +73 -0
- package/dist/models/ProviderConnectionResponseOneOf3.js +87 -0
- package/dist/models/ProviderConnectionResponseOneOf4.d.ts +77 -0
- package/dist/models/ProviderConnectionResponseOneOf4.js +91 -0
- package/dist/models/ProviderConnectionResponseOneOf5.d.ts +57 -0
- package/dist/models/ProviderConnectionResponseOneOf5.js +79 -0
- package/dist/models/ProviderConnectionResponseOneOf6.d.ts +57 -0
- package/dist/models/ProviderConnectionResponseOneOf6.js +79 -0
- package/dist/models/PublishBlocker.d.ts +27 -0
- package/dist/models/PublishBlocker.js +53 -0
- package/dist/models/ReorderEntry.d.ts +34 -0
- package/dist/models/ReorderEntry.js +54 -0
- package/dist/models/ReorderModelMappingsRequest.d.ts +31 -0
- package/dist/models/ReorderModelMappingsRequest.js +51 -0
- package/dist/models/ReorderedResponse.d.ts +30 -0
- package/dist/models/ReorderedResponse.js +50 -0
- package/dist/models/ResolvedProtectionResponse.d.ts +31 -0
- package/dist/models/ResolvedProtectionResponse.js +51 -0
- package/dist/models/ResolvedProtectionRuleResponse.d.ts +87 -0
- package/dist/models/ResolvedProtectionRuleResponse.js +91 -0
- package/dist/models/ResolvedRef.d.ts +42 -0
- package/dist/models/ResolvedRef.js +62 -0
- package/dist/models/RevokedResponse.d.ts +30 -0
- package/dist/models/RevokedResponse.js +50 -0
- package/dist/models/RouteHealthStatus.d.ts +53 -0
- package/dist/models/RouteHealthStatus.js +66 -0
- package/dist/models/RoutingPolicy.d.ts +90 -0
- package/dist/models/RoutingPolicy.js +99 -0
- package/dist/models/RoutingPolicyDraft.d.ts +68 -0
- package/dist/models/RoutingPolicyDraft.js +72 -0
- package/dist/models/RoutingPolicyUpdate.d.ts +69 -0
- package/dist/models/RoutingPolicyUpdate.js +68 -0
- package/dist/models/RoutingRule.d.ts +60 -0
- package/dist/models/RoutingRule.js +76 -0
- package/dist/models/RoutingRuleDraft.d.ts +46 -0
- package/dist/models/RoutingRuleDraft.js +60 -0
- package/dist/models/RoutingRuleWriteResponse.d.ts +65 -0
- package/dist/models/RoutingRuleWriteResponse.js +81 -0
- package/dist/models/RoutingSlot.d.ts +41 -0
- package/dist/models/RoutingSlot.js +54 -0
- package/dist/models/RuleConflict.d.ts +43 -0
- package/dist/models/RuleConflict.js +58 -0
- package/dist/models/ScopeJson.d.ts +42 -0
- package/dist/models/ScopeJson.js +54 -0
- package/dist/models/ScopeType.d.ts +43 -0
- package/dist/models/ScopeType.js +69 -0
- package/dist/models/ServerConnectionResponse.d.ts +62 -0
- package/dist/models/ServerConnectionResponse.js +73 -0
- package/dist/models/ServerListResponse.d.ts +156 -0
- package/dist/models/ServerListResponse.js +170 -0
- package/dist/models/ServerResponse.d.ts +158 -0
- package/dist/models/ServerResponse.js +174 -0
- package/dist/models/ServerSource.d.ts +30 -0
- package/dist/models/ServerSource.js +56 -0
- package/dist/models/SetApiKeyDisabledRequest.d.ts +30 -0
- package/dist/models/SetApiKeyDisabledRequest.js +50 -0
- package/dist/models/StaleReason.d.ts +24 -0
- package/dist/models/StaleReason.js +50 -0
- package/dist/models/TestFindingResponse.d.ts +90 -0
- package/dist/models/TestFindingResponse.js +106 -0
- package/dist/models/TestProcessTextRequest.d.ts +55 -0
- package/dist/models/TestProcessTextRequest.js +65 -0
- package/dist/models/TestProcessTextResponse.d.ts +56 -0
- package/dist/models/TestProcessTextResponse.js +72 -0
- package/dist/models/TokenizationConnectionResponse.d.ts +38 -0
- package/dist/models/TokenizationConnectionResponse.js +58 -0
- package/dist/models/TrafficType.d.ts +26 -0
- package/dist/models/TrafficType.js +52 -0
- package/dist/models/UpdateBudgetRequest.d.ts +64 -0
- package/dist/models/UpdateBudgetRequest.js +64 -0
- package/dist/models/UpdateConnectionRequest.d.ts +56 -0
- package/dist/models/UpdateConnectionRequest.js +60 -0
- package/dist/models/UpdateContractRequest.d.ts +41 -0
- package/dist/models/UpdateContractRequest.js +55 -0
- package/dist/models/UpdateCustomDetectionTypeRequest.d.ts +47 -0
- package/dist/models/UpdateCustomDetectionTypeRequest.js +57 -0
- package/dist/models/UpdateDetectionEngineRequest.d.ts +46 -0
- package/dist/models/UpdateDetectionEngineRequest.js +56 -0
- package/dist/models/UpdateEnforcementPolicyRequest.d.ts +77 -0
- package/dist/models/UpdateEnforcementPolicyRequest.js +73 -0
- package/dist/models/UpdateFieldControlPolicyRequest.d.ts +42 -0
- package/dist/models/UpdateFieldControlPolicyRequest.js +54 -0
- package/dist/models/UpdateModelAccessRequest.d.ts +70 -0
- package/dist/models/UpdateModelAccessRequest.js +65 -0
- package/dist/models/UpdateModelMappingRequest.d.ts +79 -0
- package/dist/models/UpdateModelMappingRequest.js +66 -0
- package/dist/models/UpdateOrgConfigRequest.d.ts +34 -0
- package/dist/models/UpdateOrgConfigRequest.js +50 -0
- package/dist/models/UpdatePolicy.d.ts +56 -0
- package/dist/models/UpdatePolicy.js +62 -0
- package/dist/models/UpdatePricingRequest.d.ts +70 -0
- package/dist/models/UpdatePricingRequest.js +65 -0
- package/dist/models/UpdateProviderRequest.d.ts +124 -0
- package/dist/models/UpdateProviderRequest.js +81 -0
- package/dist/models/UpdateRateLimitRequest.d.ts +87 -0
- package/dist/models/UpdateRateLimitRequest.js +72 -0
- package/dist/models/UpdateRouteGroupRequest.d.ts +46 -0
- package/dist/models/UpdateRouteGroupRequest.js +54 -0
- package/dist/models/UpdateSettingsRequest.d.ts +50 -0
- package/dist/models/UpdateSettingsRequest.js +58 -0
- package/dist/models/UpsertAwsBedrockGuardrailsRequest.d.ts +66 -0
- package/dist/models/UpsertAwsBedrockGuardrailsRequest.js +68 -0
- package/dist/models/UpsertAwsComprehendPiiRequest.d.ts +62 -0
- package/dist/models/UpsertAwsComprehendPiiRequest.js +64 -0
- package/dist/models/UpsertAzureAiLanguagePiiRequest.d.ts +42 -0
- package/dist/models/UpsertAzureAiLanguagePiiRequest.js +56 -0
- package/dist/models/UpsertAzureContentSafetyRequest.d.ts +42 -0
- package/dist/models/UpsertAzureContentSafetyRequest.js +56 -0
- package/dist/models/UpsertConnectionRequest.d.ts +28 -0
- package/dist/models/UpsertConnectionRequest.js +92 -0
- package/dist/models/UpsertConnectionRequestOneOf.d.ts +53 -0
- package/dist/models/UpsertConnectionRequestOneOf.js +69 -0
- package/dist/models/UpsertConnectionRequestOneOf1.d.ts +45 -0
- package/dist/models/UpsertConnectionRequestOneOf1.js +65 -0
- package/dist/models/UpsertConnectionRequestOneOf2.d.ts +53 -0
- package/dist/models/UpsertConnectionRequestOneOf2.js +69 -0
- package/dist/models/UpsertConnectionRequestOneOf3.d.ts +73 -0
- package/dist/models/UpsertConnectionRequestOneOf3.js +77 -0
- package/dist/models/UpsertConnectionRequestOneOf4.d.ts +77 -0
- package/dist/models/UpsertConnectionRequestOneOf4.js +81 -0
- package/dist/models/UpsertConnectionRequestOneOf5.d.ts +53 -0
- package/dist/models/UpsertConnectionRequestOneOf5.js +69 -0
- package/dist/models/UpsertConnectionRequestOneOf6.d.ts +53 -0
- package/dist/models/UpsertConnectionRequestOneOf6.js +69 -0
- package/dist/models/UpsertFieldControlPolicyRequest.d.ts +46 -0
- package/dist/models/UpsertFieldControlPolicyRequest.js +60 -0
- package/dist/models/UpsertGoogleDlpRequest.d.ts +42 -0
- package/dist/models/UpsertGoogleDlpRequest.js +56 -0
- package/dist/models/UpsertPresidioRequest.d.ts +42 -0
- package/dist/models/UpsertPresidioRequest.js +56 -0
- package/dist/models/UpsertTokenizationRequest.d.ts +34 -0
- package/dist/models/UpsertTokenizationRequest.js +52 -0
- package/dist/models/ValidateAwsRoleRequest.d.ts +38 -0
- package/dist/models/ValidateAwsRoleRequest.js +58 -0
- package/dist/models/ValidatePolicyRequest.d.ts +42 -0
- package/dist/models/ValidatePolicyRequest.js +56 -0
- package/dist/models/ValidatePolicyResponse.d.ts +38 -0
- package/dist/models/ValidatePolicyResponse.js +56 -0
- package/dist/models/ValidationError.d.ts +47 -0
- package/dist/models/ValidationError.js +63 -0
- package/dist/models/WebhookSecretResponse.d.ts +30 -0
- package/dist/models/WebhookSecretResponse.js +50 -0
- package/dist/models/WithAttributionModelAccessPolicy.d.ts +119 -0
- package/dist/models/WithAttributionModelAccessPolicy.js +100 -0
- package/dist/models/WithAttributionRateLimitPolicy.d.ts +188 -0
- package/dist/models/WithAttributionRateLimitPolicy.js +107 -0
- package/dist/models/WithAttributionTokenBudget.d.ts +200 -0
- package/dist/models/WithAttributionTokenBudget.js +127 -0
- package/dist/models/index.d.ts +272 -116
- package/dist/models/index.js +290 -0
- package/dist/runtime.d.ts +214 -0
- package/dist/runtime.js +437 -0
- package/package.json +28 -87
- package/dist/auth/clientCredentials.d.ts +0 -67
- package/dist/auth/clientCredentials.d.ts.map +0 -1
- package/dist/auth/index.d.ts +0 -14
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/pkce.d.ts +0 -98
- package/dist/auth/pkce.d.ts.map +0 -1
- package/dist/auth/store.d.ts +0 -168
- package/dist/auth/store.d.ts.map +0 -1
- package/dist/client.d.ts +0 -268
- package/dist/client.d.ts.map +0 -1
- package/dist/config.d.ts +0 -154
- package/dist/config.d.ts.map +0 -1
- package/dist/exceptions/index.d.ts +0 -119
- package/dist/exceptions/index.d.ts.map +0 -1
- package/dist/http/client.d.ts +0 -82
- package/dist/http/client.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.esm.js +0 -13
- package/dist/logging.d.ts +0 -48
- package/dist/logging.d.ts.map +0 -1
- package/dist/models/index.d.ts.map +0 -1
- package/dist/quickstart.d.ts +0 -106
- package/dist/quickstart.d.ts.map +0 -1
- package/dist/version.d.ts +0 -17
- package/dist/version.d.ts.map +0 -1
|
@@ -0,0 +1,1946 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Barndoor.ai Public API
|
|
5
|
+
* Unified public API specification for Barndoor.ai platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import * as runtime from '../runtime.js';
|
|
15
|
+
import { AllowListEntryResponseFromJSON, } from '../models/AllowListEntryResponse.js';
|
|
16
|
+
import { AwsRoleConfigResponseFromJSON, } from '../models/AwsRoleConfigResponse.js';
|
|
17
|
+
import { AwsRoleValidationResponseFromJSON, } from '../models/AwsRoleValidationResponse.js';
|
|
18
|
+
import { CreateAllowListEntryRequestToJSON, } from '../models/CreateAllowListEntryRequest.js';
|
|
19
|
+
import { CreateCustomDetectionTypeRequestToJSON, } from '../models/CreateCustomDetectionTypeRequest.js';
|
|
20
|
+
import { CreateDetectionEngineRequestToJSON, } from '../models/CreateDetectionEngineRequest.js';
|
|
21
|
+
import { CreateEnforcementPolicyRequestToJSON, } from '../models/CreateEnforcementPolicyRequest.js';
|
|
22
|
+
import { CustomDetectionTypeResponseFromJSON, } from '../models/CustomDetectionTypeResponse.js';
|
|
23
|
+
import { CustomDetectionTypesResponseFromJSON, } from '../models/CustomDetectionTypesResponse.js';
|
|
24
|
+
import { DetectionEngineResponseFromJSON, } from '../models/DetectionEngineResponse.js';
|
|
25
|
+
import { DetectionTypesResponseFromJSON, } from '../models/DetectionTypesResponse.js';
|
|
26
|
+
import { DlpAwsTrustInfoResponseFromJSON, } from '../models/DlpAwsTrustInfoResponse.js';
|
|
27
|
+
import { DlpErrorResponseFromJSON, } from '../models/DlpErrorResponse.js';
|
|
28
|
+
import { EnforcementPoliciesResponseFromJSON, } from '../models/EnforcementPoliciesResponse.js';
|
|
29
|
+
import { EnforcementPolicyResponseFromJSON, } from '../models/EnforcementPolicyResponse.js';
|
|
30
|
+
import { FieldControlPoliciesResponseFromJSON, } from '../models/FieldControlPoliciesResponse.js';
|
|
31
|
+
import { FieldControlPolicyResponseFromJSON, } from '../models/FieldControlPolicyResponse.js';
|
|
32
|
+
import { OrgConfigResponseFromJSON, } from '../models/OrgConfigResponse.js';
|
|
33
|
+
import { PaginatedResponseAllowListEntryResponseFromJSON, } from '../models/PaginatedResponseAllowListEntryResponse.js';
|
|
34
|
+
import { ProviderConnectionResponseFromJSON, } from '../models/ProviderConnectionResponse.js';
|
|
35
|
+
import { ResolvedProtectionResponseFromJSON, } from '../models/ResolvedProtectionResponse.js';
|
|
36
|
+
import { TestProcessTextRequestToJSON, } from '../models/TestProcessTextRequest.js';
|
|
37
|
+
import { TestProcessTextResponseFromJSON, } from '../models/TestProcessTextResponse.js';
|
|
38
|
+
import { UpdateCustomDetectionTypeRequestToJSON, } from '../models/UpdateCustomDetectionTypeRequest.js';
|
|
39
|
+
import { UpdateDetectionEngineRequestToJSON, } from '../models/UpdateDetectionEngineRequest.js';
|
|
40
|
+
import { UpdateEnforcementPolicyRequestToJSON, } from '../models/UpdateEnforcementPolicyRequest.js';
|
|
41
|
+
import { UpdateFieldControlPolicyRequestToJSON, } from '../models/UpdateFieldControlPolicyRequest.js';
|
|
42
|
+
import { UpdateOrgConfigRequestToJSON, } from '../models/UpdateOrgConfigRequest.js';
|
|
43
|
+
import { UpsertConnectionRequestToJSON, } from '../models/UpsertConnectionRequest.js';
|
|
44
|
+
import { UpsertFieldControlPolicyRequestToJSON, } from '../models/UpsertFieldControlPolicyRequest.js';
|
|
45
|
+
import { ValidateAwsRoleRequestToJSON, } from '../models/ValidateAwsRoleRequest.js';
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
export class DlpApi extends runtime.BaseAPI {
|
|
50
|
+
/**
|
|
51
|
+
* Creates request options for createAllowListEntry without sending the request
|
|
52
|
+
*/
|
|
53
|
+
async createAllowListEntryRequestOpts(requestParameters) {
|
|
54
|
+
if (requestParameters['createAllowListEntryRequest'] == null) {
|
|
55
|
+
throw new runtime.RequiredError('createAllowListEntryRequest', 'Required parameter "createAllowListEntryRequest" was null or undefined when calling createAllowListEntry().');
|
|
56
|
+
}
|
|
57
|
+
const queryParameters = {};
|
|
58
|
+
const headerParameters = {};
|
|
59
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
60
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
61
|
+
// oauth required
|
|
62
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
63
|
+
if (oauthToken) {
|
|
64
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
68
|
+
// oauth required
|
|
69
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
70
|
+
if (oauthToken) {
|
|
71
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
75
|
+
const token = this.configuration.accessToken;
|
|
76
|
+
const tokenString = await token("ApiKey", []);
|
|
77
|
+
if (tokenString) {
|
|
78
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
let urlPath = `/api/dlp/admin/v1/allow-list`;
|
|
82
|
+
return {
|
|
83
|
+
path: urlPath,
|
|
84
|
+
method: 'POST',
|
|
85
|
+
headers: headerParameters,
|
|
86
|
+
query: queryParameters,
|
|
87
|
+
body: CreateAllowListEntryRequestToJSON(requestParameters['createAllowListEntryRequest']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Create an allow-list entry
|
|
92
|
+
*/
|
|
93
|
+
async createAllowListEntryRaw(requestParameters, initOverrides) {
|
|
94
|
+
const requestOptions = await this.createAllowListEntryRequestOpts(requestParameters);
|
|
95
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
96
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AllowListEntryResponseFromJSON(jsonValue));
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Create an allow-list entry
|
|
100
|
+
*/
|
|
101
|
+
async createAllowListEntry(requestParameters, initOverrides) {
|
|
102
|
+
const response = await this.createAllowListEntryRaw(requestParameters, initOverrides);
|
|
103
|
+
return await response.value();
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Creates request options for createCustomDetectionType without sending the request
|
|
107
|
+
*/
|
|
108
|
+
async createCustomDetectionTypeRequestOpts(requestParameters) {
|
|
109
|
+
if (requestParameters['createCustomDetectionTypeRequest'] == null) {
|
|
110
|
+
throw new runtime.RequiredError('createCustomDetectionTypeRequest', 'Required parameter "createCustomDetectionTypeRequest" was null or undefined when calling createCustomDetectionType().');
|
|
111
|
+
}
|
|
112
|
+
const queryParameters = {};
|
|
113
|
+
const headerParameters = {};
|
|
114
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
115
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
116
|
+
// oauth required
|
|
117
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
118
|
+
if (oauthToken) {
|
|
119
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
123
|
+
// oauth required
|
|
124
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
125
|
+
if (oauthToken) {
|
|
126
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
130
|
+
const token = this.configuration.accessToken;
|
|
131
|
+
const tokenString = await token("ApiKey", []);
|
|
132
|
+
if (tokenString) {
|
|
133
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
let urlPath = `/api/dlp/admin/v1/custom-detection-types`;
|
|
137
|
+
return {
|
|
138
|
+
path: urlPath,
|
|
139
|
+
method: 'POST',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
body: CreateCustomDetectionTypeRequestToJSON(requestParameters['createCustomDetectionTypeRequest']),
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Create a custom detection type
|
|
147
|
+
*/
|
|
148
|
+
async createCustomDetectionTypeRaw(requestParameters, initOverrides) {
|
|
149
|
+
const requestOptions = await this.createCustomDetectionTypeRequestOpts(requestParameters);
|
|
150
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
151
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CustomDetectionTypeResponseFromJSON(jsonValue));
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Create a custom detection type
|
|
155
|
+
*/
|
|
156
|
+
async createCustomDetectionType(requestParameters, initOverrides) {
|
|
157
|
+
const response = await this.createCustomDetectionTypeRaw(requestParameters, initOverrides);
|
|
158
|
+
return await response.value();
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Creates request options for createDetectionEngine without sending the request
|
|
162
|
+
*/
|
|
163
|
+
async createDetectionEngineRequestOpts(requestParameters) {
|
|
164
|
+
if (requestParameters['createDetectionEngineRequest'] == null) {
|
|
165
|
+
throw new runtime.RequiredError('createDetectionEngineRequest', 'Required parameter "createDetectionEngineRequest" was null or undefined when calling createDetectionEngine().');
|
|
166
|
+
}
|
|
167
|
+
const queryParameters = {};
|
|
168
|
+
const headerParameters = {};
|
|
169
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
170
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
171
|
+
// oauth required
|
|
172
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
173
|
+
if (oauthToken) {
|
|
174
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
178
|
+
// oauth required
|
|
179
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
180
|
+
if (oauthToken) {
|
|
181
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
185
|
+
const token = this.configuration.accessToken;
|
|
186
|
+
const tokenString = await token("ApiKey", []);
|
|
187
|
+
if (tokenString) {
|
|
188
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
let urlPath = `/api/dlp/admin/v1/detection-engines`;
|
|
192
|
+
return {
|
|
193
|
+
path: urlPath,
|
|
194
|
+
method: 'POST',
|
|
195
|
+
headers: headerParameters,
|
|
196
|
+
query: queryParameters,
|
|
197
|
+
body: CreateDetectionEngineRequestToJSON(requestParameters['createDetectionEngineRequest']),
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Create a detection engine
|
|
202
|
+
*/
|
|
203
|
+
async createDetectionEngineRaw(requestParameters, initOverrides) {
|
|
204
|
+
const requestOptions = await this.createDetectionEngineRequestOpts(requestParameters);
|
|
205
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
206
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DetectionEngineResponseFromJSON(jsonValue));
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Create a detection engine
|
|
210
|
+
*/
|
|
211
|
+
async createDetectionEngine(requestParameters, initOverrides) {
|
|
212
|
+
const response = await this.createDetectionEngineRaw(requestParameters, initOverrides);
|
|
213
|
+
return await response.value();
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Creates request options for createEnforcementPolicy without sending the request
|
|
217
|
+
*/
|
|
218
|
+
async createEnforcementPolicyRequestOpts(requestParameters) {
|
|
219
|
+
if (requestParameters['createEnforcementPolicyRequest'] == null) {
|
|
220
|
+
throw new runtime.RequiredError('createEnforcementPolicyRequest', 'Required parameter "createEnforcementPolicyRequest" was null or undefined when calling createEnforcementPolicy().');
|
|
221
|
+
}
|
|
222
|
+
const queryParameters = {};
|
|
223
|
+
const headerParameters = {};
|
|
224
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
225
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
226
|
+
// oauth required
|
|
227
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
228
|
+
if (oauthToken) {
|
|
229
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
233
|
+
// oauth required
|
|
234
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
235
|
+
if (oauthToken) {
|
|
236
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
240
|
+
const token = this.configuration.accessToken;
|
|
241
|
+
const tokenString = await token("ApiKey", []);
|
|
242
|
+
if (tokenString) {
|
|
243
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
let urlPath = `/api/dlp/admin/v1/enforcement-policies`;
|
|
247
|
+
return {
|
|
248
|
+
path: urlPath,
|
|
249
|
+
method: 'POST',
|
|
250
|
+
headers: headerParameters,
|
|
251
|
+
query: queryParameters,
|
|
252
|
+
body: CreateEnforcementPolicyRequestToJSON(requestParameters['createEnforcementPolicyRequest']),
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Create an enforcement policy
|
|
257
|
+
*/
|
|
258
|
+
async createEnforcementPolicyRaw(requestParameters, initOverrides) {
|
|
259
|
+
const requestOptions = await this.createEnforcementPolicyRequestOpts(requestParameters);
|
|
260
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
261
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EnforcementPolicyResponseFromJSON(jsonValue));
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Create an enforcement policy
|
|
265
|
+
*/
|
|
266
|
+
async createEnforcementPolicy(requestParameters, initOverrides) {
|
|
267
|
+
const response = await this.createEnforcementPolicyRaw(requestParameters, initOverrides);
|
|
268
|
+
return await response.value();
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Creates request options for deleteAllowListEntry without sending the request
|
|
272
|
+
*/
|
|
273
|
+
async deleteAllowListEntryRequestOpts(requestParameters) {
|
|
274
|
+
if (requestParameters['id'] == null) {
|
|
275
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteAllowListEntry().');
|
|
276
|
+
}
|
|
277
|
+
const queryParameters = {};
|
|
278
|
+
const headerParameters = {};
|
|
279
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
280
|
+
// oauth required
|
|
281
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
282
|
+
if (oauthToken) {
|
|
283
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
287
|
+
// oauth required
|
|
288
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
289
|
+
if (oauthToken) {
|
|
290
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
294
|
+
const token = this.configuration.accessToken;
|
|
295
|
+
const tokenString = await token("ApiKey", []);
|
|
296
|
+
if (tokenString) {
|
|
297
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
let urlPath = `/api/dlp/admin/v1/allow-list/{id}`;
|
|
301
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
302
|
+
return {
|
|
303
|
+
path: urlPath,
|
|
304
|
+
method: 'DELETE',
|
|
305
|
+
headers: headerParameters,
|
|
306
|
+
query: queryParameters,
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Delete an allow-list entry
|
|
311
|
+
*/
|
|
312
|
+
async deleteAllowListEntryRaw(requestParameters, initOverrides) {
|
|
313
|
+
const requestOptions = await this.deleteAllowListEntryRequestOpts(requestParameters);
|
|
314
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
315
|
+
return new runtime.VoidApiResponse(response);
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Delete an allow-list entry
|
|
319
|
+
*/
|
|
320
|
+
async deleteAllowListEntry(requestParameters, initOverrides) {
|
|
321
|
+
await this.deleteAllowListEntryRaw(requestParameters, initOverrides);
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Creates request options for deleteCustomDetectionType without sending the request
|
|
325
|
+
*/
|
|
326
|
+
async deleteCustomDetectionTypeRequestOpts(requestParameters) {
|
|
327
|
+
if (requestParameters['id'] == null) {
|
|
328
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteCustomDetectionType().');
|
|
329
|
+
}
|
|
330
|
+
const queryParameters = {};
|
|
331
|
+
const headerParameters = {};
|
|
332
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
333
|
+
// oauth required
|
|
334
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
335
|
+
if (oauthToken) {
|
|
336
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
340
|
+
// oauth required
|
|
341
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
342
|
+
if (oauthToken) {
|
|
343
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
347
|
+
const token = this.configuration.accessToken;
|
|
348
|
+
const tokenString = await token("ApiKey", []);
|
|
349
|
+
if (tokenString) {
|
|
350
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
let urlPath = `/api/dlp/admin/v1/custom-detection-types/{id}`;
|
|
354
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
355
|
+
return {
|
|
356
|
+
path: urlPath,
|
|
357
|
+
method: 'DELETE',
|
|
358
|
+
headers: headerParameters,
|
|
359
|
+
query: queryParameters,
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Delete a custom detection type
|
|
364
|
+
*/
|
|
365
|
+
async deleteCustomDetectionTypeRaw(requestParameters, initOverrides) {
|
|
366
|
+
const requestOptions = await this.deleteCustomDetectionTypeRequestOpts(requestParameters);
|
|
367
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
368
|
+
return new runtime.VoidApiResponse(response);
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Delete a custom detection type
|
|
372
|
+
*/
|
|
373
|
+
async deleteCustomDetectionType(requestParameters, initOverrides) {
|
|
374
|
+
await this.deleteCustomDetectionTypeRaw(requestParameters, initOverrides);
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Creates request options for deleteDetectionEngine without sending the request
|
|
378
|
+
*/
|
|
379
|
+
async deleteDetectionEngineRequestOpts(requestParameters) {
|
|
380
|
+
if (requestParameters['id'] == null) {
|
|
381
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteDetectionEngine().');
|
|
382
|
+
}
|
|
383
|
+
const queryParameters = {};
|
|
384
|
+
const headerParameters = {};
|
|
385
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
386
|
+
// oauth required
|
|
387
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
388
|
+
if (oauthToken) {
|
|
389
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
393
|
+
// oauth required
|
|
394
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
395
|
+
if (oauthToken) {
|
|
396
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
400
|
+
const token = this.configuration.accessToken;
|
|
401
|
+
const tokenString = await token("ApiKey", []);
|
|
402
|
+
if (tokenString) {
|
|
403
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
let urlPath = `/api/dlp/admin/v1/detection-engines/{id}`;
|
|
407
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
408
|
+
return {
|
|
409
|
+
path: urlPath,
|
|
410
|
+
method: 'DELETE',
|
|
411
|
+
headers: headerParameters,
|
|
412
|
+
query: queryParameters,
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Delete a detection engine
|
|
417
|
+
*/
|
|
418
|
+
async deleteDetectionEngineRaw(requestParameters, initOverrides) {
|
|
419
|
+
const requestOptions = await this.deleteDetectionEngineRequestOpts(requestParameters);
|
|
420
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
421
|
+
return new runtime.VoidApiResponse(response);
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Delete a detection engine
|
|
425
|
+
*/
|
|
426
|
+
async deleteDetectionEngine(requestParameters, initOverrides) {
|
|
427
|
+
await this.deleteDetectionEngineRaw(requestParameters, initOverrides);
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Creates request options for deleteEnforcementPolicy without sending the request
|
|
431
|
+
*/
|
|
432
|
+
async deleteEnforcementPolicyRequestOpts(requestParameters) {
|
|
433
|
+
if (requestParameters['id'] == null) {
|
|
434
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteEnforcementPolicy().');
|
|
435
|
+
}
|
|
436
|
+
const queryParameters = {};
|
|
437
|
+
const headerParameters = {};
|
|
438
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
439
|
+
// oauth required
|
|
440
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
441
|
+
if (oauthToken) {
|
|
442
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
446
|
+
// oauth required
|
|
447
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
448
|
+
if (oauthToken) {
|
|
449
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
453
|
+
const token = this.configuration.accessToken;
|
|
454
|
+
const tokenString = await token("ApiKey", []);
|
|
455
|
+
if (tokenString) {
|
|
456
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
let urlPath = `/api/dlp/admin/v1/enforcement-policies/{id}`;
|
|
460
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
461
|
+
return {
|
|
462
|
+
path: urlPath,
|
|
463
|
+
method: 'DELETE',
|
|
464
|
+
headers: headerParameters,
|
|
465
|
+
query: queryParameters,
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Delete an enforcement policy
|
|
470
|
+
*/
|
|
471
|
+
async deleteEnforcementPolicyRaw(requestParameters, initOverrides) {
|
|
472
|
+
const requestOptions = await this.deleteEnforcementPolicyRequestOpts(requestParameters);
|
|
473
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
474
|
+
return new runtime.VoidApiResponse(response);
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* Delete an enforcement policy
|
|
478
|
+
*/
|
|
479
|
+
async deleteEnforcementPolicy(requestParameters, initOverrides) {
|
|
480
|
+
await this.deleteEnforcementPolicyRaw(requestParameters, initOverrides);
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Creates request options for deleteFieldControlPolicy without sending the request
|
|
484
|
+
*/
|
|
485
|
+
async deleteFieldControlPolicyRequestOpts(requestParameters) {
|
|
486
|
+
if (requestParameters['id'] == null) {
|
|
487
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteFieldControlPolicy().');
|
|
488
|
+
}
|
|
489
|
+
const queryParameters = {};
|
|
490
|
+
const headerParameters = {};
|
|
491
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
492
|
+
// oauth required
|
|
493
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
494
|
+
if (oauthToken) {
|
|
495
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
499
|
+
// oauth required
|
|
500
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
501
|
+
if (oauthToken) {
|
|
502
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
506
|
+
const token = this.configuration.accessToken;
|
|
507
|
+
const tokenString = await token("ApiKey", []);
|
|
508
|
+
if (tokenString) {
|
|
509
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
let urlPath = `/api/dlp/admin/v1/field-control-policies/{id}`;
|
|
513
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
514
|
+
return {
|
|
515
|
+
path: urlPath,
|
|
516
|
+
method: 'DELETE',
|
|
517
|
+
headers: headerParameters,
|
|
518
|
+
query: queryParameters,
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Delete a field-control policy
|
|
523
|
+
*/
|
|
524
|
+
async deleteFieldControlPolicyRaw(requestParameters, initOverrides) {
|
|
525
|
+
const requestOptions = await this.deleteFieldControlPolicyRequestOpts(requestParameters);
|
|
526
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
527
|
+
return new runtime.VoidApiResponse(response);
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Delete a field-control policy
|
|
531
|
+
*/
|
|
532
|
+
async deleteFieldControlPolicy(requestParameters, initOverrides) {
|
|
533
|
+
await this.deleteFieldControlPolicyRaw(requestParameters, initOverrides);
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Creates request options for deleteProviderConnection without sending the request
|
|
537
|
+
*/
|
|
538
|
+
async deleteProviderConnectionRequestOpts(requestParameters) {
|
|
539
|
+
if (requestParameters['name'] == null) {
|
|
540
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling deleteProviderConnection().');
|
|
541
|
+
}
|
|
542
|
+
const queryParameters = {};
|
|
543
|
+
const headerParameters = {};
|
|
544
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
545
|
+
// oauth required
|
|
546
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
547
|
+
if (oauthToken) {
|
|
548
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
552
|
+
// oauth required
|
|
553
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
554
|
+
if (oauthToken) {
|
|
555
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
559
|
+
const token = this.configuration.accessToken;
|
|
560
|
+
const tokenString = await token("ApiKey", []);
|
|
561
|
+
if (tokenString) {
|
|
562
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
let urlPath = `/api/dlp/admin/v1/provider-connections/{name}`;
|
|
566
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
567
|
+
return {
|
|
568
|
+
path: urlPath,
|
|
569
|
+
method: 'DELETE',
|
|
570
|
+
headers: headerParameters,
|
|
571
|
+
query: queryParameters,
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Delete a provider connection and its stored secrets
|
|
576
|
+
*/
|
|
577
|
+
async deleteProviderConnectionRaw(requestParameters, initOverrides) {
|
|
578
|
+
const requestOptions = await this.deleteProviderConnectionRequestOpts(requestParameters);
|
|
579
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
580
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DlpErrorResponseFromJSON(jsonValue));
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Delete a provider connection and its stored secrets
|
|
584
|
+
*/
|
|
585
|
+
async deleteProviderConnection(requestParameters, initOverrides) {
|
|
586
|
+
const response = await this.deleteProviderConnectionRaw(requestParameters, initOverrides);
|
|
587
|
+
return await response.value();
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* Creates request options for getConfig without sending the request
|
|
591
|
+
*/
|
|
592
|
+
async getConfigRequestOpts() {
|
|
593
|
+
const queryParameters = {};
|
|
594
|
+
const headerParameters = {};
|
|
595
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
596
|
+
// oauth required
|
|
597
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
598
|
+
if (oauthToken) {
|
|
599
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
603
|
+
// oauth required
|
|
604
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
605
|
+
if (oauthToken) {
|
|
606
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
610
|
+
const token = this.configuration.accessToken;
|
|
611
|
+
const tokenString = await token("ApiKey", []);
|
|
612
|
+
if (tokenString) {
|
|
613
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
let urlPath = `/api/dlp/admin/v1/config`;
|
|
617
|
+
return {
|
|
618
|
+
path: urlPath,
|
|
619
|
+
method: 'GET',
|
|
620
|
+
headers: headerParameters,
|
|
621
|
+
query: queryParameters,
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* Get the organization\'s DLP configuration
|
|
626
|
+
*/
|
|
627
|
+
async getConfigRaw(initOverrides) {
|
|
628
|
+
const requestOptions = await this.getConfigRequestOpts();
|
|
629
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
630
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrgConfigResponseFromJSON(jsonValue));
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* Get the organization\'s DLP configuration
|
|
634
|
+
*/
|
|
635
|
+
async getConfig(initOverrides) {
|
|
636
|
+
const response = await this.getConfigRaw(initOverrides);
|
|
637
|
+
return await response.value();
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Creates request options for getCustomDetectionType without sending the request
|
|
641
|
+
*/
|
|
642
|
+
async getCustomDetectionTypeRequestOpts(requestParameters) {
|
|
643
|
+
if (requestParameters['id'] == null) {
|
|
644
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCustomDetectionType().');
|
|
645
|
+
}
|
|
646
|
+
const queryParameters = {};
|
|
647
|
+
const headerParameters = {};
|
|
648
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
649
|
+
// oauth required
|
|
650
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
651
|
+
if (oauthToken) {
|
|
652
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
656
|
+
// oauth required
|
|
657
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
658
|
+
if (oauthToken) {
|
|
659
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
663
|
+
const token = this.configuration.accessToken;
|
|
664
|
+
const tokenString = await token("ApiKey", []);
|
|
665
|
+
if (tokenString) {
|
|
666
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
let urlPath = `/api/dlp/admin/v1/custom-detection-types/{id}`;
|
|
670
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
671
|
+
return {
|
|
672
|
+
path: urlPath,
|
|
673
|
+
method: 'GET',
|
|
674
|
+
headers: headerParameters,
|
|
675
|
+
query: queryParameters,
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Fetch one custom detection type
|
|
680
|
+
*/
|
|
681
|
+
async getCustomDetectionTypeRaw(requestParameters, initOverrides) {
|
|
682
|
+
const requestOptions = await this.getCustomDetectionTypeRequestOpts(requestParameters);
|
|
683
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
684
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CustomDetectionTypeResponseFromJSON(jsonValue));
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* Fetch one custom detection type
|
|
688
|
+
*/
|
|
689
|
+
async getCustomDetectionType(requestParameters, initOverrides) {
|
|
690
|
+
const response = await this.getCustomDetectionTypeRaw(requestParameters, initOverrides);
|
|
691
|
+
return await response.value();
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Creates request options for getDetectionEngine without sending the request
|
|
695
|
+
*/
|
|
696
|
+
async getDetectionEngineRequestOpts(requestParameters) {
|
|
697
|
+
if (requestParameters['id'] == null) {
|
|
698
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getDetectionEngine().');
|
|
699
|
+
}
|
|
700
|
+
const queryParameters = {};
|
|
701
|
+
const headerParameters = {};
|
|
702
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
703
|
+
// oauth required
|
|
704
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
705
|
+
if (oauthToken) {
|
|
706
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
710
|
+
// oauth required
|
|
711
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
712
|
+
if (oauthToken) {
|
|
713
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
717
|
+
const token = this.configuration.accessToken;
|
|
718
|
+
const tokenString = await token("ApiKey", []);
|
|
719
|
+
if (tokenString) {
|
|
720
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
let urlPath = `/api/dlp/admin/v1/detection-engines/{id}`;
|
|
724
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
725
|
+
return {
|
|
726
|
+
path: urlPath,
|
|
727
|
+
method: 'GET',
|
|
728
|
+
headers: headerParameters,
|
|
729
|
+
query: queryParameters,
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Fetch one detection engine
|
|
734
|
+
*/
|
|
735
|
+
async getDetectionEngineRaw(requestParameters, initOverrides) {
|
|
736
|
+
const requestOptions = await this.getDetectionEngineRequestOpts(requestParameters);
|
|
737
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
738
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DetectionEngineResponseFromJSON(jsonValue));
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* Fetch one detection engine
|
|
742
|
+
*/
|
|
743
|
+
async getDetectionEngine(requestParameters, initOverrides) {
|
|
744
|
+
const response = await this.getDetectionEngineRaw(requestParameters, initOverrides);
|
|
745
|
+
return await response.value();
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Creates request options for getEnforcementPolicy without sending the request
|
|
749
|
+
*/
|
|
750
|
+
async getEnforcementPolicyRequestOpts(requestParameters) {
|
|
751
|
+
if (requestParameters['id'] == null) {
|
|
752
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getEnforcementPolicy().');
|
|
753
|
+
}
|
|
754
|
+
const queryParameters = {};
|
|
755
|
+
const headerParameters = {};
|
|
756
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
757
|
+
// oauth required
|
|
758
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
759
|
+
if (oauthToken) {
|
|
760
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
764
|
+
// oauth required
|
|
765
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
766
|
+
if (oauthToken) {
|
|
767
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
771
|
+
const token = this.configuration.accessToken;
|
|
772
|
+
const tokenString = await token("ApiKey", []);
|
|
773
|
+
if (tokenString) {
|
|
774
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
let urlPath = `/api/dlp/admin/v1/enforcement-policies/{id}`;
|
|
778
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
779
|
+
return {
|
|
780
|
+
path: urlPath,
|
|
781
|
+
method: 'GET',
|
|
782
|
+
headers: headerParameters,
|
|
783
|
+
query: queryParameters,
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Fetch one enforcement policy
|
|
788
|
+
*/
|
|
789
|
+
async getEnforcementPolicyRaw(requestParameters, initOverrides) {
|
|
790
|
+
const requestOptions = await this.getEnforcementPolicyRequestOpts(requestParameters);
|
|
791
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
792
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EnforcementPolicyResponseFromJSON(jsonValue));
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Fetch one enforcement policy
|
|
796
|
+
*/
|
|
797
|
+
async getEnforcementPolicy(requestParameters, initOverrides) {
|
|
798
|
+
const response = await this.getEnforcementPolicyRaw(requestParameters, initOverrides);
|
|
799
|
+
return await response.value();
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* Creates request options for getFieldControlPolicy without sending the request
|
|
803
|
+
*/
|
|
804
|
+
async getFieldControlPolicyRequestOpts(requestParameters) {
|
|
805
|
+
if (requestParameters['id'] == null) {
|
|
806
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getFieldControlPolicy().');
|
|
807
|
+
}
|
|
808
|
+
const queryParameters = {};
|
|
809
|
+
const headerParameters = {};
|
|
810
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
811
|
+
// oauth required
|
|
812
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
813
|
+
if (oauthToken) {
|
|
814
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
818
|
+
// oauth required
|
|
819
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
820
|
+
if (oauthToken) {
|
|
821
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
825
|
+
const token = this.configuration.accessToken;
|
|
826
|
+
const tokenString = await token("ApiKey", []);
|
|
827
|
+
if (tokenString) {
|
|
828
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
let urlPath = `/api/dlp/admin/v1/field-control-policies/{id}`;
|
|
832
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
833
|
+
return {
|
|
834
|
+
path: urlPath,
|
|
835
|
+
method: 'GET',
|
|
836
|
+
headers: headerParameters,
|
|
837
|
+
query: queryParameters,
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
/**
|
|
841
|
+
* Fetch one field-control policy
|
|
842
|
+
*/
|
|
843
|
+
async getFieldControlPolicyRaw(requestParameters, initOverrides) {
|
|
844
|
+
const requestOptions = await this.getFieldControlPolicyRequestOpts(requestParameters);
|
|
845
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
846
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FieldControlPolicyResponseFromJSON(jsonValue));
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Fetch one field-control policy
|
|
850
|
+
*/
|
|
851
|
+
async getFieldControlPolicy(requestParameters, initOverrides) {
|
|
852
|
+
const response = await this.getFieldControlPolicyRaw(requestParameters, initOverrides);
|
|
853
|
+
return await response.value();
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Creates request options for getProviderConnection without sending the request
|
|
857
|
+
*/
|
|
858
|
+
async getProviderConnectionRequestOpts(requestParameters) {
|
|
859
|
+
if (requestParameters['name'] == null) {
|
|
860
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getProviderConnection().');
|
|
861
|
+
}
|
|
862
|
+
const queryParameters = {};
|
|
863
|
+
const headerParameters = {};
|
|
864
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
865
|
+
// oauth required
|
|
866
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
867
|
+
if (oauthToken) {
|
|
868
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
872
|
+
// oauth required
|
|
873
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
874
|
+
if (oauthToken) {
|
|
875
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
879
|
+
const token = this.configuration.accessToken;
|
|
880
|
+
const tokenString = await token("ApiKey", []);
|
|
881
|
+
if (tokenString) {
|
|
882
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
let urlPath = `/api/dlp/admin/v1/provider-connections/{name}`;
|
|
886
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
887
|
+
return {
|
|
888
|
+
path: urlPath,
|
|
889
|
+
method: 'GET',
|
|
890
|
+
headers: headerParameters,
|
|
891
|
+
query: queryParameters,
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* Fetch one provider connection
|
|
896
|
+
*/
|
|
897
|
+
async getProviderConnectionRaw(requestParameters, initOverrides) {
|
|
898
|
+
const requestOptions = await this.getProviderConnectionRequestOpts(requestParameters);
|
|
899
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
900
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProviderConnectionResponseFromJSON(jsonValue));
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* Fetch one provider connection
|
|
904
|
+
*/
|
|
905
|
+
async getProviderConnection(requestParameters, initOverrides) {
|
|
906
|
+
const response = await this.getProviderConnectionRaw(requestParameters, initOverrides);
|
|
907
|
+
return await response.value();
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
* Creates request options for getResolvedProtection without sending the request
|
|
911
|
+
*/
|
|
912
|
+
async getResolvedProtectionRequestOpts(requestParameters) {
|
|
913
|
+
const queryParameters = {};
|
|
914
|
+
if (requestParameters['providerId'] != null) {
|
|
915
|
+
queryParameters['provider_id'] = requestParameters['providerId'];
|
|
916
|
+
}
|
|
917
|
+
if (requestParameters['modelAlias'] != null) {
|
|
918
|
+
queryParameters['model_alias'] = requestParameters['modelAlias'];
|
|
919
|
+
}
|
|
920
|
+
if (requestParameters['runtimeStage'] != null) {
|
|
921
|
+
queryParameters['runtime_stage'] = requestParameters['runtimeStage'];
|
|
922
|
+
}
|
|
923
|
+
if (requestParameters['mcpServerId'] != null) {
|
|
924
|
+
queryParameters['mcp_server_id'] = requestParameters['mcpServerId'];
|
|
925
|
+
}
|
|
926
|
+
const headerParameters = {};
|
|
927
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
928
|
+
// oauth required
|
|
929
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
930
|
+
if (oauthToken) {
|
|
931
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
935
|
+
// oauth required
|
|
936
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
937
|
+
if (oauthToken) {
|
|
938
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
942
|
+
const token = this.configuration.accessToken;
|
|
943
|
+
const tokenString = await token("ApiKey", []);
|
|
944
|
+
if (tokenString) {
|
|
945
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
let urlPath = `/api/dlp/admin/v1/policies/resolved`;
|
|
949
|
+
return {
|
|
950
|
+
path: urlPath,
|
|
951
|
+
method: 'GET',
|
|
952
|
+
headers: headerParameters,
|
|
953
|
+
query: queryParameters,
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
/**
|
|
957
|
+
* Resolve the effective protection rules for a scope
|
|
958
|
+
*/
|
|
959
|
+
async getResolvedProtectionRaw(requestParameters, initOverrides) {
|
|
960
|
+
const requestOptions = await this.getResolvedProtectionRequestOpts(requestParameters);
|
|
961
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
962
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ResolvedProtectionResponseFromJSON(jsonValue));
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* Resolve the effective protection rules for a scope
|
|
966
|
+
*/
|
|
967
|
+
async getResolvedProtection(requestParameters = {}, initOverrides) {
|
|
968
|
+
const response = await this.getResolvedProtectionRaw(requestParameters, initOverrides);
|
|
969
|
+
return await response.value();
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* Creates request options for listAllowList without sending the request
|
|
973
|
+
*/
|
|
974
|
+
async listAllowListRequestOpts(requestParameters) {
|
|
975
|
+
const queryParameters = {};
|
|
976
|
+
if (requestParameters['pageToken'] != null) {
|
|
977
|
+
queryParameters['page_token'] = requestParameters['pageToken'];
|
|
978
|
+
}
|
|
979
|
+
if (requestParameters['pageSize'] != null) {
|
|
980
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
981
|
+
}
|
|
982
|
+
const headerParameters = {};
|
|
983
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
984
|
+
// oauth required
|
|
985
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
986
|
+
if (oauthToken) {
|
|
987
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
991
|
+
// oauth required
|
|
992
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
993
|
+
if (oauthToken) {
|
|
994
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
998
|
+
const token = this.configuration.accessToken;
|
|
999
|
+
const tokenString = await token("ApiKey", []);
|
|
1000
|
+
if (tokenString) {
|
|
1001
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
let urlPath = `/api/dlp/admin/v1/allow-list`;
|
|
1005
|
+
return {
|
|
1006
|
+
path: urlPath,
|
|
1007
|
+
method: 'GET',
|
|
1008
|
+
headers: headerParameters,
|
|
1009
|
+
query: queryParameters,
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* List the organization\'s allow-list entries
|
|
1014
|
+
*/
|
|
1015
|
+
async listAllowListRaw(requestParameters, initOverrides) {
|
|
1016
|
+
const requestOptions = await this.listAllowListRequestOpts(requestParameters);
|
|
1017
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1018
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseAllowListEntryResponseFromJSON(jsonValue));
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* List the organization\'s allow-list entries
|
|
1022
|
+
*/
|
|
1023
|
+
async listAllowList(requestParameters = {}, initOverrides) {
|
|
1024
|
+
const response = await this.listAllowListRaw(requestParameters, initOverrides);
|
|
1025
|
+
return await response.value();
|
|
1026
|
+
}
|
|
1027
|
+
/**
|
|
1028
|
+
* Creates request options for listCustomDetectionTypes without sending the request
|
|
1029
|
+
*/
|
|
1030
|
+
async listCustomDetectionTypesRequestOpts() {
|
|
1031
|
+
const queryParameters = {};
|
|
1032
|
+
const headerParameters = {};
|
|
1033
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1034
|
+
// oauth required
|
|
1035
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1036
|
+
if (oauthToken) {
|
|
1037
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1041
|
+
// oauth required
|
|
1042
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1043
|
+
if (oauthToken) {
|
|
1044
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1048
|
+
const token = this.configuration.accessToken;
|
|
1049
|
+
const tokenString = await token("ApiKey", []);
|
|
1050
|
+
if (tokenString) {
|
|
1051
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
let urlPath = `/api/dlp/admin/v1/custom-detection-types`;
|
|
1055
|
+
return {
|
|
1056
|
+
path: urlPath,
|
|
1057
|
+
method: 'GET',
|
|
1058
|
+
headers: headerParameters,
|
|
1059
|
+
query: queryParameters,
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
* List the organization\'s custom detection types
|
|
1064
|
+
*/
|
|
1065
|
+
async listCustomDetectionTypesRaw(initOverrides) {
|
|
1066
|
+
const requestOptions = await this.listCustomDetectionTypesRequestOpts();
|
|
1067
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1068
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CustomDetectionTypesResponseFromJSON(jsonValue));
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* List the organization\'s custom detection types
|
|
1072
|
+
*/
|
|
1073
|
+
async listCustomDetectionTypes(initOverrides) {
|
|
1074
|
+
const response = await this.listCustomDetectionTypesRaw(initOverrides);
|
|
1075
|
+
return await response.value();
|
|
1076
|
+
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Creates request options for listDetectionEngines without sending the request
|
|
1079
|
+
*/
|
|
1080
|
+
async listDetectionEnginesRequestOpts() {
|
|
1081
|
+
const queryParameters = {};
|
|
1082
|
+
const headerParameters = {};
|
|
1083
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1084
|
+
// oauth required
|
|
1085
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1086
|
+
if (oauthToken) {
|
|
1087
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1091
|
+
// oauth required
|
|
1092
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1093
|
+
if (oauthToken) {
|
|
1094
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1098
|
+
const token = this.configuration.accessToken;
|
|
1099
|
+
const tokenString = await token("ApiKey", []);
|
|
1100
|
+
if (tokenString) {
|
|
1101
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
let urlPath = `/api/dlp/admin/v1/detection-engines`;
|
|
1105
|
+
return {
|
|
1106
|
+
path: urlPath,
|
|
1107
|
+
method: 'GET',
|
|
1108
|
+
headers: headerParameters,
|
|
1109
|
+
query: queryParameters,
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
/**
|
|
1113
|
+
* List the organization\'s detection engines
|
|
1114
|
+
*/
|
|
1115
|
+
async listDetectionEnginesRaw(initOverrides) {
|
|
1116
|
+
const requestOptions = await this.listDetectionEnginesRequestOpts();
|
|
1117
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1118
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DetectionEngineResponseFromJSON));
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* List the organization\'s detection engines
|
|
1122
|
+
*/
|
|
1123
|
+
async listDetectionEngines(initOverrides) {
|
|
1124
|
+
const response = await this.listDetectionEnginesRaw(initOverrides);
|
|
1125
|
+
return await response.value();
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Creates request options for listDetectionTypes without sending the request
|
|
1129
|
+
*/
|
|
1130
|
+
async listDetectionTypesRequestOpts() {
|
|
1131
|
+
const queryParameters = {};
|
|
1132
|
+
const headerParameters = {};
|
|
1133
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1134
|
+
// oauth required
|
|
1135
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1136
|
+
if (oauthToken) {
|
|
1137
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1141
|
+
// oauth required
|
|
1142
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1143
|
+
if (oauthToken) {
|
|
1144
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1148
|
+
const token = this.configuration.accessToken;
|
|
1149
|
+
const tokenString = await token("ApiKey", []);
|
|
1150
|
+
if (tokenString) {
|
|
1151
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
let urlPath = `/api/dlp/admin/v1/detection-types`;
|
|
1155
|
+
return {
|
|
1156
|
+
path: urlPath,
|
|
1157
|
+
method: 'GET',
|
|
1158
|
+
headers: headerParameters,
|
|
1159
|
+
query: queryParameters,
|
|
1160
|
+
};
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* List every detection type available to the organization
|
|
1164
|
+
*/
|
|
1165
|
+
async listDetectionTypesRaw(initOverrides) {
|
|
1166
|
+
const requestOptions = await this.listDetectionTypesRequestOpts();
|
|
1167
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1168
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DetectionTypesResponseFromJSON(jsonValue));
|
|
1169
|
+
}
|
|
1170
|
+
/**
|
|
1171
|
+
* List every detection type available to the organization
|
|
1172
|
+
*/
|
|
1173
|
+
async listDetectionTypes(initOverrides) {
|
|
1174
|
+
const response = await this.listDetectionTypesRaw(initOverrides);
|
|
1175
|
+
return await response.value();
|
|
1176
|
+
}
|
|
1177
|
+
/**
|
|
1178
|
+
* Creates request options for listEnforcementPolicies without sending the request
|
|
1179
|
+
*/
|
|
1180
|
+
async listEnforcementPoliciesRequestOpts() {
|
|
1181
|
+
const queryParameters = {};
|
|
1182
|
+
const headerParameters = {};
|
|
1183
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1184
|
+
// oauth required
|
|
1185
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1186
|
+
if (oauthToken) {
|
|
1187
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1191
|
+
// oauth required
|
|
1192
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1193
|
+
if (oauthToken) {
|
|
1194
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1198
|
+
const token = this.configuration.accessToken;
|
|
1199
|
+
const tokenString = await token("ApiKey", []);
|
|
1200
|
+
if (tokenString) {
|
|
1201
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
let urlPath = `/api/dlp/admin/v1/enforcement-policies`;
|
|
1205
|
+
return {
|
|
1206
|
+
path: urlPath,
|
|
1207
|
+
method: 'GET',
|
|
1208
|
+
headers: headerParameters,
|
|
1209
|
+
query: queryParameters,
|
|
1210
|
+
};
|
|
1211
|
+
}
|
|
1212
|
+
/**
|
|
1213
|
+
* List the organization\'s enforcement policies
|
|
1214
|
+
*/
|
|
1215
|
+
async listEnforcementPoliciesRaw(initOverrides) {
|
|
1216
|
+
const requestOptions = await this.listEnforcementPoliciesRequestOpts();
|
|
1217
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1218
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EnforcementPoliciesResponseFromJSON(jsonValue));
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* List the organization\'s enforcement policies
|
|
1222
|
+
*/
|
|
1223
|
+
async listEnforcementPolicies(initOverrides) {
|
|
1224
|
+
const response = await this.listEnforcementPoliciesRaw(initOverrides);
|
|
1225
|
+
return await response.value();
|
|
1226
|
+
}
|
|
1227
|
+
/**
|
|
1228
|
+
* Creates request options for listFieldControlPolicies without sending the request
|
|
1229
|
+
*/
|
|
1230
|
+
async listFieldControlPoliciesRequestOpts() {
|
|
1231
|
+
const queryParameters = {};
|
|
1232
|
+
const headerParameters = {};
|
|
1233
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1234
|
+
// oauth required
|
|
1235
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1236
|
+
if (oauthToken) {
|
|
1237
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1241
|
+
// oauth required
|
|
1242
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1243
|
+
if (oauthToken) {
|
|
1244
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1248
|
+
const token = this.configuration.accessToken;
|
|
1249
|
+
const tokenString = await token("ApiKey", []);
|
|
1250
|
+
if (tokenString) {
|
|
1251
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
let urlPath = `/api/dlp/admin/v1/field-control-policies`;
|
|
1255
|
+
return {
|
|
1256
|
+
path: urlPath,
|
|
1257
|
+
method: 'GET',
|
|
1258
|
+
headers: headerParameters,
|
|
1259
|
+
query: queryParameters,
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* List the organization\'s field-control policies
|
|
1264
|
+
*/
|
|
1265
|
+
async listFieldControlPoliciesRaw(initOverrides) {
|
|
1266
|
+
const requestOptions = await this.listFieldControlPoliciesRequestOpts();
|
|
1267
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1268
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FieldControlPoliciesResponseFromJSON(jsonValue));
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* List the organization\'s field-control policies
|
|
1272
|
+
*/
|
|
1273
|
+
async listFieldControlPolicies(initOverrides) {
|
|
1274
|
+
const response = await this.listFieldControlPoliciesRaw(initOverrides);
|
|
1275
|
+
return await response.value();
|
|
1276
|
+
}
|
|
1277
|
+
/**
|
|
1278
|
+
* Creates request options for listProviderConnections without sending the request
|
|
1279
|
+
*/
|
|
1280
|
+
async listProviderConnectionsRequestOpts() {
|
|
1281
|
+
const queryParameters = {};
|
|
1282
|
+
const headerParameters = {};
|
|
1283
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1284
|
+
// oauth required
|
|
1285
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1286
|
+
if (oauthToken) {
|
|
1287
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1291
|
+
// oauth required
|
|
1292
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1293
|
+
if (oauthToken) {
|
|
1294
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1298
|
+
const token = this.configuration.accessToken;
|
|
1299
|
+
const tokenString = await token("ApiKey", []);
|
|
1300
|
+
if (tokenString) {
|
|
1301
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
let urlPath = `/api/dlp/admin/v1/provider-connections`;
|
|
1305
|
+
return {
|
|
1306
|
+
path: urlPath,
|
|
1307
|
+
method: 'GET',
|
|
1308
|
+
headers: headerParameters,
|
|
1309
|
+
query: queryParameters,
|
|
1310
|
+
};
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* List the organization\'s provider connections
|
|
1314
|
+
*/
|
|
1315
|
+
async listProviderConnectionsRaw(initOverrides) {
|
|
1316
|
+
const requestOptions = await this.listProviderConnectionsRequestOpts();
|
|
1317
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1318
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProviderConnectionResponseFromJSON));
|
|
1319
|
+
}
|
|
1320
|
+
/**
|
|
1321
|
+
* List the organization\'s provider connections
|
|
1322
|
+
*/
|
|
1323
|
+
async listProviderConnections(initOverrides) {
|
|
1324
|
+
const response = await this.listProviderConnectionsRaw(initOverrides);
|
|
1325
|
+
return await response.value();
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Creates request options for providerConnectionAwsRoleConfig without sending the request
|
|
1329
|
+
*/
|
|
1330
|
+
async providerConnectionAwsRoleConfigRequestOpts() {
|
|
1331
|
+
const queryParameters = {};
|
|
1332
|
+
const headerParameters = {};
|
|
1333
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1334
|
+
// oauth required
|
|
1335
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1336
|
+
if (oauthToken) {
|
|
1337
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1341
|
+
// oauth required
|
|
1342
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1343
|
+
if (oauthToken) {
|
|
1344
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1348
|
+
const token = this.configuration.accessToken;
|
|
1349
|
+
const tokenString = await token("ApiKey", []);
|
|
1350
|
+
if (tokenString) {
|
|
1351
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
let urlPath = `/api/dlp/admin/v1/provider-connections/aws-role-config`;
|
|
1355
|
+
return {
|
|
1356
|
+
path: urlPath,
|
|
1357
|
+
method: 'GET',
|
|
1358
|
+
headers: headerParameters,
|
|
1359
|
+
query: queryParameters,
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Get Barndoor\'s AWS principal for role-assumption trust policies
|
|
1364
|
+
*/
|
|
1365
|
+
async providerConnectionAwsRoleConfigRaw(initOverrides) {
|
|
1366
|
+
const requestOptions = await this.providerConnectionAwsRoleConfigRequestOpts();
|
|
1367
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1368
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AwsRoleConfigResponseFromJSON(jsonValue));
|
|
1369
|
+
}
|
|
1370
|
+
/**
|
|
1371
|
+
* Get Barndoor\'s AWS principal for role-assumption trust policies
|
|
1372
|
+
*/
|
|
1373
|
+
async providerConnectionAwsRoleConfig(initOverrides) {
|
|
1374
|
+
const response = await this.providerConnectionAwsRoleConfigRaw(initOverrides);
|
|
1375
|
+
return await response.value();
|
|
1376
|
+
}
|
|
1377
|
+
/**
|
|
1378
|
+
* Creates request options for providerConnectionAwsTrustInfo without sending the request
|
|
1379
|
+
*/
|
|
1380
|
+
async providerConnectionAwsTrustInfoRequestOpts(requestParameters) {
|
|
1381
|
+
if (requestParameters['name'] == null) {
|
|
1382
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling providerConnectionAwsTrustInfo().');
|
|
1383
|
+
}
|
|
1384
|
+
const queryParameters = {};
|
|
1385
|
+
const headerParameters = {};
|
|
1386
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1387
|
+
// oauth required
|
|
1388
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1389
|
+
if (oauthToken) {
|
|
1390
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1394
|
+
// oauth required
|
|
1395
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1396
|
+
if (oauthToken) {
|
|
1397
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1401
|
+
const token = this.configuration.accessToken;
|
|
1402
|
+
const tokenString = await token("ApiKey", []);
|
|
1403
|
+
if (tokenString) {
|
|
1404
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
let urlPath = `/api/dlp/admin/v1/provider-connections/{name}/aws-trust-info`;
|
|
1408
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
1409
|
+
return {
|
|
1410
|
+
path: urlPath,
|
|
1411
|
+
method: 'GET',
|
|
1412
|
+
headers: headerParameters,
|
|
1413
|
+
query: queryParameters,
|
|
1414
|
+
};
|
|
1415
|
+
}
|
|
1416
|
+
/**
|
|
1417
|
+
* Get the principal and external id for a connection\'s trust policy
|
|
1418
|
+
*/
|
|
1419
|
+
async providerConnectionAwsTrustInfoRaw(requestParameters, initOverrides) {
|
|
1420
|
+
const requestOptions = await this.providerConnectionAwsTrustInfoRequestOpts(requestParameters);
|
|
1421
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1422
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DlpAwsTrustInfoResponseFromJSON(jsonValue));
|
|
1423
|
+
}
|
|
1424
|
+
/**
|
|
1425
|
+
* Get the principal and external id for a connection\'s trust policy
|
|
1426
|
+
*/
|
|
1427
|
+
async providerConnectionAwsTrustInfo(requestParameters, initOverrides) {
|
|
1428
|
+
const response = await this.providerConnectionAwsTrustInfoRaw(requestParameters, initOverrides);
|
|
1429
|
+
return await response.value();
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1432
|
+
* Creates request options for testProcessText without sending the request
|
|
1433
|
+
*/
|
|
1434
|
+
async testProcessTextRequestOpts(requestParameters) {
|
|
1435
|
+
if (requestParameters['testProcessTextRequest'] == null) {
|
|
1436
|
+
throw new runtime.RequiredError('testProcessTextRequest', 'Required parameter "testProcessTextRequest" was null or undefined when calling testProcessText().');
|
|
1437
|
+
}
|
|
1438
|
+
const queryParameters = {};
|
|
1439
|
+
const headerParameters = {};
|
|
1440
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1441
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1442
|
+
// oauth required
|
|
1443
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1444
|
+
if (oauthToken) {
|
|
1445
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1449
|
+
// oauth required
|
|
1450
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1451
|
+
if (oauthToken) {
|
|
1452
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1456
|
+
const token = this.configuration.accessToken;
|
|
1457
|
+
const tokenString = await token("ApiKey", []);
|
|
1458
|
+
if (tokenString) {
|
|
1459
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
let urlPath = `/api/dlp/admin/v1/test/process-text`;
|
|
1463
|
+
return {
|
|
1464
|
+
path: urlPath,
|
|
1465
|
+
method: 'POST',
|
|
1466
|
+
headers: headerParameters,
|
|
1467
|
+
query: queryParameters,
|
|
1468
|
+
body: TestProcessTextRequestToJSON(requestParameters['testProcessTextRequest']),
|
|
1469
|
+
};
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
* Run a sample through the organization\'s live DLP pipeline
|
|
1473
|
+
*/
|
|
1474
|
+
async testProcessTextRaw(requestParameters, initOverrides) {
|
|
1475
|
+
const requestOptions = await this.testProcessTextRequestOpts(requestParameters);
|
|
1476
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1477
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TestProcessTextResponseFromJSON(jsonValue));
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* Run a sample through the organization\'s live DLP pipeline
|
|
1481
|
+
*/
|
|
1482
|
+
async testProcessText(requestParameters, initOverrides) {
|
|
1483
|
+
const response = await this.testProcessTextRaw(requestParameters, initOverrides);
|
|
1484
|
+
return await response.value();
|
|
1485
|
+
}
|
|
1486
|
+
/**
|
|
1487
|
+
* Creates request options for updateConfig without sending the request
|
|
1488
|
+
*/
|
|
1489
|
+
async updateConfigRequestOpts(requestParameters) {
|
|
1490
|
+
if (requestParameters['updateOrgConfigRequest'] == null) {
|
|
1491
|
+
throw new runtime.RequiredError('updateOrgConfigRequest', 'Required parameter "updateOrgConfigRequest" was null or undefined when calling updateConfig().');
|
|
1492
|
+
}
|
|
1493
|
+
const queryParameters = {};
|
|
1494
|
+
const headerParameters = {};
|
|
1495
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1496
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1497
|
+
// oauth required
|
|
1498
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1499
|
+
if (oauthToken) {
|
|
1500
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1504
|
+
// oauth required
|
|
1505
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1506
|
+
if (oauthToken) {
|
|
1507
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1511
|
+
const token = this.configuration.accessToken;
|
|
1512
|
+
const tokenString = await token("ApiKey", []);
|
|
1513
|
+
if (tokenString) {
|
|
1514
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
let urlPath = `/api/dlp/admin/v1/config`;
|
|
1518
|
+
return {
|
|
1519
|
+
path: urlPath,
|
|
1520
|
+
method: 'PUT',
|
|
1521
|
+
headers: headerParameters,
|
|
1522
|
+
query: queryParameters,
|
|
1523
|
+
body: UpdateOrgConfigRequestToJSON(requestParameters['updateOrgConfigRequest']),
|
|
1524
|
+
};
|
|
1525
|
+
}
|
|
1526
|
+
/**
|
|
1527
|
+
* Update the organization\'s DLP configuration
|
|
1528
|
+
*/
|
|
1529
|
+
async updateConfigRaw(requestParameters, initOverrides) {
|
|
1530
|
+
const requestOptions = await this.updateConfigRequestOpts(requestParameters);
|
|
1531
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1532
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrgConfigResponseFromJSON(jsonValue));
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* Update the organization\'s DLP configuration
|
|
1536
|
+
*/
|
|
1537
|
+
async updateConfig(requestParameters, initOverrides) {
|
|
1538
|
+
const response = await this.updateConfigRaw(requestParameters, initOverrides);
|
|
1539
|
+
return await response.value();
|
|
1540
|
+
}
|
|
1541
|
+
/**
|
|
1542
|
+
* Creates request options for updateCustomDetectionType without sending the request
|
|
1543
|
+
*/
|
|
1544
|
+
async updateCustomDetectionTypeRequestOpts(requestParameters) {
|
|
1545
|
+
if (requestParameters['id'] == null) {
|
|
1546
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateCustomDetectionType().');
|
|
1547
|
+
}
|
|
1548
|
+
if (requestParameters['updateCustomDetectionTypeRequest'] == null) {
|
|
1549
|
+
throw new runtime.RequiredError('updateCustomDetectionTypeRequest', 'Required parameter "updateCustomDetectionTypeRequest" was null or undefined when calling updateCustomDetectionType().');
|
|
1550
|
+
}
|
|
1551
|
+
const queryParameters = {};
|
|
1552
|
+
const headerParameters = {};
|
|
1553
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1554
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1555
|
+
// oauth required
|
|
1556
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1557
|
+
if (oauthToken) {
|
|
1558
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1562
|
+
// oauth required
|
|
1563
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1564
|
+
if (oauthToken) {
|
|
1565
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1569
|
+
const token = this.configuration.accessToken;
|
|
1570
|
+
const tokenString = await token("ApiKey", []);
|
|
1571
|
+
if (tokenString) {
|
|
1572
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
let urlPath = `/api/dlp/admin/v1/custom-detection-types/{id}`;
|
|
1576
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1577
|
+
return {
|
|
1578
|
+
path: urlPath,
|
|
1579
|
+
method: 'PUT',
|
|
1580
|
+
headers: headerParameters,
|
|
1581
|
+
query: queryParameters,
|
|
1582
|
+
body: UpdateCustomDetectionTypeRequestToJSON(requestParameters['updateCustomDetectionTypeRequest']),
|
|
1583
|
+
};
|
|
1584
|
+
}
|
|
1585
|
+
/**
|
|
1586
|
+
* Update a custom detection type
|
|
1587
|
+
*/
|
|
1588
|
+
async updateCustomDetectionTypeRaw(requestParameters, initOverrides) {
|
|
1589
|
+
const requestOptions = await this.updateCustomDetectionTypeRequestOpts(requestParameters);
|
|
1590
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1591
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CustomDetectionTypeResponseFromJSON(jsonValue));
|
|
1592
|
+
}
|
|
1593
|
+
/**
|
|
1594
|
+
* Update a custom detection type
|
|
1595
|
+
*/
|
|
1596
|
+
async updateCustomDetectionType(requestParameters, initOverrides) {
|
|
1597
|
+
const response = await this.updateCustomDetectionTypeRaw(requestParameters, initOverrides);
|
|
1598
|
+
return await response.value();
|
|
1599
|
+
}
|
|
1600
|
+
/**
|
|
1601
|
+
* Creates request options for updateDetectionEngine without sending the request
|
|
1602
|
+
*/
|
|
1603
|
+
async updateDetectionEngineRequestOpts(requestParameters) {
|
|
1604
|
+
if (requestParameters['id'] == null) {
|
|
1605
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateDetectionEngine().');
|
|
1606
|
+
}
|
|
1607
|
+
if (requestParameters['updateDetectionEngineRequest'] == null) {
|
|
1608
|
+
throw new runtime.RequiredError('updateDetectionEngineRequest', 'Required parameter "updateDetectionEngineRequest" was null or undefined when calling updateDetectionEngine().');
|
|
1609
|
+
}
|
|
1610
|
+
const queryParameters = {};
|
|
1611
|
+
const headerParameters = {};
|
|
1612
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1613
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1614
|
+
// oauth required
|
|
1615
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1616
|
+
if (oauthToken) {
|
|
1617
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1621
|
+
// oauth required
|
|
1622
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1623
|
+
if (oauthToken) {
|
|
1624
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1628
|
+
const token = this.configuration.accessToken;
|
|
1629
|
+
const tokenString = await token("ApiKey", []);
|
|
1630
|
+
if (tokenString) {
|
|
1631
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
let urlPath = `/api/dlp/admin/v1/detection-engines/{id}`;
|
|
1635
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1636
|
+
return {
|
|
1637
|
+
path: urlPath,
|
|
1638
|
+
method: 'PUT',
|
|
1639
|
+
headers: headerParameters,
|
|
1640
|
+
query: queryParameters,
|
|
1641
|
+
body: UpdateDetectionEngineRequestToJSON(requestParameters['updateDetectionEngineRequest']),
|
|
1642
|
+
};
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
* Update a detection engine
|
|
1646
|
+
*/
|
|
1647
|
+
async updateDetectionEngineRaw(requestParameters, initOverrides) {
|
|
1648
|
+
const requestOptions = await this.updateDetectionEngineRequestOpts(requestParameters);
|
|
1649
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1650
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DetectionEngineResponseFromJSON(jsonValue));
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Update a detection engine
|
|
1654
|
+
*/
|
|
1655
|
+
async updateDetectionEngine(requestParameters, initOverrides) {
|
|
1656
|
+
const response = await this.updateDetectionEngineRaw(requestParameters, initOverrides);
|
|
1657
|
+
return await response.value();
|
|
1658
|
+
}
|
|
1659
|
+
/**
|
|
1660
|
+
* Creates request options for updateEnforcementPolicy without sending the request
|
|
1661
|
+
*/
|
|
1662
|
+
async updateEnforcementPolicyRequestOpts(requestParameters) {
|
|
1663
|
+
if (requestParameters['id'] == null) {
|
|
1664
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateEnforcementPolicy().');
|
|
1665
|
+
}
|
|
1666
|
+
if (requestParameters['updateEnforcementPolicyRequest'] == null) {
|
|
1667
|
+
throw new runtime.RequiredError('updateEnforcementPolicyRequest', 'Required parameter "updateEnforcementPolicyRequest" was null or undefined when calling updateEnforcementPolicy().');
|
|
1668
|
+
}
|
|
1669
|
+
const queryParameters = {};
|
|
1670
|
+
const headerParameters = {};
|
|
1671
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1672
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1673
|
+
// oauth required
|
|
1674
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1675
|
+
if (oauthToken) {
|
|
1676
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1680
|
+
// oauth required
|
|
1681
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1682
|
+
if (oauthToken) {
|
|
1683
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1687
|
+
const token = this.configuration.accessToken;
|
|
1688
|
+
const tokenString = await token("ApiKey", []);
|
|
1689
|
+
if (tokenString) {
|
|
1690
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
let urlPath = `/api/dlp/admin/v1/enforcement-policies/{id}`;
|
|
1694
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1695
|
+
return {
|
|
1696
|
+
path: urlPath,
|
|
1697
|
+
method: 'PUT',
|
|
1698
|
+
headers: headerParameters,
|
|
1699
|
+
query: queryParameters,
|
|
1700
|
+
body: UpdateEnforcementPolicyRequestToJSON(requestParameters['updateEnforcementPolicyRequest']),
|
|
1701
|
+
};
|
|
1702
|
+
}
|
|
1703
|
+
/**
|
|
1704
|
+
* Update an enforcement policy
|
|
1705
|
+
*/
|
|
1706
|
+
async updateEnforcementPolicyRaw(requestParameters, initOverrides) {
|
|
1707
|
+
const requestOptions = await this.updateEnforcementPolicyRequestOpts(requestParameters);
|
|
1708
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1709
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EnforcementPolicyResponseFromJSON(jsonValue));
|
|
1710
|
+
}
|
|
1711
|
+
/**
|
|
1712
|
+
* Update an enforcement policy
|
|
1713
|
+
*/
|
|
1714
|
+
async updateEnforcementPolicy(requestParameters, initOverrides) {
|
|
1715
|
+
const response = await this.updateEnforcementPolicyRaw(requestParameters, initOverrides);
|
|
1716
|
+
return await response.value();
|
|
1717
|
+
}
|
|
1718
|
+
/**
|
|
1719
|
+
* Creates request options for updateFieldControlPolicy without sending the request
|
|
1720
|
+
*/
|
|
1721
|
+
async updateFieldControlPolicyRequestOpts(requestParameters) {
|
|
1722
|
+
if (requestParameters['id'] == null) {
|
|
1723
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateFieldControlPolicy().');
|
|
1724
|
+
}
|
|
1725
|
+
if (requestParameters['updateFieldControlPolicyRequest'] == null) {
|
|
1726
|
+
throw new runtime.RequiredError('updateFieldControlPolicyRequest', 'Required parameter "updateFieldControlPolicyRequest" was null or undefined when calling updateFieldControlPolicy().');
|
|
1727
|
+
}
|
|
1728
|
+
const queryParameters = {};
|
|
1729
|
+
const headerParameters = {};
|
|
1730
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1731
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1732
|
+
// oauth required
|
|
1733
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1734
|
+
if (oauthToken) {
|
|
1735
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1739
|
+
// oauth required
|
|
1740
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1741
|
+
if (oauthToken) {
|
|
1742
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1746
|
+
const token = this.configuration.accessToken;
|
|
1747
|
+
const tokenString = await token("ApiKey", []);
|
|
1748
|
+
if (tokenString) {
|
|
1749
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
let urlPath = `/api/dlp/admin/v1/field-control-policies/{id}`;
|
|
1753
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1754
|
+
return {
|
|
1755
|
+
path: urlPath,
|
|
1756
|
+
method: 'PUT',
|
|
1757
|
+
headers: headerParameters,
|
|
1758
|
+
query: queryParameters,
|
|
1759
|
+
body: UpdateFieldControlPolicyRequestToJSON(requestParameters['updateFieldControlPolicyRequest']),
|
|
1760
|
+
};
|
|
1761
|
+
}
|
|
1762
|
+
/**
|
|
1763
|
+
* Update a field-control policy
|
|
1764
|
+
*/
|
|
1765
|
+
async updateFieldControlPolicyRaw(requestParameters, initOverrides) {
|
|
1766
|
+
const requestOptions = await this.updateFieldControlPolicyRequestOpts(requestParameters);
|
|
1767
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1768
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FieldControlPolicyResponseFromJSON(jsonValue));
|
|
1769
|
+
}
|
|
1770
|
+
/**
|
|
1771
|
+
* Update a field-control policy
|
|
1772
|
+
*/
|
|
1773
|
+
async updateFieldControlPolicy(requestParameters, initOverrides) {
|
|
1774
|
+
const response = await this.updateFieldControlPolicyRaw(requestParameters, initOverrides);
|
|
1775
|
+
return await response.value();
|
|
1776
|
+
}
|
|
1777
|
+
/**
|
|
1778
|
+
* Creates request options for upsertConnection without sending the request
|
|
1779
|
+
*/
|
|
1780
|
+
async upsertConnectionRequestOpts(requestParameters) {
|
|
1781
|
+
if (requestParameters['name'] == null) {
|
|
1782
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling upsertConnection().');
|
|
1783
|
+
}
|
|
1784
|
+
if (requestParameters['upsertConnectionRequest'] == null) {
|
|
1785
|
+
throw new runtime.RequiredError('upsertConnectionRequest', 'Required parameter "upsertConnectionRequest" was null or undefined when calling upsertConnection().');
|
|
1786
|
+
}
|
|
1787
|
+
const queryParameters = {};
|
|
1788
|
+
const headerParameters = {};
|
|
1789
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1790
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1791
|
+
// oauth required
|
|
1792
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1793
|
+
if (oauthToken) {
|
|
1794
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1798
|
+
// oauth required
|
|
1799
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1800
|
+
if (oauthToken) {
|
|
1801
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1805
|
+
const token = this.configuration.accessToken;
|
|
1806
|
+
const tokenString = await token("ApiKey", []);
|
|
1807
|
+
if (tokenString) {
|
|
1808
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
let urlPath = `/api/dlp/admin/v1/provider-connections/{name}`;
|
|
1812
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
1813
|
+
return {
|
|
1814
|
+
path: urlPath,
|
|
1815
|
+
method: 'PUT',
|
|
1816
|
+
headers: headerParameters,
|
|
1817
|
+
query: queryParameters,
|
|
1818
|
+
body: UpsertConnectionRequestToJSON(requestParameters['upsertConnectionRequest']),
|
|
1819
|
+
};
|
|
1820
|
+
}
|
|
1821
|
+
/**
|
|
1822
|
+
* Create or update a provider connection
|
|
1823
|
+
*/
|
|
1824
|
+
async upsertConnectionRaw(requestParameters, initOverrides) {
|
|
1825
|
+
const requestOptions = await this.upsertConnectionRequestOpts(requestParameters);
|
|
1826
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1827
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProviderConnectionResponseFromJSON(jsonValue));
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* Create or update a provider connection
|
|
1831
|
+
*/
|
|
1832
|
+
async upsertConnection(requestParameters, initOverrides) {
|
|
1833
|
+
const response = await this.upsertConnectionRaw(requestParameters, initOverrides);
|
|
1834
|
+
return await response.value();
|
|
1835
|
+
}
|
|
1836
|
+
/**
|
|
1837
|
+
* Creates request options for upsertFieldControlPolicy without sending the request
|
|
1838
|
+
*/
|
|
1839
|
+
async upsertFieldControlPolicyRequestOpts(requestParameters) {
|
|
1840
|
+
if (requestParameters['upsertFieldControlPolicyRequest'] == null) {
|
|
1841
|
+
throw new runtime.RequiredError('upsertFieldControlPolicyRequest', 'Required parameter "upsertFieldControlPolicyRequest" was null or undefined when calling upsertFieldControlPolicy().');
|
|
1842
|
+
}
|
|
1843
|
+
const queryParameters = {};
|
|
1844
|
+
const headerParameters = {};
|
|
1845
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1846
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1847
|
+
// oauth required
|
|
1848
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1849
|
+
if (oauthToken) {
|
|
1850
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1854
|
+
// oauth required
|
|
1855
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1856
|
+
if (oauthToken) {
|
|
1857
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1861
|
+
const token = this.configuration.accessToken;
|
|
1862
|
+
const tokenString = await token("ApiKey", []);
|
|
1863
|
+
if (tokenString) {
|
|
1864
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
let urlPath = `/api/dlp/admin/v1/field-control-policies`;
|
|
1868
|
+
return {
|
|
1869
|
+
path: urlPath,
|
|
1870
|
+
method: 'POST',
|
|
1871
|
+
headers: headerParameters,
|
|
1872
|
+
query: queryParameters,
|
|
1873
|
+
body: UpsertFieldControlPolicyRequestToJSON(requestParameters['upsertFieldControlPolicyRequest']),
|
|
1874
|
+
};
|
|
1875
|
+
}
|
|
1876
|
+
/**
|
|
1877
|
+
* Create or replace the field-control policy for an MCP server
|
|
1878
|
+
*/
|
|
1879
|
+
async upsertFieldControlPolicyRaw(requestParameters, initOverrides) {
|
|
1880
|
+
const requestOptions = await this.upsertFieldControlPolicyRequestOpts(requestParameters);
|
|
1881
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1882
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FieldControlPolicyResponseFromJSON(jsonValue));
|
|
1883
|
+
}
|
|
1884
|
+
/**
|
|
1885
|
+
* Create or replace the field-control policy for an MCP server
|
|
1886
|
+
*/
|
|
1887
|
+
async upsertFieldControlPolicy(requestParameters, initOverrides) {
|
|
1888
|
+
const response = await this.upsertFieldControlPolicyRaw(requestParameters, initOverrides);
|
|
1889
|
+
return await response.value();
|
|
1890
|
+
}
|
|
1891
|
+
/**
|
|
1892
|
+
* Creates request options for validateAwsRole without sending the request
|
|
1893
|
+
*/
|
|
1894
|
+
async validateAwsRoleRequestOpts(requestParameters) {
|
|
1895
|
+
if (requestParameters['validateAwsRoleRequest'] == null) {
|
|
1896
|
+
throw new runtime.RequiredError('validateAwsRoleRequest', 'Required parameter "validateAwsRoleRequest" was null or undefined when calling validateAwsRole().');
|
|
1897
|
+
}
|
|
1898
|
+
const queryParameters = {};
|
|
1899
|
+
const headerParameters = {};
|
|
1900
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1901
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1902
|
+
// oauth required
|
|
1903
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1904
|
+
if (oauthToken) {
|
|
1905
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1909
|
+
// oauth required
|
|
1910
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1911
|
+
if (oauthToken) {
|
|
1912
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1916
|
+
const token = this.configuration.accessToken;
|
|
1917
|
+
const tokenString = await token("ApiKey", []);
|
|
1918
|
+
if (tokenString) {
|
|
1919
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
let urlPath = `/api/dlp/admin/v1/provider-connections/aws-role-validate`;
|
|
1923
|
+
return {
|
|
1924
|
+
path: urlPath,
|
|
1925
|
+
method: 'POST',
|
|
1926
|
+
headers: headerParameters,
|
|
1927
|
+
query: queryParameters,
|
|
1928
|
+
body: ValidateAwsRoleRequestToJSON(requestParameters['validateAwsRoleRequest']),
|
|
1929
|
+
};
|
|
1930
|
+
}
|
|
1931
|
+
/**
|
|
1932
|
+
* Probe an AWS role Barndoor is meant to assume
|
|
1933
|
+
*/
|
|
1934
|
+
async validateAwsRoleRaw(requestParameters, initOverrides) {
|
|
1935
|
+
const requestOptions = await this.validateAwsRoleRequestOpts(requestParameters);
|
|
1936
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1937
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AwsRoleValidationResponseFromJSON(jsonValue));
|
|
1938
|
+
}
|
|
1939
|
+
/**
|
|
1940
|
+
* Probe an AWS role Barndoor is meant to assume
|
|
1941
|
+
*/
|
|
1942
|
+
async validateAwsRole(requestParameters, initOverrides) {
|
|
1943
|
+
const response = await this.validateAwsRoleRaw(requestParameters, initOverrides);
|
|
1944
|
+
return await response.value();
|
|
1945
|
+
}
|
|
1946
|
+
}
|